Verifying that +stan is my openname (Bitcoin username). https://onename.io/stan
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
# Reserved Strings | |
# | |
# Strings which may be used elsewhere in code | |
undefined | |
undef | |
null | |
NULL | |
(null) | |
nil |
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
jq -nc --stream ' | |
def atomize(s): | |
fromstream(foreach s as $in ( {previous:null, emit: null}; | |
if ($in | length == 2) and ($in|.[0][0]) != .previous and .previous != null | |
then {emit: [[.previous]], previous: $in|.[0][0]} | |
else { previous: ($in|.[0][0]), emit: null} | |
end; | |
(.emit // empty), $in) ) ; | |
atomize(1|truncate_stream(inputs | select(.[0][0] == "users")))' fb_yamm_data.json > yamm_users.json |
I hereby claim:
- I am czzarr on github.
- I am stan (https://keybase.io/stan) on keybase.
- I have a public key whose fingerprint is E532 512A 6F94 3EC0 71F7 7225 A3CC 07A9 BD2F 588F
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
var spawn = require('child_process').spawn | |
var feedgnuplot = spawn('feedgnuplot', ['--stream 0.02', '--xlen 200', '--lines']) | |
someReadableStream.pipe(feedgnuplot.stdin) |
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
<style type='text/css'> html, body { margin: 0; padding: 0; border: 0; } </style> |
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
<style type='text/css'> html, body { margin: 0; padding: 0; border: 0; } </style> |
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
// require something | |
console.log('beep baaaaap boop biiiiiip'); | |
var url = require('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
var stream = require('stream'); | |
var through = stream.Transform(); | |
through._writableState.objectMode = true; | |
through._transform = function (chunk, encoding, done) { | |
this.push(JSON.stringify(chunk)); | |
this.push('\n'); | |
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
module.exports = function (grunt) { | |
// custom helper | |
grunt.registerHelper('concat_two_strings', function (a,b) { | |
return a + b; | |
} | |
// config | |
grunt.initConfig({ | |
lint: { files: ['<concat_two_strings:need:linting>/*.js'] } // is this supposed to work or not? | |
}); |