Skip to content

Instantly share code, notes, and snippets.

View mvanholstyn's full-sized avatar

Mark Van Holstyn mvanholstyn

View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
require 'active_support/core_ext'
# The goal of this exercise is work on identifying abstraction which helps simplify, document,
# and separate the concerns going on in file.
#
# Exercise:
# * Find related ideas in the below code
# * Abstract them out (methods, modules, classes, etc, you pick!)
# * If you find multiple ways, then do a separate gist for each way.
# * Rinse repeat until you see no other ways.
@mvanholstyn
mvanholstyn / output.txt
Created September 13, 2012 05:30
Gems with native extensions
$ bundle
Installing bcrypt-ruby (3.0.1) with native extensions
Installing nokogiri (1.5.5) with native extensions
Installing ffi (1.1.5) with native extensions
Installing json (1.7.5) with native extensions
Installing gherkin (2.11.2) with native extensions
Installing debugger-linecache (1.1.2) with native extensions
Installing debugger (1.2.0) with native extensions
Installing eventmachine (1.0.0) with native extensions
Installing libxml-ruby (2.3.3) with native extensions
@mvanholstyn
mvanholstyn / application.rb
Created September 20, 2011 15:17
Heroku - Rails 3.1 Asset Pipeline
if defined?(Bundler)
# If you precompile assets before deploying to production, use this line
# Bundler.require *Rails.groups(:assets => %w(development test))
# If you want your assets lazily compiled in production, use this line
Bundler.require(:default, :assets, Rails.env)
end
// app/assets/javascripts/application.js
//= require lib

HOWTO: iPhone AT&T Tethering

In 10 steps:

  • Update iTunes to 8.2 via Software Update
  • Update your iPhone to the 3.0 release (out today - June 17th)
  • Download this dmg and mount it: tethering file
  • Enable hidden carrier testing option (in Terminal.app): defaults write com.apple.iTunes carrier-testing -bool TRUE
  • Start up iTunes