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
# -*- coding: utf-8 -*- | |
["Blender","Cake Pan","China Cap","Coctail Shaker","Colander","Food Processor","French Knife","Grater","Half Hotel Pan","Half Sheet Pan","Hotel Pan","Ladle","Large Brazier","Large Sauté Pan","Measuring Cups","Measuring Spoons","Meat Mallet","Metal Spatula","Mixer","Mixing Bowl","P.C. Scale","Paring Knife","Pastry Brush","Pastry Cutter","Pie/Tarte Pan","Roasting Pan","Rolling Pin","Rubber Spatula","Sauce Pan","Serrated Knife","Sheet Pan","Sieve","Small Brazier","Small Sauté Pan","Stock Pot","Strainer","Tongs","Wire Whip"].each do |tool| | |
Tool.create(:name => tool) | |
end | |
["g","kg","mg","lb","oz","pt","qt","gal","tsp","tbl","ml","fl oz"].each do |unit| | |
Unit.create(:name => unit) | |
end | |
["Peanuts","Wheat"].each do |allergen| |
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
/opt/ruby-enterprise/bin/rake db:seed --trace | |
(in /home/Webserver/onomojo/LineMonkey) | |
** Invoke db:seed (first_time) | |
** Invoke environment (first_time) | |
** Execute environment | |
** Execute db:seed | |
rake aborted! | |
unknown attribute: auto | |
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/base.rb:2906:in `assign_attributes' | |
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/base.rb:2902:in `each' |
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
# arr.flatten ... Just kidding :) | |
def my_flatten arr | |
new_arr = [] | |
arr.each do |el| | |
if el.is_a?(Array) | |
new_arr = my_union(new_arr, my_flatten(el)) | |
else | |
new_arr << el | |
end |
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
conan@image-server:~/imageflow$ cargo build --all --verbose | |
Fresh rgb v0.5.8 | |
Fresh itoa v0.3.1 | |
Fresh linked-hash-map v0.4.2 | |
Fresh quick-error v1.2.0 | |
Fresh unicode-xid v0.0.4 | |
Fresh vec_map v0.8.0 | |
Fresh dtoa v0.4.1 | |
Fresh pkg-config v0.3.9 | |
Fresh gcc v0.3.50 |
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 'date' | |
$config = { | |
"formats" => { | |
"comma" => { | |
"date_format" => "%m/%d/%Y", | |
"parts" => { | |
"date" => 2, | |
"city" => 1, | |
"name" => 0 |
I hereby claim:
- I am edugonch on github.
- I am edubeon (https://keybase.io/edubeon) on keybase.
- I have a public key ASA2WcD-uM5ttCkrFvzX2fq5kK7rKaThsSpqQTkrLp6iPgo
To claim this, I am signing this object: