This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |