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
# Problem of the Day - 2014/03/07 | |
# http://www.problemotd.com/problem/matrix-rotation/ | |
# | |
# By Andrew Williams | |
from datetime import datetime | |
start = [[1,2,3,4,5], | |
[6,7,8,9,10], | |
[11,12,13,14,15], |
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
# Vigenere Cipher brute forcer | |
# | |
# Solution to http://www.problemotd.com/problem/vigenere-cipher/ | |
# By Andrew Williams (github.com/nikdoof) | |
import itertools, string | |
alpha = string.ascii_lowercase | |
def vigenere_encode(text, key): |
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 sys, xmpp | |
import android | |
droid = android.Android() | |
# Default configuration options | |
config = { | |
'server': ('talk.google.com', 5223), | |
'IM_PRIORITY': 0, | |
'IM_TYPE': 'chat', | |
'IM_STATUS': 'Quick message...', |
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
#!/bin/bash | |
if [ "$1" == "" ]; then | |
echo "Usage: $0 <file>" | |
exit 0 | |
fi | |
tempdir="/home/torrent/temp" | |
MKTMP="mktemp -u -p ${tempdir}" |
NewerOlder