Skip to content

Instantly share code, notes, and snippets.

@nguyent
nguyent / 0_reuse_code.js
Created June 6, 2014 03:01
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@nguyent
nguyent / repocheck.py
Created May 29, 2014 18:55
grep gitolite repos for a string
#!/usr/bin/env python
import subprocess
import sys
import os
import time
# Relative path to repo directory
repoDir = 'repos'
git = 'gitolite@git.herpderp.com'
@nguyent
nguyent / gist:5758816
Created June 11, 2013 17:19
Javascript weirdness
/*
An interesting wart I came across today.
*/
if (true) {
function sup() {
return 'yes';
}
@nguyent
nguyent / Sublime Text end of line
Created May 29, 2013 22:11
key binding definition for emmet in ST2, to allow ctrl+e to go to eol vs expand (come on now, sublime)
{
"keys": [
"ctrl+e"
],
"args": {
"to": "eol",
"extend": false
},
"command": "move_to"
}
@nguyent
nguyent / gist:5358240
Last active December 16, 2015 01:49
code comments from work
# This group needs to be in a composition relationship with the
# Application group. WHY??? We used to have a document at xyz
# explaining why this was so, but I don't know where it is.
# xxx@xyz.net
# If this works, I'll be the luckiest freaking man ever. Whoever did
# the relation stuff was either much smarter than me, or hated programmers.
# See for instance register/user-join.tcl if you want to be freaked out.
# You might wonder why level is aliased as mylevel here. Well, for some