Skip to content

Instantly share code, notes, and snippets.

Sean M seanmcmills

Block or report user

Report or block seanmcmills

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@seanmcmills
seanmcmills / mockingspongebob.rb
Last active Aug 8, 2019
Change Sentence into a Mocking SpongeBob Sentence!
View mockingspongebob.rb
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!
View rails useful rake aliases
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 / sublime key bindings - user
Last active Aug 29, 2015
sublime key bindings - user
View 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" }
]
View capybara cheat sheet
=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')
View .gitconfig-aliases
[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
View zeus.json
{
"command": "ruby -rubygems -r./custom_plan -eZeus.go",
"plan": {
"boot": {
"default_bundle": {
"development_environment": {
"prerake": {"rake": []},
"console": ["c"],
"server": ["s"]
@seanmcmills
seanmcmills / sublime-text-3-settings.json
Last active Dec 22, 2015 — forked from olivierlacan/sublime-text-2-settings.json
use as the entire "Settings — User" file in Sublime Text 3. thanks olivierlacan!
View sublime-text-3-settings.json
{
"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,
You can’t perform that action at this time.