Skip to content

Instantly share code, notes, and snippets.

🐫

ELLIOTTCABLE

🐫
Block or report user

Report or block ELLIOTTCABLE

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 gist:132
def what_is_gist
Sex::Pure
end
View gist:140
This is my gist.
There are many like it, but this one is mine.
It is my life.
I must master it as I must master my life.
Without me, gist is sad.
Without gist, I am sad.
View test1.rb
puts "So I can name files, pretty cool..."
View gist:227
It is more than a pastie clone - it's a versioned pastie! Through the eversexy git! <3
View gist:330
# Translation note:
# init() will not be needed. Our input is already ready to be read. (Alliteration :D)
# Translated from http://compilers.iecc.com/crenshaw/tutor1.txt
TAB = "\t"
class scanner:
def __init__(self):
self.input = list(raw_input())
View find_remove.sh
find . -name ".git" -exec rm -rf {} \;
View gist:614
Size := Object clone
large := Size new
medium := Size new
small := Size new
Colour := Object clone
black := Colour new
brown := Colour new
white := Colour new
View Good manpage
DESCRIPTION
select() and pselect() allow a program to monitor multiple file
descriptors, waiting until one or more of the file descriptors become
"ready" for some class of I/O operation (e.g., input possible). A file
descriptor is considered ready if it is possible to perform the corre‐
sponding I/O operation (e.g., read(2)) without blocking.
The operation of select() and pselect() is identical, with three dif‐
ferences:
View select.rb
[STDERR, STDOUT, STDIN].each {|io| io.sync = true if !io.sync }
while true
ready = select([STDIN])
if ready.flatten.include? STDIN
foo = STDIN.gets
p foo
end
View gist:2004
[Wed Jul 23 - 18:30:06] [elliottcable @ Bishop] [~/Code/rat/]
-- git-rebase --interactive
[Wed Jul 23 - 18:30:10] [elliottcable @ Bishop] [~/Code/rat/]
--
You can’t perform that action at this time.