Skip to content

Instantly share code, notes, and snippets.

View dryrain39's full-sized avatar
🎯
Focusing

Kunwoo Ahn dryrain39

🎯
Focusing
  • SANDS Lab
  • Republic of Korea
  • 18:38 (UTC +09:00)
View GitHub Profile
@reefwing
reefwing / DisplayCM.ino
Created November 1, 2015 03:36
Sharp GP2Y0A02YK0F IR Distance Sensor (20-150 cm) Arduino Library
#include <GP2Y0A02YK0F.h>
GP2Y0A02YK0F irSensor;
int distance;
void setup()
{
Serial.begin(9600);
irSensor.begin(A0); // Assign A0 as sensor pin
}
@stattrak-dragonlore
stattrak-dragonlore / meet-in-the-middle.py
Created January 4, 2012 12:41
demo of meet-in-the-middle attack (32bit)
# http://www.nruns.com/_downloads/advisory28122011.pdf
# http://bugs.python.org/issue13703
import sys
import string
import itertools
# hash function used by python string object
def hash(s):
slen = len(s)