Instantly share code, notes, and snippets.

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
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 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" },
]
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
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)
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(' ')}"