Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am tangmi on github.
  • I am tangm (https://keybase.io/tangm) on keybase.
  • I have a public key ASDkg2zngnNoEnvnq7C10vUB-OmMzlR-npaJMEskQbZTBwo

To claim this, I am signing this object:

@tangmi
tangmi / happybirthday-henry.js
Last active August 29, 2015 14:02
happy birthday henry! run this in node!
var msg = msgf();
var fn = msg.split('').slice(msg.length - 12, msg.length).join('');
var jout = process.stdout;
var w = jout.columns;
var msgw = 0;
function repeat(ch, times) {
var out = [];
for (var i = 0; i < times; i++) {
@tangmi
tangmi / campus.js
Created March 17, 2014 05:59
hw8.CampusPaths node interface
/*
This is a node api for the UW's CSE331 hw8.CampusPath's command-line interface.
It probably only allows one concurrent user before weird shit happens.
lives in a folder called `node` in the root of your svn repo:
bin/
doc/
lib/
@tangmi
tangmi / fakessh-parser.js
Last active August 29, 2015 13:56
streaming parser for fake-ssh logins file
/*
* Takes a tab separated file from tylermenezes' fake-ssh:
*
* 1380751629 username tylermenezes
* 1380751629 password foo
* 1380751634 a_password None
* 1380751634 username tylermenezes
* 1380751634 password foobar
* 1380751638 a_password None
* ...