Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View jaymcgavren's full-sized avatar

Jay McGavren jaymcgavren

View GitHub Profile
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.
http://marketplace.xbox.com/en-US/Product/Saints-Row-The-Third/66acd000-77fe-1000-9115-d8025451086d
@jaymcgavren
jaymcgavren / -
Last active August 29, 2015 14:01
USA links to upcoming Games with Gold games for XBox 360.
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
@jaymcgavren
jaymcgavren / Default (OSX).sublime-keymap
Last active August 29, 2015 14:01
~/Library/Application Support/Sublime Text 3/Packages/User/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" },
]
def ಠ_ಠ(error)
raise Exception, error, caller
end
ಠ_ಠ "Are you serious?"
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 August 29, 2015 14:06
These Homebrew Casks are a proof of concept for downloading and managing music distributed under Creative Commons and other open licenses.
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 August 29, 2015 14:18
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`.
class PlayerScore
include Comparable
attr_accessor :grade
def <=>(other)
return 0 if grade == other.grade
if grade == "S+"
return 1
this is a test
#!/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(' ')}"