A ZSH theme optimized for people who use:
- Solarized
- Git
- Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)
Here are a list of headless browsers that I know about:
# default vim on osx doesn't have python, ruby support or clipboard support. These configure options add all that | |
# I also ran into problems using rvm ruby, had to include those libs in the LDFLAGS for vim | |
# Steps: | |
$ rvm install 1.9.1 | |
$ rvm use 1.9.1 # vim doesn't support anything higher | |
$ curl ftp://ftp.vim.org/pub/vim/unix/vim-7.3.tar.bz2 | tar xj | |
$ cd vim73 | |
$ ./configure --with-features=huge --enable-perlinterp=yes --enable-rubyinterp=yes --enable-pythoninterp=yes --enable-multibyte |
I've kept quiet for awhile for various political reasons, but I now feel a kind of social responsibility to deter people from banking their business on MongoDB.
Our team did serious load on MongoDB on a large (10s of millions of users, high profile company) userbase, expecting, from early good experiences, that the long-term scalability benefits touted by 10gen
$ history | awk {'print $2, $3, $4'} | sort | uniq -c | sort -k1 -rn | head -n 30 | |
610 git status | |
568 git commit -m | |
491 git add . | |
252 git push origin | |
176 bundle | |
138 rails s | |
128 ls | |
120 git commit --amend | |
114 git reset --hard |
jQuery.fn.shake = function(intShakes, intDistance, intDuration) { | |
this.each(function() { | |
$(this).css({ | |
position: "relative" | |
}); | |
for (var x = 1; x <= intShakes; x++) { | |
$(this).animate({ | |
left: (intDistance * -1) | |
}, (((intDuration / intShakes) / 4))).animate({ | |
left: intDistance |
require "pg" | |
require "redis" | |
words = File.read("/usr/share/dict/words").split "\n" | |
pgconn = PGconn.open :dbname => "test_hstore", :port => 5433, :user => "test_user", :password => "changeme" | |
redis = Redis.new | |
reps = [1,10,100,1000,10000] | |
pg_inserts = [] | |
pg_selects = [] | |
redis_sets = [] |
{ | |
browser : 'Chrome', | |
mail : 'Sparrow', | |
calendar : 'iCal', | |
twitter : 'Twitter.app', | |
campfire : 'Propane', | |
contacts : 'Cobook', | |
terminal : 'iTerm2', | |
editor : 'vim', | |
notes : 'Evernote', |
var parser = document.createElement('a'); | |
parser.href = "http://example.com:3000/pathname/?search=test#hash"; | |
parser.protocol; // => "http:" | |
parser.hostname; // => "example.com" | |
parser.port; // => "3000" | |
parser.pathname; // => "/pathname/" | |
parser.search; // => "?search=test" | |
parser.hash; // => "#hash" | |
parser.host; // => "example.com:3000" |