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
| // Grabs the size selected and adds it to the total | |
| $("select[name = 'sizes[]']").click(function(){ | |
| var sizes = $("select[name = 'sizes[]']"); | |
| var counter = 0; | |
| for (var i=0; i < sizes.length; i++) { | |
| counter = Number(counter) + Number(sizes[i].value); | |
| }; | |
| sub_total = counter; | |
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
| Scenario: Create a post with a lower case title | |
| Given I am logged in | |
| And I visit the new posts page | |
| And I fill in "Title" with "I love coffeescript" | |
| And I fill in "Content" with "Super cool" | |
| And I press "Post" | |
| Then the title should be "I Love Coffeescript" | |
| # post_steps.rb |
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
| autoload -U promptinit | |
| promptinit | |
| autoload -U compinit promptinit | |
| compinit | |
| promptinit | |
| setopt prompt_subst | |
| autoload -U colors && colors | |
| promptinit |
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
| <% if Rails.env.development? %> | |
| <div class="development-mode">Hacking in Development Mode</div> | |
| <% 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
| .development-mode { | |
| width: 100%; | |
| background: red; | |
| color: white; | |
| text-align: center; | |
| font: 14px Helvetica; | |
| padding: 8px 0; | |
| } |
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
| SomeApp::Application.config.session_store :cookie_store, key: 'SomeAppSession', domain: ".someapp.com" |
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 'date' | |
| require 'awesome_print' | |
| require File.expand_path(__FILE__ + "/../../../app/presenters/job_presenter") | |
| class Job | |
| attr_accessor :due_by | |
| def initialize(due_by) | |
| @due_by = due_by | |
| 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
| thumbnail: http://pds.exblog.jp/pds/1/201101/16/02/d0055302_13383029.jpg | |
| video: http://www.youtube.com/watch?v=UE27t_LJpx0 |
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
| :benchmark: false | |
| :verbose: true | |
| gem: --no-ri --no-rdoc |
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
| export RAILS_ENV=production | |
| export BUNDLE_WITHOUT="test:development" |
OlderNewer