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
7B76313B62617369633B7365616E2063616E746F6E3B313B65696768746579657340676D61696C2E636F6D3B203B303B307D |
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
history | cut -c 8-90 | sort | uniq -c | sort |
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 pandas as pd | |
df = pd.read_csv('./tiddlers.csv') | |
for i, t in df.iterrows(): | |
first = t.title[0] | |
# no tw junk | |
if ( first == '.' or first == '/'): | |
continue | |
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 es5 = function(){ return this; } | |
var es6 = () => { return this; } | |
var a = new es5(); | |
// no error | |
var b = new es6(); | |
// TypeError: es6 is not a constructor | |
// I enjoy the other way of declaring constructors that is less classy. |
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
// procedural programming - synchronous | |
var foo = 'foo'; | |
foo += 'bar'; | |
// foo = 'foobar' | |
// object oriented programming - synchronous | |
var Bar = function(a){ return a } | |
var foo = new Bar({ id: 123 }) | |
foo.id = 123; |
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
[o__o] | |
<|°_°|> | |
0-[o^o]-0 | |
|o|<=o-c |
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
// This is the outside in approach, where the parent process is not within Docker, but the child lives in a docker image. | |
var externalNodeProcess = require('child_process').spawn('docker', [ | |
'run', | |
'-a', 'stdin', '-a', 'stdout', '-a','stderr', | |
'-i', | |
'image/name:tag', | |
'node','index.js' | |
], { | |
stdio: ['pipe', 'pipe', 'pipe'] |
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
language: node_js | |
node_js: | |
- "6.4" | |
sudo: required | |
before_script: | |
- mkdir ~/.npm-global | |
- npm config set prefix '~/.npm-global' | |
- echo 'export PATH=~/.npm-global/bin:$PATH' >> ~/.profile | |
- source ~/.profile | |
- npm link |
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
alias ala=__ala | |
# alias last as | |
function __ala(){ | |
echo "alias $1='`fc -ln -1`'" >> ~/.zsh-aliases | |
} |
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
if ( true ) pass; | |
else nopass; | |
. | |
\^/| | |
_/ \|_ | |
NewerOlder