Skip to content

Instantly share code, notes, and snippets.

View imajes's full-sized avatar

James Cox imajes

View GitHub Profile
[ 0] "/Users/james/.rvm/gems/ruby-2.1.2@quill/gems/byebug-3.4.0/lib/byebug/command.rb:41:in `eval'",
[ 1] "/Users/james/.rvm/gems/ruby-2.1.2@quill/gems/byebug-3.4.0/lib/byebug/command.rb:41:in `bb_warning_eval'",
[ 2] "/Users/james/.rvm/gems/ruby-2.1.2@quill/gems/byebug-3.4.0/lib/byebug/commands/eval.rb:36:in `block in execute'",
[ 3] "/Users/james/.rvm/gems/ruby-2.1.2@quill/gems/byebug-3.4.0/lib/byebug/commands/eval.rb:11:in `run_with_binding'",
[ 4] "/Users/james/.rvm/gems/ruby-2.1.2@quill/gems/byebug-3.4.0/lib/byebug/commands/eval.rb:32:in `execute'",
[ 5] "/Users/james/.rvm/gems/ruby-2.1.2@quill/gems/byebug-3.4.0/lib/byebug/processors/command_processor.rb:200:in `one_unknown_cmd'",
[ 6] "/Users/james/.rvm/gems/ruby-2.1.2@quill/gems/byebug-3.4.0/lib/byebug/processors/command_processor.rb:208:in `one_cmd'",
[ 7] "/Users/james/.rvm/gems/ruby-2.1.2@quill/gems/byebug-3.4.0/lib/byebug/processors/command_processor.rb:187:in `block in process_commands'",
[ 8] "/Users/james/.rvm
class StoriesController < ActivityController
def module
show_story
end
def homepage
load_record
show_story
end
// Code will instantiate putting everyone in segment L. Mobile check will put users into I; zip code check will put people into seg A if in Chicago,
// Iteration 2 - Windy City pilot with MSA tracking
// Seg A - Outside of Windy City
// Seg B - blank seg
// Seg C - Windy City test area (carrover of previous seg C)
// Seg D = mobile users
// Seg E = technical issues
class Quill::BaseModel
include ActiveModel::Model
attr_accessor :id, :access_token
def self.special_attrs *attrs
return @special_attrs unless attrs.any?
@special_attrs = attrs
end
def self.inherited subclass
module Quill
class Client
module Transport
class InvalidKeys < Exception ; end
attr_accessor :token, :client, :config
delegate :get, :post, :put, to: :token
include EndpointDefinitions
def initialize options = {}
class Quill::BaseModel
include ActiveModel::Model
attr_accessor :id, :access_token
def self.special_attrs *attrs
return @special_attrs unless attrs.any?
@special_attrs = attrs
end
def self.inherited subclass
{
"status": "success",
"message": "",
"errors": {},
"activity": {
"uid": "R4LLUDAwWtIrqSWZc1BnTw",
"name": "Passage Proofreading: A Little Stranger on the Road (Fiction)",
"description": "Proofread a passage with eleven incorrect determiners and articles.",
"flags": [
"production"
" Section: Vim, Balloon Eval
" ------------------------
" balloon eval in ruby is really annoying
if has("balloon_eval") && has("unix")
set noballooneval
"set ballooneval
endif
main » DESIRED_CLASS
/price|product-price/i
main » node.attributes.values.map(&:to_s).first =~ DESIRED_CLASS
0
main » node.attributes.values.map(&:to_s).first =~ /price/
0
main » node.attributes.values.map(&:to_s).first == /price/
false
main » node.attributes.values.map(&:to_s).first == "price"
true
main » u = UserExperiment.find_by_email('---')
D, [2014-07-14T19:12:44.447225 #58587] DEBUG -- : UserExperiment Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = '---' LIMIT 1
#<UserExperiment:0x000001021c8178> {
:id => 490,
:login => "imajes",
:email => "---",
:encrypted_password => "...",
:reset_password_token => "LdSS1bpDFTXyziEn7s_7",
:reset_password_sent_at => nil,
:remember_created_at => nil,