Skip to content

Instantly share code, notes, and snippets.

View cdimartino's full-sized avatar

Chris DiMartino cdimartino

View GitHub Profile
@cdimartino
cdimartino / 0_reuse_code.js
Created February 12, 2016 22:11
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
# rbenv setup
export RBENV_ROOT=/usr/local/rbenv
export PATH="$RBENV_ROOT/bin:$PATH"
eval "$(rbenv init -)"
@cdimartino
cdimartino / bdd.vim
Created August 31, 2012 14:33
Run RSpec and Cucumber from vim, on the current spec/feature
" Vim functions to run RSpec and Cucumber on the current file and optionally on
" the spec/scenario under the cursor.
function! RailsScriptIfExists(name)
" Bundle exec
if isdirectory(".bundle") || (exists("b:rails_root") && isdirectory(b:rails_root . "/.bundle"))
return "bundle exec " . a:name
" System Binary
else
return a:name
@cdimartino
cdimartino / pomodoroscript.scpt
Created July 24, 2012 04:49 — forked from puttiz/pomodoroscript.scpt
Things integrate with Pomodoro
-- End : Marking to-dos completed
tell application "Things"
tell list "Today"
set toDoToComplete to to do named "$pomodoroName"
set status of toDoToComplete to completed
set tag names of toDoToComplete to "⌘,✔"
end tell
move toDoToComplete to list "Next"
end tell