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
| create_table "locations", :force => true do |t| | |
| t.integer "shelf_life_id" | |
| t.datetime "created_at", :null => false | |
| t.datetime "updated_at", :null => false | |
| t.string "name" | |
| end | |
| create_table "shelf_lives", :force => true do |t| | |
| t.integer "item_kind_id" | |
| t.integer "duration" |
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
| create_table "main", :force => true do |t| | |
| t.datetime "created_at", :null => false | |
| t.datetime "updated_at", :null => false | |
| end | |
| create_table "dependent", :force => true do |t| | |
| t.integer "main_id" | |
| t.datetime "created_at", :null => false | |
| t.datetime "updated_at", :null => false | |
| t.string "name" |
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
| Main.create | |
| dependent = Main.dependent.new | |
| dependent.save | |
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
| Main.create | |
| dependent = Main.build_dependent | |
| dependent.save | |
| #OR | |
| Main.create | |
| dependent = Main.create_dependent |
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
| def find_and_generate_overview | |
| start_location = @raw_data =~ /starttext|/i | |
| end_location = @raw_data =~ /endtext/i | |
| self.overview = @raw_data[start_location, end_location] | |
| 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
| self.overview = @raw_data[start_location, end_location] |
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
| self.overview = @raw_data[start_location..end_location] |
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
| require 'zip/zipfilesystem' | |
| z = "somepath" | |
| Zip::ZipFile.open(z) do |zipfile| | |
| zipfile.glob("**/*.*").each do |entry| | |
| {block} | |
| 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
| wget ftp://ftp.graphicsmagick.org/pub/GraphicsMagick/1.3/GraphicsMagick-1.3.15.tar.gz | |
| tar -xvf GraphicsMagick-1.3.15.tar.gz | |
| cd GraphicsMagick-1.3.15 | |
| ./configure | |
| make |
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
| .pagination a, .pagination span.current, .pagination span.gap { | |
| float: left; | |
| padding: 0 14px; | |
| line-height: 38px; | |
| text-decoration: none; | |
| background-color: white; | |
| border: 1px solid #DDD; | |
| border-left-width: 0; | |
| } |