This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//EXECUTE IN BROWSER CONSOLE | |
document.getElementsByClassName("word")[0].innerHTML="WORD GOES HERE"; | |
document.getElementsByClassName("meaning")[0].innerHTML="MEANING GOES HERE" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
#include<math.h> | |
int main() { | |
int key[3][16] = {{0,0,1,1,1,0,1,0,1,0,0,1,0,1,0,0}, {1,0,1,0,1,0,0,1,0,1,0,0,0,1,0,0}, {0,1,0,0,1,1,0,1,1,0,1,1,1,0,1,1}}; | |
int perm[16] = {3,2,16,1,15,11,4,7,8,13,9,10,14,5,12,6}; | |
int subs[16] = {14,4,13,1,2,15,11,8,9,10,6,12,5,9,0,7}; | |
int msg[16]; //={0,0,1,0,0,1,1,0,1,0,1,1,0,1,1,1}; | |
int i,j,k,n,xored[16],pxored[16],hex[4],subbed[4],l,bin[16]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import sys | |
import random | |
from tqdm import tqdm | |
from scipy import misc | |
import multiprocessing as mp | |
from collections import defaultdict | |
PWD = os.getcwd() |