hello | world |
goodbye | world |
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 'rubygems' | |
require 'state_machine' | |
# ruby -v - ruby 2.1.1p76 (2014-02-24 revision 45161) [x86_64-darwin13.0] | |
# gem -v - 2.2.2 | |
# gem list state_machine - state_machine (1.2.0) | |
class SodaTransaction | |
attr_accessor :selection |
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
App.DebateController = Ember.ObjectController.extend({ | |
pointText: '', | |
actions: { | |
createPoint: function() { | |
var newPoint = this.store.createRecord('point', { | |
detail: this.get('pointText'), | |
}); | |
var controller = this; | |
newPoint.save().then(function(point) { | |
controller.set('pointText', ''); |
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
connect: | |
options: | |
port: 9000 | |
livereload: | |
options: | |
middleware: (connect) -> [ | |
lrSnippet, | |
mountFolder(connect, '.tmp'), | |
(req, res, next) -> | |
res.setHeader('Access-Control-Allow-Origin', '*') |
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
[ | |
{ "keys": ["alt+s"], "command": "toggle_side_bar" }, | |
{ "keys": ["super+up"], "command": "select_lines", "args": {"forward": false} }, | |
{ "keys": ["super+down"], "command": "select_lines", "args": {"forward": true} }, | |
{ "keys": ["ctrl+shift+d"], "command": "run_macro_file", "args": {"file": "Packages/Default/Delete Line.sublime-macro"} }, | |
{ "keys": ["alt+super+up"], "command": "swap_line_up" }, | |
{ "keys": ["alt+super+down"], "command": "swap_line_down" }, | |
{ | |
"keys": ["super+alt+]"], | |
"command": "reindent", |
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
Vagrant::Config.run do |config| | |
# All Vagrant configuration is done here. The most common configuration | |
# options are documented and commented below. For a complete reference, | |
# please see the online documentation at vagrantup.com. | |
# Every Vagrant virtual environment requires a box to build off of. | |
config.vm.box = "precise32" | |
# The url from where the 'config.vm.box' box will be fetched if it | |
# doesn't already exist on the user's system. |
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
<%-# app/views/spree/admin/payments/source_views/_worldpay.html.erb %> | |
<fieldset> | |
<legend>WorldPay</legend> | |
<table class="index"> | |
<tr> | |
<th colspan="6">Payment Details - WorldPay </th> | |
</tr> | |
<tr> | |
<td><label>Amount:</label></td> |
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
class Phrase | |
def initialize(phrase) | |
@phrase = phrase | |
end | |
def word_count | |
WordCounter.new.count(@phrase) | |
end | |
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
# ... | |
describe "some path" do | |
include Rack::Test::Methods | |
describe "dashboard" do | |
before { get '/' } | |
it "will update the page with a given value" do | |
last_response.should be_ok | |
last_response.body.should have_element_with_value('span#current_jobs_ready', '1') |
NewerOlder