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 time | |
form tornado import ( | |
concurrent, | |
gen, | |
httpserver, | |
ioloop, | |
log, | |
process, | |
web |
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 time | |
from tornado import ( | |
concurrent, | |
gen, | |
httpserver, | |
ioloop, | |
log, | |
web | |
) |
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
# python | |
import logging | |
import time | |
from tornado import gen, httpserver, ioloop, log, web | |
log.enable_pretty_logging() | |
class MainHandler(web.RequestHandler): |
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
// requires AWS SDK | |
var AWS = require('aws-sdk') | |
, fs = require('fs'); | |
var s3 = new AWS.S3({ | |
apiVersion: '2006-03-01', | |
accessKeyId: 'AccessKey', | |
secretAccessKey: 'SecretKey', | |
region: 'region' | |
}); |
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
pip3 freeze --local | | |
grep -v '^\-e' | | |
cut -d = -f 1 | | |
xargs -n1 pip3 install -U |
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
brew list | | |
while read cask; do echo -n $cask; brew uses --installed $cask | | |
awk '{printf(" %s ", $0)}'; echo ""; done |