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
Feature: Checkout Login | |
A user needs to be able to login while on the | |
checkout page. | |
Background: | |
Given the following market property exists: | |
| name | uuid | from_extranet | | |
| Hotel My | d324743-bc2d-5b36-be9a-bdab9063f371 | true | | |
And the following unit exists: | |
| title | property | uuid | |
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
Fastlift::FuturePromotion ........FF..FFFF | |
1) Fastlift::FuturePromotion.find next promotion's id for the first unit when the promo's booking hasn't started today should == 1 | |
Failure/Error: it { should == promotions.first.id } | |
expected: 1 | |
got: nil (using ==) | |
# ./spec/models/fastlift/future_promotion_spec.rb:77:in `block (5 levels) in <module:Fastlift>' | |
2) Fastlift::FuturePromotion.find next promotion's id for the first unit when the promo's booking has ended for today should == 1 | |
Failure/Error: it { should == promotions.first.id } | |
expected: 1 | |
got: nil (using ==) |
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
# Path to your oh-my-zsh configuration. | |
ZSH=$HOME/.oh-my-zsh | |
# Editor | |
export EDITOR=/usr/local/bin/vim | |
# Set name of the theme to load. | |
# Look in ~/.oh-my-zsh/themes/ | |
# Optionally, if you set this to "random", it'll load a random theme each | |
# time that oh-my-zsh is loaded. |
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
User = Struct.new("User", :number, :position) | |
def matching_number?(last, current) | |
last.number == current.number | |
end | |
def create_users(count) | |
array = [] | |
count.times do | |
u = User.new |
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 "socket" | |
require "json" | |
require "colorize" | |
require 'securerandom' | |
# require "./lib/models/weather" | |
# this is where it was connecting and not disconnecting | |
## ===> Sequel.connect(database_urls.last) |
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 set_boot | |
`sudo bless -mount /Volumes/Narnia -setboot` | |
end | |
def restart_machine | |
`sudo shutdown -r now` | |
end | |
set_boot | |
restart_machine |
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
[#<CornYieldSample id: 21, row_width: 30, row_length: 17.417, harvest_ears: 28, kernels: [400, 450, 432, 500, 550], bushel_size: 90000, yield: 144.0, report_id: 482, created_at: "2015-03-12 16:47:32", updated_at: "2015-05-04 19:02:06", archive: true>, | |
#<CornYieldSample id: 30, row_width: nil, row_length: 0.0, harvest_ears: 28, kernels: [624, 688, 774], bushel_size: 90000, yield: 216.0, report_id: 687, created_at: "2015-04-13 19:19:22", updated_at: "2015-04-13 19:19:22", archive: false>, | |
#<CornYieldSample id: 29, row_width: nil, row_length: 0.0, harvest_ears: 30, kernels: [640, 756, 720, 608], bushel_size: 90000, yield: 227.0, report_id: 687, created_at: "2015-04-13 19:19:22", updated_at: "2015-04-13 19:19:22", archive: false>, | |
#<CornYieldSample id: 116, row_width: nil, row_length: 0.0, harvest_ears: 30, kernels: [666, 640, 608], bushel_size: 90000, yield: 212.0, report_id: 2542, created_at: "2015-08-03 19:18:34", updated_at: "2015-08-03 19:18:34", archive: false>, | |
#<CornYieldSample id: 115, row_width: nil |
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
# aws-sdk | |
# aws-sdk-resources | |
# rmagick | |
class ResizeImages | |
attr_reader :all_image_names, :s3 | |
attr_accessor :width, :height, :image_file_name | |
def initialize args |
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
{ | |
"data"=>{ | |
"others"=>{ | |
"2"=>[ | |
{ | |
"id"=>222, | |
"report_id"=>123, | |
"lat"=>37.33233261108398, | |
"comment"=>"test with STDOUT and new_relic", | |
"long"=>-122.0312194824219 |
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
{ | |
:success=>true, | |
:message=>"Sync successful", | |
:data=>{:growers=>{4=>[]}, | |
:farms=>{4=>[]}, | |
:fields=>{4=>[]}, | |
:reports=>{4=>[{:id=>123, :new_id=>123}]}, | |
:corn_stand=>{4=>[]}, | |
:corn_yield=>{4=>[]}, | |
:diseases=>{4=>[]}, |