- You should edit the
database.sample.yml
file, 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
$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
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
// 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
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
#! /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
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
%h1 When using HAML, or even the rails .erb format, you can improve the loading of your pages using: | |
= stylesheet_link_tag controller.action_name | |
%span Or | |
= stylesheet_link_tag self.current_method | |
%span And create the proper CSS file in the public/style folder (e.g.: action_name.(s)css/ current_method.(s)css. | |
With this, the user only requests the CSS file from that page he is visiting. |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="Content-type" content="text/html; charset=utf-8"> | |
<title>MIA</title> | |
<style type="text/css" media="screen"> | |
* { padding: 0; margin: 0; font: normal 19px/20px "Georgia", Times New Roman, serif; color: #b5671e; } | |
body { background: #F9667A; } | |
#wrapper { width: 90%; background: #916F4F; margin: 30px auto; overflow: hidden; } | |
.column { float: left; width: 200px; height: auto; padding: 10px; margin: 20px 10px; background: #fbdcdc; } |