Skip to content

Instantly share code, notes, and snippets.

View benwoodward's full-sized avatar
💭
Working on spoken.app

Ben Woodward benwoodward

💭
Working on spoken.app
View GitHub Profile

SASS Modules

Goals

  • modularity
  • encapsulation
  • predictability
  • extensibility
  • integrability
  • explicitness
@benwoodward
benwoodward / haml_data-attributes.haml
Created August 12, 2014 13:45
How to convert html 5 data attributes in haml to html
%table.table.table-bordered.table-striped#sortable{:data => {update_url:
sort_admin_things_path}}
@benwoodward
benwoodward / keybase.md
Created September 24, 2014 01:51
keybase.md

Keybase proof

I hereby claim:

  • I am benwoodward on github.
  • I am benwoodward (https://keybase.io/benwoodward) on keybase.
  • I have a public key whose fingerprint is 8CB4 B3A3 55DC D852 72E0 CF5B DC0B 197A B188 0BE3

To claim this, I am signing this object:

@benwoodward
benwoodward / do_end.sublime-snippet
Created October 12, 2014 00:57
Sublime Text Snippet for simple "do ... end", because typing do+enter annoyingly activates the 'dob' (do |variable| .. end) snippet, which is not always what you want.
<snippet>
<content><![CDATA[do$do
$0
end]]></content>
<tabTrigger>do</tabTrigger>
<scope>source.ruby</scope>
<description>do … end</description>
</snippet>
@benwoodward
benwoodward / .bash_profile
Created February 27, 2012 15:39
Use MacVim as default EDITOR with Git on iTerm command line
export EDITOR='mvim -f --nomru -c "au VimLeave * !open -a iTerm"'
@benwoodward
benwoodward / .gitconfig
Created February 28, 2012 10:40
Push only your local branch by default when using `git push`
; `git config --global push.default current`
[push]
default = current
@benwoodward
benwoodward / .gitconfig
Created February 29, 2012 21:55
Configure fugitive.vim / git web--browse to open browser when using :Gbrowse (for some reason wasn't working).
; `open` on OS X opens the default browser
; when passed a URL
git config --global web.browser open
@benwoodward
benwoodward / Event.rb
Created March 2, 2012 16:40
mongomapper multiple has many relationships
class Event
many :attendees, :class_name => "User"
many :interested, :class_name => "User"
end
@benwoodward
benwoodward / .inputrc
Created March 6, 2012 09:54
Some useful dotfile configs
set completion-ignore-case On
@benwoodward
benwoodward / consecutive_split.rb
Created March 22, 2012 16:00
Match every group of two words with ruby
"one two three four".split.each_cons(2).map { |v| v.join(" ") }
# => "one two", "two three", "three four"