AUTHOR: Micah Elliott LICENSE: WTFPL
Flickr’s interestingness heuristics generate some lovely images. People visit every day and just click “Refresh” to see page after page of these. BUT… it’s much better just have these
# ecd — Enhanced CD (for bash) | |
# | |
# Author: Micah Elliott http://MicahElliott.com | |
# License: WTFPL http://sam.zoy.org/wtfpl/ | |
# | |
# Usage: source .../ecd.sh; cd ... | |
# (Don’t try to run this file; it is to be sourced) | |
# | |
# Useful aliases: | |
# alias cdl='cd -l' |
AUTHOR: Micah Elliott LICENSE: WTFPL
Flickr’s interestingness heuristics generate some lovely images. People visit every day and just click “Refresh” to see page after page of these. BUT… it’s much better just have these
banner | |
### ### | |
# # # # # ###### ## #### #### # # ### | |
# # # # # # # # # # # # # ### | |
# # # #### ##### # # #### # # # # | |
# # # # # # ###### # # # # | |
# # # # # # # # # # # # # # ### | |
### ###### # # # ###### # # #### #### # # ### | |
Good for: demo purposes or seeding a small group of assignable user names/avatars.
I came across a need for a set of neutral generated user names. Pulling them out of a gender-neutral name dictionary was pretty lame. I also wanted some form of distinguishable avatar. This led to looking at a list of web-friendly color names.
#! /usr/bin/env python | |
import sys, time, os | |
from timeout import timeOut | |
def testNoisyGraceful(): | |
sys.stdout.write('NoisyGraceful:'); sys.stdout.flush() | |
t0 = time.time() | |
#cmd = r'python -c "import time; time.sleep(10); print 1 * 4096"' | |
cmd = 'python sleep.py 1 4096' |
collections/fonts cloud.micahelliott.com:repomasters/fonts.git | |
collections/reference cloud.micahelliott.com:repomasters/reference.git | |
forks/rvm [email protected]:MicahElliott/rvm.git | |
gems/autotest-notification [email protected]:MicahElliott/autotest-notification.git | |
gems/gist https://github.com/defunkt/gist.git | |
gems/rdoctest https://github.com/stephencelis/rdoctest.git | |
gems/rvm https://github.com/wayneeseguin/rvm.git | |
gists/PySelect [email protected]:741781.git | |
gists/Xdefaults [email protected]:718567.git | |
gists/about [email protected]:720498.git |
In this example I'm setting up doc-test with lein for a new project.
Create a new project.
% lein new my-proj
% cd my-proj
This guide enables you to install (ruby-build) and use (rbenv) multiple versions of ruby, isolate project gems (gemsets and/or bundler), and automatically use appropriate combinations of rubies and gems.
# Ensure system is in ship-shape.
aptitude install git zsh libssl-dev zlib1g-dev libreadline-dev libyaml-dev
Python support is needed by vim in order to run things like Conque and Slimv. Arch keeps vim slim by only providing Python support in gvim. But you may prefer vim to gvim, so here's what's needed.
# Install and run abs (sync)
sudo pacman -S abs
" --------------------------------------------------------------------------- | |
" Automagic Clojure folding on defn's and defmacro's | |
" | |
" Blog post: http://writequit.org/blog/?p=413 | |
function GetClojureFold() | |
if getline(v:lnum) =~ '^\s*(defn.*\s' | |
return ">1" | |
elseif getline(v:lnum) =~ '^\s*(def\(macro\|method\|page\|partial\).*\s' | |
return ">1" |