What do you want to save?
Add Code snippet
New code examples
-
Python 2021-09-16 17:14:01
python vernam cipher
vernam_dict = dict((i, chr(i + 96)) for i in range(1, 27)) # Vernam by replacing char of plain by char(ord(sum of plain and key)) def vernam_encrypt(plain, key): plain = plain.lower() ckey = ''.join([(key[i % len(key)]) for i in range(len(list(pla... Add solution -
CSS 2021-09-16 14:51:03
Tailwind CSS "Cards"
<div class="max-w-sm w-full lg:max-w-full lg:flex"> <div class="h-48 lg:h-auto lg:w-48 flex-none bg-cover rounded-t lg:rounded-t-none lg:rounded-l text-center overflow-hidden" style="background-image: url('/img/card-lef... Add solution -
C++ 2021-09-16 11:06:04
Print Decimal to binary using stack
#include<iostream> #include<stack> using namespace std; void dec_to_bin(int number) { stack<int> stk; while(number > 0) { int rem = number % 2; //take remainder numbe... Add solution -
C++ 2021-09-16 08:24:02
enum in c++
#include <iostream> enum Example :unsigned char // char will work but float will not work because it is not an interger { A = 9, B = 56, c = 12//values must be integers };//enum is a just a name for a group of numeric values int main() { Example ... Add solution
Best helpers
Ranking is empty