Skip to content

Instantly share code, notes, and snippets.

View samshull's full-sized avatar
🎯
Focusing

Sam Shull samshull

🎯
Focusing
View GitHub Profile
@timnovinger
timnovinger / .irbrc
Last active September 26, 2015 19:47 — forked from tjh/.irbrc
# *****************************************
# .irbrc
#
# Tim Harvey - Literacy5
# http://literacy5.com/
#
# Includes tons of visual sugar, based on the
# work of:
#
# UnixMonkey - http://gist.github.com/254551
@tjh
tjh / gist:1051092
Created June 28, 2011 13:07
Watchr script for Cucumber, Rspec, and Evergreen
require 'growl'
ENV["WATCHR"] = "1"
$spec_cmd = "rspec --colour --format nested -d"
$evergreen_cmd = "evergreen run"
def growl(message)
if message == 'true' || message.match(/\s0\s(errors|failures)/)
title = 'Watchr: All tests passed'
priority = 4
@dhh
dhh / gist:1014971
Created June 8, 2011 18:09
Use concerns to keep your models manageable
# autoload concerns
module YourApp
class Application < Rails::Application
config.autoload_paths += %W(
#{config.root}/app/controllers/concerns
#{config.root}/app/models/concerns
)
end
end
@jed
jed / LICENSE.txt
Created May 10, 2011 16:39 — forked from 140bytes/LICENSE.txt
use anchor tags to parse URLs into components
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Jed Schmidt <http://jed.is>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@jed
jed / LICENSE.txt
Created May 10, 2011 16:38 — forked from 140bytes/LICENSE.txt
use cached DOM elements to escape HTML
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Jed Schmidt <http://jed.is>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@jed
jed / LICENSE.txt
Created May 9, 2011 16:17 — forked from 140bytes/LICENSE.txt
communicate with jsonp
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Jed Schmidt <http://jed.is>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@bryanl
bryanl / campfire-emoji.txt
Created January 27, 2011 16:34
campfire emoji
Surround these with : e.g. :calling:
+1
-1
bulb
calling
clap
cop
email
feet

Sure, I had been a telemarketer, a strawberry picker, a caterer and an employee of Dairy Queen. But on January 1st of 2009 I got my first “real” job.

I was hired by StudioCT, a web design and development shop run through The Ohio State University Honors and Scholars program StudioCT is managed by David McIntyre and Ray Arebalo. Thanks to them, I gained my first real web programming experience. Up until that point my only familiarity with web programming had come from taking a few of the classes offered by the Media, Marketing and Communications Scholars Program. I played around with .Net 2.0 using C# under the much appreciated guidance of Jimmy Lauzau, scattering in some php with Anish Minstry. However, my results were only of moderate success, which was discouraging. Working at studioCT quickly changed this, as I was put on real projects and assigned to work with students who had quite a bit more experience than I had

@jlindsey
jlindsey / culerity.js
Created June 3, 2010 16:47
Using Cucumber/Capybara/Culerity, a step to wait until all AJAX calls are complete.
// this allows culerity to wait until all ajax requests have finished
jQuery(function($) {
var original_ajax = $.ajax;
var count_down = function(callback) {
return function() {
try {
if(callback) {
callback.apply(this, arguments);
};
} catch(e) {
@foca
foca / .gitconfig
Created October 10, 2009 23:15
open a vim buffer for each unmerged file in git
[alias]
unmerged = !vim -o $(git-unmerged-files)