
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/env zsh | |
if [[ -s "${TM_PROJECT_DIRECTORY}/.rvmrc" ]] | |
then | |
source "${TM_PROJECT_DIRECTORY}/.rvmrc" | |
fi | |
`which ruby` $* |
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
Surround these with : e.g. :calling: | |
+1 | |
-1 | |
bulb | |
calling | |
clap | |
cop | |
feet |
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
# 1 # Processing enumerated arrays using two blocks | |
area = "Europe" | |
timeZoneNames = NSTimeZone.knownTimeZoneNames | |
areaArray = NSMutableArray.arrayWithCapacity 1 | |
areaIndexes = timeZoneNames.indexesOfObjectsWithOptions NSEnumerationConcurrent, | |
passingTest: -> (obj, idx, stop) { | |
tmpStr = obj | |
tmpStr.hasPrefix area | |
} | |
tmpArray = timeZoneNames.objectsAtIndexes areaIndexes |
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/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |
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
.bended-shadow {position:relative} | |
.bended-shadow::before, .bended-shadow::after { | |
content: ''; | |
position: absolute; | |
width: 60%; | |
height: 20px; | |
-webkit-box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5); | |
-moz-box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5); | |
-ms-box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5); |
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/env ruby | |
if ARGV.size < 2 | |
puts "Usage: deployto <environment> <branch name>" | |
else | |
begin | |
env = ARGV[0] | |
branch = ARGV[1] | |
system("git checkout #{env};git merge #{branch};git push origin #{env};cap #{env} deploy:migrations;") | |
system("cap #{env} deploy:cleanup") | |
rescue |
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
" bind control-l to hashrocket | |
imap <C-l> <Space>=><Space> | |
" convert word into Ruby symbol | |
imap <C-k> <C-o>b:<Esc>Ea | |
nmap <C-k> lbi:<Esc>E | |
" folding settings | |
set foldmethod=indent "fold based on indent | |
set foldnestmax=10 "deepest fold is 10 levels |
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
" Remove the scrollbars on MacVim | |
set guioptions=aAce | |
" set the default font | |
set guifont=DejaVu_Sans_Mono:h12 | |
" Turn off balloons. They drive me nuts on Ruby files | |
set noballooneval | |
" Command-T OS-X Menu mapping turned back on. I like it better this way. |
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
Tomorrow-Night | |
bufkill.vim | |
tabular | |
vim-less | |
vim-pasta | |
vim-ragtag | |
vim-rvm | |
vim-rake | |
vim-bundler | |
vim-ruby-debugger |
OlderNewer