Skip to content

Instantly share code, notes, and snippets.

@yokolet
yokolet / gist:2176753
Created March 24, 2012 00:34
Rails 3: How to add a new field to an existing database table
Existing schema is below:
ActiveRecord::Schema.define(:version => 20120130161449) do
create_table "movies", :force => true do |t|
t.string "title"
t.string "rating"
t.text "description"
t.datetime "release_date"
t.datetime "created_at"
@markfknight
markfknight / jekyll_monokai_pygments.css
Created March 28, 2014 00:37
Jekyll Monokai Pygments for GitHub Pages
/* Adjusted to give override background and text colour */
.highlight pre, pre, .highlight .hll {
background-color: #49483E;
border: 1px solid #ccc;
padding: 6px 10px;
border-radius: 3px;
color: #FFFFFF;
}
/* Highlights taken from https://gist.github.com/asaaki/1007420 for Monokai theme */
.c { color: #75715e } /* Comment */
@staltz
staltz / introrx.md
Last active November 19, 2024 02:40
The introduction to Reactive Programming you've been missing