Skip to content

Instantly share code, notes, and snippets.

@walling
walling / onename.txt
Created October 24, 2014 14:21
onename.io verification
Verifying that +walling is my Bitcoin username. You can send me #bitcoin here: https://onename.io/walling
@walling
walling / chained-colors-es5.js
Last active December 8, 2016 15:29
Primitive replacement for chalk NPM
// ES5 version of chalk replacement with chaining :)
var util = require("util");
function C(text) {
var self = {};
Object.keys(util.inspect.colors).forEach(function(name) {
var color = util.inspect.colors[name];
self[name] = function() {
return C(util.format("\x1B[%sm%s\x1B[%sm", color[0], text, color[1]));
@walling
walling / example1-first-usage.js
Last active June 21, 2017 20:30
blog-post-2017-06-21-examples
var conllu = require('conllu-stream');
var fs = require('fs');
fs.createReadStream('ud-treebanks-v2.0/UD_German/de-ud-train.conllu')
.pipe(conllu())
.on('data', sentence => {
console.log(sentence.features.sent_id, sentence.toString());
});