Skip to content

Instantly share code, notes, and snippets.

// rename as HelloWorld.java :)
import java.io.UnsupportedEncodingException;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.util.Arrays;
import javax.crypto.Cipher;
import javax.crypto.SecretKey;
import javax.crypto.SecretKeyFactory;
import javax.crypto.spec.PBEKeySpec;
import java.io.PrintStream;
import java.util.Objects;
import java.util.Random;
import java.util.Scanner;
import java.util.Vector;
import java.util.concurrent.TimeUnit;
class solve{
public static void main(String[] args)
{
#!/usr/bin/python
import sys
import string
# k = [int(z) for z in "26 25 30 28 22 25 20 23 21 29 22 24 26 23 21 26 27 20 28 22 25 23 30 29 23 28 24 20 21 26 25 20 23 27 23 29 25 22 23 26 27 29 24 23 30 21 25 24 26 20 24 22 21 30 26 20 25 24 21 23 27 29 26 22 20 21 23 22 30 26 29 26 28 27 22 20 27 29 26 30 28 27 26 23 29 21 22 25 27 24 21 29 25 24 20 25 23 22 30 28 27 29 25 20 24 21 23 20 23 21 29 26".split(" ")]
k = [26, 29, 21, 23, 20, 23, 21, 24, 20, 25, 29, 27, 28, 30, 22, 23, 25, 20, 24, 25, 29, 21, 24, 27, 25, 22, 21, 29, 23, 26, 27, 28, 30, 26, 29, 27, 20, 22, 27, 28, 26, 29, 26, 30, 22, 23, 21, 20, 22, 26, 29, 27, 23, 21, 24, 25, 20, 26, 30, 21, 22, 24]
# k.reverse()
currentNum = 0
lastNum = 0
#!/usr/bin/python
# 21c25411
# 32c0a748
# 4035d6a1
# 0e3bdcb0
# f9730a6d
# b34eec73
# b8520dac
# e2e28524
#!/usr/bin/python2.7
import random
import config
import utils
random.seed(utils.get_pid())
ngames = 0
#!/usr/bin/python2.7
import random
def generate_combination():
numbers = ""
for _ in range(10):
rand_num = random.randint(0, 99)
if rand_num < 10:
numbers += "0"
#!/usr/bin/python
import base64
from Crypto.Cipher import AES
from Crypto import Random
BS = 16
pad = lambda s: s + (BS - len(s) % BS) * chr(BS - len(s) % BS)
unpad = lambda s : s[:-ord(s[len(s)-1:])]
class AESCipher:
def __init__( self, key, iv ):
self.key = key

Keybase proof

I hereby claim:

  • I am createremotethread on github.
  • I am lin_s (https://keybase.io/lin_s) on keybase.
  • I have a public key ASBQawGQT-zxuAbvBSYN64gQ8oHBjvst5jD0rsozCQV-ugo

To claim this, I am signing this object:

void setup() {
Serial.begin(115200);
pinMode(13,OUTPUT);
digitalWrite(13,HIGH);
delay(10000);
Serial.println("GLITCH RDY");
}
int glitchCtr = 0;
int secCtr = 1;
int led1 = 2;
int led2 = 3;
void setup() {
Serial.begin(115200);
pinMode(led1,OUTPUT);
pinMode(led2,OUTPUT);
for(int i = 0;i < 3; i++)
{
flashGreen(100);