Skip to content

Instantly share code, notes, and snippets.

Evan Prothro eprothro

Block or report user

Report or block eprothro

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
@eprothro
eprothro / Compass Retina Spriting.md
Last active Dec 27, 2015
Sass sprite generation with compass for retina and non-retina images (example code for a Rails 3 application).
View Compass Retina Spriting.md

Overview

The below Sass+Compass/Ruby can be used to:

  • Generate retina and non-retina sprite maps
  • Allow a single style class to provide retina and non-retina support, per image
  • Automatically generate those sprite style classes

Example markup for a retina supported menu button:

%a.icon-hamburger
@eprothro
eprothro / communication via narrative.md
Last active Feb 6, 2017
Connextra, Gherkin, and Free-form prose for multidisciplinary communication via narrative.
View communication via narrative.md

Overview

Getting clients, managers, project managers, designers, and developers on the same page when it comes to feature expectations is hard. Everyone speaking the same language (literally) can go a long way to achieving the same, metaphorically.

There are three common formats that are great for written and verbal communication between stakeholders with different backgrounds, responsibilities, and risk exposures. They are each natural-language, narrative formats (they use plain english) that anyone can understand, but their structrued nature is proven to help clearly communicate behavior, specify intent and synchronize expectations.

Connextra user stories

  • Great for high level feature description
  • Typically bad for detailed behavior description
@chadbailey59
chadbailey59 / post-merge
Last active Dec 11, 2015
save this as `.git/hooks/post-merge` in any of your repos. Then, when you do a `git pull` (or really any merge I think), if any migrations were updated or the Gemfile was edited, you'll get a handy reminder to migrate or bundle install.
View post-merge
#!/usr/bin/env ruby
# Put me in .git/hooks/post-merge
# Then do chmod a+x .git/hooks/post-merge
migrations = `git diff --name-only master master@{1} | grep db/migrate | wc -l`.strip.to_i
if migrations > 0
puts " "
puts "**************************************************************"
puts "**************************************************************"
@myobie
myobie / mountain-lion-brew-setup.markdown
Created Feb 18, 2012
Get Mountain Lion and Homebrew to Be Happy
View mountain-lion-brew-setup.markdown

Get Mountain Lion and Homebrew to Be Happy

1) Install XCode 4.4 into /Applications

Get it from the App Store.

2) Install Command Line Tools

In XCode's Preferences > Downloads you can install command line tools.

You can’t perform that action at this time.