- You should edit the
database.sample.ymlfile, to your Postgres configuration. - You should create/migrate/seed the data.
- You should run the test suite to assure everything is O.K.
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
| source 'http://rubygems.org' | |
| # Updated Rails version | |
| gem 'rails', '3.1.1' | |
| # Bundle edge Rails instead: | |
| # gem 'rails', :git => 'git://github.com/rails/rails.git' | |
| # Server ('cause Webrick is such a pain in the ass) | |
| gem 'unicorn' |
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
| #! /usr/bin/python | |
| class ReadableGooglon: | |
| vocabulary = list('wnzpkgrdqbfjlxvhcsmt') | |
| foo_letters = list('vkcjq') | |
| mapped = list('0123456789abcdefghij') | |
| not_prep = 'l' | |
| prep_length = 3 | |
| verb_length = 6 #greater than 6 | |
| base_pretty = 20 | |
| min_pretty_num = 404169 |
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
| for file in *.erb; do mv $file `echo $file | sed 's/\(.*\.\)erb/\1haml/'`; done |
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
| // Package :V | |
| import java.awt.event.ActionEvent; | |
| import java.awt.event.ActionListener; | |
| import java.util.GregorianCalendar; | |
| import java.util.Observable; | |
| import javax.swing.Timer; | |
| public class Clock extends Observable implements ActionListener { |
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
| heroku pg:reset SHARED_DATABASE --confirm=_database_name_ && heroku rake db:migrate db:seed |
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
| $columns: 12 | |
| $margin: 1.8% | |
| @function column-width($column) | |
| @return ($column * ((100% / $columns) - $margin)) + (($column - 1) * $margin) | |
| .container | |
| padding-left: 20px | |
| padding-right: 20px |
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
| resources :stats do | |
| member :tickets do | |
| member :details | |
| end | |
| 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
| #!/usr/bin/env ruby | |
| class FriendlyRobots | |
| $num_test_case = nil | |
| $test_case = Array.new | |
| def get_num_test_case | |
| puts "How fast can the robots complete the hallway?" | |
| puts "Please, input the test case: (an integer value)" |