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
""" | |
E=7 | |
TALLET + | |
SIGNAL | |
------ | |
ELAINE | |
""" | |
letters = set('T A L L E T S I G N A L E L A I N E'.split()) | |
assoc = {letter: None for letter in letters} |
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
<?php | |
require_once 'PHPUnit/Framework.php'; | |
/** | |
* Matches a php code string upon a template of tokens | |
* | |
* @param string $code String of php code. | |
* @param string $template See the tests below for examples. | |
* | |
* @return array|false Associative array of all variables or false if no match was found |
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
RewriteEngine On | |
RewriteBase /baba/ | |
RewriteRule ^$ ../trunk/$1?_config=baba [L,QSA] | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule ^(.*)$ ../trunk/$1?_config=baba [L,QSA] |
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
#!/usr/bin/env python | |
import sys, shutil, os.path | |
if len(sys.argv) != 3: | |
sys.stderr.write('Usage: %s PLAYLIST DEST\n\n' % sys.argv[0]) | |
sys.exit(1) | |
exported, dest = sys.argv[1:] | |
lines = unicode(open(exported).read(), 'utf16').split('\r')[1:] | |
files = ['/Volumes/' + line.split('\t')[-1].replace(':', '/') for line in lines] | |
for file in files: | |
if os.path.exists(file) and os.path.isfile(file): shutil.copy(file, dest) |
NewerOlder