For best viewing experience, please play “Doin’ It Right (feat. Panda Bear)” off the latest Daft Punk album while watching this animation.
<iframe width="560" height="315" src="//www.youtube.com/embed/RA5PRj7KPkE" frameborder="0" allowfullscreen></iframe>
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
In [76]: content_disposition = 'attachment;filename="Liste des pr\xe9noms 2004-2012.ods"' | |
In [77]: print(content_disposition) | |
attachment;filename="Liste des proms 2004-2012.ods" | |
In [78]: print eval("u'''%s'''" % content_disposition) | |
attachment;filename="Liste des prénoms 2004-2012.ods" | |
In [79]: u'How do I do this without eval?' |
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
# Create an SSH key. | |
ssh-keygen | |
# Copy this to the GitHub SSH key page. | |
cat ~/.ssh/id_rsa.pub | |
# Clone a git repository with SSH. | |
git clone [email protected]:tlevine/foobar.git |
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
/* | |
Data music ideas | |
https://data.baltimorecity.gov/Government/Minority-and-Women-s-Business-Enterprises-Certific/us2p-bijb? | |
https://data.illinois.gov/Environment/IEPA-Leaking-Underground-Storage-Tank-Incident/2kz4-t22j? | |
*/ | |
var master = new (webkitAudioContext || AudioContext) | |
var jsynth = require('jsynth') |
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 term = require('hypernal')() | |
var tablify = require('tablify').tablify | |
var jsonp = require('jsonp') | |
term.appendTo(document.body) | |
// style fake terminal | |
var termEl = term.term.element | |
termEl.style['font'] = '13px Monaco, mono' | |
termEl.style.height = '100%' |
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 term = require('hypernal')() | |
var tablify = require('tablify').tablify | |
var jsonp = require('jsonp') | |
term.appendTo(document.body) | |
// style fake terminal | |
var termEl = term.term.element | |
termEl.style['font'] = '13px Monaco, mono' | |
termEl.style.height = '100%' |
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 term = require('hypernal')() | |
var tablify = require('tablify').tablify | |
var jsonp = require('jsonp') | |
term.appendTo(document.body) | |
// style fake terminal | |
var termEl = term.term.element | |
termEl.style['font'] = '13px Monaco' | |
termEl.style.height = '100%' |
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
pip install querycsv | |
curl --compressed rows.appgen.me/fabj-6qv3 > /tmp/fabj6qv3.csv | |
querycsv.py -i /tmp/fabj6qv3.csv -o asthma.csv "SELECT [ASTHMA2], [Shape] FROM [fabj6qv3] WHERE [BOROUGH] = 'Brooklyn';" | |
sed -i -e '1 s/"Shape"/"Latitude","Longitude"/' -e 's/"(//' -e 's/ //' -e 's/)".*$//' asthma.csv | |
less asthma.csv |
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
//The fun solution: using array methods | |
var ary = []; | |
for(var i = 1; i <= 1000; i++){ ary.push(i); } | |
console.log( | |
ary.filter(function(item){ | |
return (item % 3 == 0 || item % 5 == 0) | |
}).reduce(function(memo, current){ | |
return memo + current | |
}, 0) | |
); |
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
paste(unlist(sapply(rev(c(0, 1, 1, 2, 3, 5, 8, 13, 21, 34)), function(n) {c(rep('!', n), ' ')})), collapse='') |
NewerOlder