Skip to content

Instantly share code, notes, and snippets.

View seeflanigan's full-sized avatar

Cory Flanigan seeflanigan

View GitHub Profile
@redsquirrel
redsquirrel / cs-man-of-the-year.txt
Created February 18, 2015 04:17
The first ever Computer Science "Man of the Year"
The first ever Computer Science "Man of the Year"...
...had a PhD in mathematics from Yale, and was a professor of math.
...joined the Navy at age 37 to help with World War II.
...learned to program as one of the original programmers of the Mark 1 at Harvard, which was instrumental in
completing the Manhatten project.
...became the Head of Software at the first computer-focused tech startup, which created the first popular
@kartikrustagi
kartikrustagi / appusers.rb
Created April 15, 2012 11:23
Auth using Sinatra-Warden
require 'openssl'
class AppUser < Sequel::Model(:AppUsers)
AppUser.unrestrict_primary_key
def self.authenticate(username, password)
#TODO: Store salt in config
puts "In Auth"
user = self.first(:username => username)
@seeflanigan
seeflanigan / should_include_module_macro.rb
Created July 7, 2010 19:47
RSpec matcher/macro to detect if a module is included in another module or class.
module CustomMacros
def it_should_include_module(expected)
it "should include #{expected}" do
should include_module(expected)
end
end
def it_should_not_include_module(expected)
it "should not include #{expected}" do
should_not include_module(expected)