This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# mongo_template.rb | |
# remove unneeded defaults | |
run "rm public/index.html" | |
run "rm public/images/rails.png" | |
run "rm public/javascripts/controls.js" | |
run "rm public/javascripts/dragdrop.js" | |
run "rm public/javascripts/effects.js" | |
run "rm public/javascripts/prototype.js" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# mongo_template.rb | |
# | |
# mongo_template | |
# | |
# Usage: | |
# rails new appname -m /path/to/mongo_template.rb | |
# | |
# Also see http://textmate.rubyforge.org/thor/Thor/Actions.html | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
import visual | |
visual.scene.width = 500 | |
visual.scene.heigth = 500 | |
visual.scene.center = (0,0,0) | |
visual.scene.title = "Rotate" | |
cube = visual.box(pos=(0,0,0),axis=(0,0,1),length=0.1,width=0.1,height=0.1,color=visual.color.blue) | |
visual.box(pos=(1,0,0),axis=(0,0,1),length=0.3,width=0.3,height=0.3,color=visual.color.blue) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
wget --no-check-certificate https://github.com/joshuaclayton/blueprint-css/tarball/master | |
mv master master.tar.gz | |
tar xfz master.tar.gz | |
mv joshuaclayton-blueprint-css*/blueprint . | |
rm -rf master.tar.gz | |
rm -rf joshuaclayton-* | |
echo "Add this :" | |
echo -e ' | |
<link rel="stylesheet" href="css/blueprint/screen.css" type="text/css" media="screen, projection"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
brew install bash | |
brew install bash-completion | |
brew install coreutils | |
brew install ctags | |
brew install pwgen | |
brew install rename | |
brew install tmux | |
brew install tree | |
brew install unrar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
git clone https://github.com/b4winckler/vim.git | |
cd vim | |
[ -d $HOME/opt ] || mkdir -p $HOME/opt | |
./configure CFLAGS="-arch i386 -arch x86_64 -O3 -pipe" --prefix=$HOME/opt --enable-pythoninterp --with-features=huge --enable-cscope | |
make | |
make install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if has('mac') | |
" for problem with ncurses from 10.6 | |
nnoremap ^[OA <up> | |
"nnoremap ^[OB <down> | |
"nnoremap ^[OD <left> | |
"nnoremap ^[OC <right> | |
" when ^[OA is <crtl-v> up key | |
" if uncomment all I lost the right arrow | |
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nn <silent> <leader>vn :call ToggleNumber()<CR> | |
fun! ToggleNumber() "{{{ | |
if exists('+relativenumber') | |
:exec &nu==&rnu? "setl nu!" : "setl rnu!" | |
else | |
setl nu! | |
endif | |
endf "}}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" http://j.mp/dotvimrc | |
set list | |
set listchars=tab:▸\ ,eol:¬ | |
nn <silent> <leader>vl :setl list!<CR> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" http://j.mp/dotvimrc | |
set statusline+=%{FugitiveStatuslineShort()} | |
fun! FugitiveStatuslineShort() "{{{ | |
return substitute(fugitive#statusline(),"master","M","g")" | |
endf "}}} |
OlderNewer