Skip to content

Instantly share code, notes, and snippets.

@seanmcmills
seanmcmills / sublime-text-3-settings.json
Last active December 22, 2015 13:08 — forked from olivierlacan/sublime-text-2-settings.json
use as the entire "Settings — User" file in Sublime Text 3. thanks olivierlacan!
{
"draw_white_space": "all",
"translate_tabs_to_spaces": true,
"draw_centered": true,
"trim_trailing_white_space_on_save": true,
"ensure_newline_at_eof_on_save": true,
"save_on_focus_lost": true,
"animation_enabled": false,
"highlight_modified_tabs": true,
"bold_folder_labels": true,
@seanmcmills
seanmcmills / zeus.json
Last active December 23, 2015 05:29
zeus.json
{
"command": "ruby -rubygems -r./custom_plan -eZeus.go",
"plan": {
"boot": {
"default_bundle": {
"development_environment": {
"prerake": {"rake": []},
"console": ["c"],
"server": ["s"]
@seanmcmills
seanmcmills / .gitconfig-aliases
Last active December 24, 2015 10:49
.gitconfig
[user]
name = Sean McMills
email = seanmcmills@me.com
[core]
quotepath = false
excludesfile = /Users/seanmcmills/.gitignore_global
[difftool "Kaleidoscope"]
cmd = ksdiff-wrapper git \"$LOCAL\" \"$REMOTE\"
[mergetool "sourcetree"]
cmd = /usr/local/bin/ksdiff --merge --output \"$MERGED\" --base \"$BASE\" -- \"$LOCAL\" --snapshot \"$REMOTE\" --snapshot
=Navigating=
visit('/projects')
visit(post_comments_path(post))
=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click('Button Value')
@seanmcmills
seanmcmills / sublime key bindings - user
Last active August 29, 2015 13:59
sublime key bindings - user
[
{ "keys": ["alt+shift+r"], "command": "reveal_in_side_bar"},
{ "keys": ["ctrl+r"], "command": "find_results_apply_changes" },
{ "keys": ["super+alt+down"], "command": "goto_definition" }
]
alias rs="rails s"
alias rc="rails c"
alias rd="rails db"
alias rdp="rake db:phoenix"
alias rdm="rake db:migrate"
alias rdm0="rake db:migrate VERSION=0"
alias rdmr="rake db:migrate:redo"
alias rdr="rake db:rollback"
alias rdk="rake db:kapow"
alias rr="rake routes"
@seanmcmills
seanmcmills / mockingspongebob.rb
Last active August 8, 2019 14:45
Change Sentence into a Mocking SpongeBob Sentence!
def mockingspongebob str
str.split.map{|w|w.split('').map{|c|c.send(%w(upcase downcase).sample)}.join}.join(' ')
end
# cHAnge sentEnCE inTO a mocKING spOnGEBob SENTEnce!
# ChANGe senTENce INto A moCKing SPongEBOb senTenCe!
# CHaNgE SENtenCe IntO A MocKING sPongebOB sENTEnCe!
# ChanGE sEnTenCE INTO a MoCKIng Spongebob SENtEnCe!