Skip to content

Instantly share code, notes, and snippets.

View mculp's full-sized avatar
🎨
arting

Matt Culpepper mculp

🎨
arting
View GitHub Profile
@mculp
mculp / 0_reuse_code.js
Last active August 29, 2015 14:18
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
all = Hash.new
re1='.*?'
re2='(<(\@|\ )?([^>]+)>)\ (.*)'
regexp = Regexp.new re1+re2
known_aliases = {
'mculp' => %w[brak_dr0neb0mber murdoc murdocc],
'vaxinate' => %w[vaxinate_pc naughty_horse],
'wheeler' => %w[wheelzor],
'generalissimo' => %w[generali general|secret],
module Kernel
def fizz_buzz
1.upto(100){|n|puts'FizzBuzz'[o=n**4%-15,o+13]||n}
end
end
# fizz_buzz