Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am adinardi on github.
  • I am angelo (https://keybase.io/angelo) on keybase.
  • I have a public key whose fingerprint is 8E89 9BB6 4FE1 5232 4025 E038 9041 737F 2BED 6ACE

To claim this, I am signing this object:

@adinardi
adinardi / .bash_profile
Created June 7, 2011 23:31
.bash_profile addition for auto virtualenv-ing
# auto source virtual envs if it can find one
has_virtualenv() {
if [ -e bin/activate ]; then
source bin/activate
fi
}
venv_cd () {
cd "$@" && has_virtualenv
}
alias cd="venv_cd"
@adinardi
adinardi / gist:957462
Created May 5, 2011 17:25 — forked from ekosz/gist:957403
Coffee Script vs. Javascript
JAVASCRIPT
==========
client.send({
otherClients: (function() {
var _results = [];
for (var _i = 0, c; c = clients[_i]; _i++) {
if (c !== client) {
_results.push(nameHash[c]);
}
@adinardi
adinardi / makeballots.py
Created January 10, 2011 01:33
This was the ballot generator I made for CSH when I was chairman.
We couldn’t find that file to show.