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
| development: | |
| adapter: postgresql | |
| encoding: unicode | |
| database: black_swan_development | |
| pool: 5 | |
| username: andyjbas | |
| password: | |
| test: | |
| adapter: postgresql |
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
| <%= form_for(@order) do |f| %> | |
| <% if @order.errors.any? %> | |
| <div id="error_explanation"> | |
| <h2><%= pluralize(@order.errors.count, "error") %> prohibited this order from being saved:</h2> | |
| <ul> | |
| <% @order.errors.full_messages.each do |msg| %> | |
| <li><%= msg %></li> | |
| <% end %> | |
| </ul> |
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
| # orders show | |
| <%= @order.status %> | |
| Line_items: | |
| <br> | |
| <% @order.line_items.each do |item| %> | |
| <%= item.notes %>, <%= item.units %> | |
| <% 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
| html { | |
| background: url('../images/whitebkg.jpg') repeat; | |
| background-color: transparent; | |
| height: 100% | |
| } | |
| body { | |
| height: 100%; | |
| background-color: transparent; | |
| } |
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
| Place Div/Tot Div Guntime PerF 1sthalf 2ndhalf 100m Name Club Nettime | |
| ===== ======= ===== ======= ==== ======= ======= ====== ========================= ========================== ======= | |
| 1 1/24 M3034 24:46 866 12:11 12:35 15.88 Andy Bas Prairie Inn Harriers 24:46 | |
| 2 1/47 M4044 25:03* 856 12:22 12:41 17.52 Some Name Yo Prairie Inn Harriers Runni 25:03 |
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
| class Book | |
| def initialize | |
| end | |
| attr_reader :title | |
| def title=(string) | |
| @title = string.titlize | |
| 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
| class RPNCalculator | |
| attr_accessor :stack | |
| def initialize | |
| self.stack = Array.new | |
| end | |
| def push(val) | |
| self.stack.push(val.to_f) | |
| 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
| $("#feed").on("click", ".multicheck", function(e) { | |
| $(this).toggleClass("checked"); | |
| toggleSorting(this); | |
| return false; | |
| }); |
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
| function Car( model, year, miles ) { | |
| this.model = model; | |
| this.year = year; | |
| this.miles = miles; | |
| } | |
| // Note here that we are using Object.prototype.newMethod rather than |
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
| function Car( model, year, miles ) { | |
| this.model = model; | |
| this.year = year; | |
| this.miles = miles; | |
| } | |
| // Note here that we are using Object.prototype.newMethod rather than |
OlderNewer