Skip to content

Instantly share code, notes, and snippets.

Jay McGavren jaymcgavren

Block or report user

Report or block jaymcgavren

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
View -
Aren't good enough and don't try: Die in obscurity.
Are good enough and don't try: Die in obscurity.
Aren't good enough and do try: Die in obscurity.
Are good enough and do try: Die famous.
The only part you control is whether you try.
Do try.
View -
jaymcgavren / Default (OSX).sublime-keymap
Last active Aug 29, 2015
~/Library/Application Support/Sublime Text 3/Packages/User/Default (OSX).sublime-keymap
View Default (OSX).sublime-keymap
// Modifiers for"keys" can be "super", "ctrl", "alt", and/or "shift", joined with "+" signs.
{ "keys": ["super+3"], "command": "prev_view" },
{ "keys": ["super+4"], "command": "next_view" },
jaymcgavren / -
Last active Aug 29, 2015
USA links to upcoming Games with Gold games for XBox 360.
View -
View ಠ_ಠ.rb
raise Exception, error, caller
_"Are you serious?"
View test.rb
class MyClass
def initialize
puts "hello"
def foo
object =
jaymcgavren / broke-for-free_gold-can-stay.rb
Last active Aug 29, 2015
These Homebrew Casks are a proof of concept for downloading and managing music distributed under Creative Commons and other open licenses.
View broke-for-free_gold-can-stay.rb
class BrokeForFree_goldCanStay < Cask
version 'latest'
sha256 :no_check
url ''
homepage ''
prefix = 'Music/Caskroom'
artist_name = 'Broke for Free'
album_name = 'Gold Can Stay'
path = File.join(prefix, artist_name, album_name)
jaymcgavren / player_score.rb
Last active Aug 29, 2015
The `PlayerScore` class represents a player's completion grade in a video game. For some inexplicable reason, the possible grades, from best to worst, are: "S+", "S", and "A". This class implements the spaceship operator, so that it can mix in `Comparable`.
View player_score.rb
class PlayerScore
include Comparable
attr_accessor :grade
def <=>(other)
return 0 if grade == other.grade
if grade == "S+"
return 1
View gist:133755
require 'utility'
file =['HOME'], "events.txt"), "a")
t =
time = sprintf("%04d-%02d-%02d_%02d%02d%02d", t.year, t.month,, t.hour, t.min, t.sec)
file.puts "#{time}\t#{ARGV.join(' ')}"
You can’t perform that action at this time.