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
1033edge.com | |
11mail.com | |
123.com | |
123box.net | |
123india.com | |
123mail.cl | |
123qwe.co.uk | |
150ml.com | |
15meg4free.com | |
163.com |
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
from collections import deque | |
import time | |
def timeit(method): | |
def timed(*args, **kw): | |
ts = time.time() | |
result = method(*args, **kw) | |
te = time.time() | |
print('{}, {}'.format(method.__name__, te-ts)) | |
return result |
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
{ | |
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme", | |
"ensure_newline_at_eof_on_save": true, | |
"file_exclude_patterns": | |
[ | |
"*.pyc", | |
"*.pyo", | |
"*.exe", | |
"*.dll", | |
"*.obj", |
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
git filter-branch --tree-filter "find . \( -name 'filename1.py' -o -name 'filename2.sh' \) -exec sed -e \"s/password/fake_password/g\" -e \"s/api_key_secret/fake_key/g\" -i {} \;" HEAD --all |
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
def D(fn): | |
import traceback | |
filename = 'trace' | |
def _(*args, **kwargs): | |
try: | |
return fn(*args, **kwargs) | |
except: | |
traceback.print_exc(5, open(filename, 'w')) | |
raise | |
return _ |
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
(venv)zero13cool@gantzer:~/repos/allinway$ cafe --nologo build --app_root=resources/cs --build_root=static/js --formula=recipe.yaml -f | |
Cafe> resolve: package.json's main file not found in dir /home/zero13cool/repos/allinway/resources/cs/node_modules/genome-parser/index.js | |
Cafe> resolve: package.json's main file not found in dir /home/zero13cool/repos/allinway/resources/cs/node_modules/dna-lang/lib-js/dna.js | |
Cafe> [Error: Cannot find module 'console-logger'] | |
npm WARN package.json [email protected] No repository field. | |
npm http GET https://registry.npmjs.org/genome-parser | |
npm http GET https://registry.npmjs.org/dna-lang | |
npm http GET https://registry.npmjs.org/console-logger | |
npm http 304 https://registry.npmjs.org/dna-lang | |
npm http 304 https://registry.npmjs.org/console-logger |
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
(function (Form) { | |
Form.validators.errMessages = { | |
youtube: 'Enter link from YouTube', | |
positive_int: 'Enter positive integer' | |
}; | |
Form.validators.youtube = function(options) { | |
options = _.extend({ | |
type: 'youtube', | |
message: this.errMessages.youtube, |
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
var plural = function(number, one, two, five) { | |
var n = Math.abs(number); | |
n %= 100; | |
if (n >= 5 && n <= 20) return number + ' ' + five; | |
n %= 10; | |
if (n == 1) return number + ' ' + one; | |
if (n >= 2 && n <= 4) return number + ' ' + two; |