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 -
http://marketplace.xbox.com/en-US/Product/Saints-Row-The-Third/66acd000-77fe-1000-9115-d8025451086d
@jaymcgavren
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
jaymcgavren / -
Last active Aug 29, 2015
USA links to upcoming Games with Gold games for XBox 360.
View -
http://marketplace.xbox.com/en-US/Product/Dark-Souls/66acd000-77fe-1000-9115-d8024e4d083a
http://marketplace.xbox.com/en-US/Product/Charlie-Murder/66acd000-77fe-1000-9115-d80258410b83
http://marketplace.xbox.com/en-US/Product/SUPER-STREETFIGHTER-IV-ARCADE-EDITION/66acd000-77fe-1000-9115-d802434307fc
View ಠ_ಠ.rb
def_ಠ(error)
raise Exception, error, caller
end
_"Are you serious?"
View test.rb
class MyClass
def initialize
puts "hello"
end
def foo
initialize
end
end
object = MyClass.new
@jaymcgavren
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 'http://jay.mcgavren.com/files/Broke_For_Free_-_Gold_Can_Stay.zip'
homepage 'http://brokeforfree.com/'
prefix = 'Music/Caskroom'
artist_name = 'Broke for Free'
album_name = 'Gold Can Stay'
path = File.join(prefix, artist_name, album_name)
@jaymcgavren
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
#!/usr/bin/ruby
require 'utility'
file = File.open(File.join(ENV['HOME'], "events.txt"), "a")
t = Time.new
time = sprintf("%04d-%02d-%02d_%02d%02d%02d", t.year, t.month, t.day, t.hour, t.min, t.sec)
file.puts "#{time}\t#{ARGV.join(' ')}"
You can’t perform that action at this time.