- Bundler - Bundler maintains a consistent environment for ruby applications. It tracks an application's code and the rubygems it needs to run, so that an application will always have the exact gems (and versions) that it needs to run.
- rabl - General ruby templating with json, bson, xml, plist and msgpack support
- Thin - Very fast and lightweight Ruby web server
- Unicorn - Unicorn is an HTTP server for Rack applications designed to only serve fast clients on low-latency, high-bandwidth connections and take advantage of features in Unix/Unix-like kernels.
- SimpleCov - SimpleCov is a code coverage analysis tool for Ruby 1.9.
- Zeus - Zeus preloads your Rails app so that your normal development tasks such as console, server, generate, and specs/tests take less than one second.
- [factory_girl](h
This file contains hidden or 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains hidden or 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
class BoggleBoard | |
attr_reader :board | |
def initialize(board) | |
@board = board | |
end | |
def create_word(*coords) | |
coords.map { |coord| board[coord.first][coord.last]}.join("") | |
end |
This file contains hidden or 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
puts | |
puts "Do CTRL+C at anytime to end the program.\nCoded by Kenneth Uy / missingno15" | |
#Option to study Binary→Decimal or Decimal→Binary | |
puts "\nPress 1 to study Binary→Decimal\nPress 2 to study Decimal→Binary" | |
print "> "; option = gets.chomp | |
#Checks to make sure that user input is only either 1 or 2 | |
until option == "1" || option == "2" | |
puts "\nSorry! Invalid option! Please try again!" |
This file contains hidden or 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
# Recreating the famous Professor Oak Intro from Pokemon | |
# http://www.youtube.com/watch?v=6jqUMlyvhcU | |
# Asks the user for input based on their gender. Must reply with either | |
# "boy" or "girl" in lower case. | |
def gender | |
puts | |
puts "Now tell me. Are you a boy?\nOr are you a girl?" |
This file contains hidden or 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
cities = {'CA' => 'San Francisco', | |
'MI' => 'Detroit', | |
'FL' => 'Jacksonville'} | |
cities['NY'] = 'New York' | |
cities['OR'] = 'Portland' | |
def find_city(map, state) | |
if map.include? state | |
return map[state] |
NewerOlder