I hereby claim:
- I am philihp on github.
- I am philihp (https://keybase.io/philihp) on keybase.
- I have a public key whose fingerprint is 093B A359 D87C E901 9AAE ACDF BF99 B090 1209 F481
To claim this, I am signing this object:
| #!/usr/bin/python | |
| from subprocess import call | |
| import sys | |
| import urllib2 | |
| import hashlib | |
| import struct | |
| import shutil | |
| OLDFILE = '/tmp/newcolor.txt' | |
| NEWFILE = '/tmp/oldcolor.txt' |
I hereby claim:
To claim this, I am signing this object:
| #!/usr/bin/python | |
| import sys | |
| import urllib2 | |
| import json | |
| opener = urllib2.build_opener() | |
| opener.addheaders.append(('Cookie', ...put your browser session cookies here... )) | |
| for n in xrange(2000,9999): | |
| npad = "{0:04d}".format(n) |
| #!/usr/bin/python | |
| import random | |
| total = 0; | |
| good = 0; | |
| for n in xrange(1,100000000): | |
| i = random.randint(0,99999999) | |
| s = "{0:0>8}".format(i); |
| #!/usr/bin/python | |
| import random | |
| total = 0; | |
| good = 0; | |
| for n in xrange(1,10**8): | |
| s = "{0:0>8}".format(n); | |
| a = {} |
| function converge() { | |
| id=$1 | |
| reason=$2 | |
| echo "Converging $id..." | |
| cd ~/code/chef | |
| fab -P -u $USER -R $id converge_service:"$2" | |
| cd - | |
| } |
| switch(suit) { | |
| case "club": | |
| case "diamond": | |
| trickValue = 20; | |
| break; | |
| case "heart": | |
| case "spade": | |
| trickValue = 30; | |
| break; | |
| case "no-trump": |
| import org.apache.struts.action.*; | |
| import com.google.gson.*; | |
| import org.scribe.builder.*; | |
| import org.scribe.builder.api.*; | |
| import org.scribe.model.*; | |
| import org.scribe.oauth.*; | |
| public class Authenticate extends Action { | |
| public ActionForward execute(ActionMapping mapping, ActionForm form, |
| /*** | |
| Calculating the odds of the 3-strike game on The Price Is Right | |
| ***/ | |
| data trials(keep=outcome j strikes); | |
| outcome = 0; | |
| do i=1 to 10000000; | |
| bag = 8; | |
| strikes = 3; |
| package sos; | |
| import java.io.BufferedReader; | |
| import java.io.File; | |
| import java.io.FileReader; | |
| import java.io.IOException; | |
| import java.util.ArrayList; | |
| import java.util.Map.Entry; | |
| import java.util.Set; |