Value | JavaScript | Ruby | Python |
---|---|---|---|
null | false | false | false |
0 | false | true | false |
"" | false | true | false |
[] | true | true | false |
{} | true | true | false |
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 React from 'react' | |
// ... other imports | |
import nothis from '../shared/nothis' | |
export default nothis({ | |
willMount, | |
render, | |
}) |
I hereby claim:
- I am hiquest on github.
- I am yanis (https://keybase.io/yanis) on keybase.
- I have a public key ASDGw1CrZ6iXLOwaIMGvLj4cEkMYgD4nVJVOF2fKWPGVmAo
To claim this, I am signing this object:
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
grep 'Started' production.log \ | |
| grep -o '".*"' \ | |
| sed --regexp-extended 's/[0-9]+/:id/' \ | |
| sort \ | |
| uniq -c \ | |
| sort --reverse \ | |
| more |
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/sh | |
# This will open a browser window with pull-request | |
set -e | |
project=`git remote -v | grep origin | head -n 1 | awk '{print $2}' | sed 's/.*github.com.//' | sed 's/\.git//'` | |
branch=`git rev-parse --abbrev-ref HEAD` | |
url="https://github.com/$project/compare/$branch?expand=1" | |
open $url |
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 | |
set -e | |
ls ~/.vim/bundle | | |
xargs -n1 | | |
while read l; do | |
cd ~/.vim/bundle/$l && git pull | |
done |
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
// http://www.html5rocks.com/en/tutorials/es6/promises/ | |
function get(url) { | |
// Return a new promise. | |
return new Promise(function(resolve, reject) { | |
// Do the usual XHR stuff | |
var req = new XMLHttpRequest(); | |
req.open('GET', url); | |
req.onload = function() { |