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
{ | |
init: function(elevators, floors) { | |
var self = this; | |
var awaitingFloors = {} | |
floors.forEach(function(floor){ | |
floor.on("up_button_pressed", function() { | |
awaitingFloors[floor.floorNum()] = 1; | |
}) | |
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
{"address_components"=>[{"long_name"=>"San Francisco", "short_name"=>"SF", "types"=>["locality", "political"]}, {"long_name"=>"San Francisco County", "short_name"=>"San Francisco County", "types"=>["ad | |
ministrative_area_level_2", "political"]}, {"long_name"=>"California", "short_name"=>"CA", "types"=>["administrative_area_level_1", "political"]}, {"long_name"=>"United States", "short_name"=>"US", "types | |
"=>["country", "political"]}], "formatted_address"=>"San Francisco, CA, USA", "geometry"=>{"bounds"=>{"northeast"=>{"lat"=>37.9298239, "lng"=>-122.28178}, "southwest"=>{"lat"=>37.6398299, "lng"=>-123.1738 | |
25}}, "location"=>{"lat"=>37.7749295, "lng"=>-122.4194155}, "location_type"=>"APPROXIMATE", "viewport"=>{"northeast"=>{"lat"=>37.812, "lng"=>-122.3482}, "southwest"=>{"lat"=>37.70339999999999, "lng"=>-122 | |
.527}}}, "place_id"=>"ChIJIQBpAG2ahYAR_6128GcTUEo", "types"=>["locality", "political"]} |
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
{ | |
"No Industry" => { | |
{ "pa to" => {role: "operations", score: 1.0} | |
"Ea to" => {role: "operations" score: 1.0}, | |
"Account Executive" => {role: "Sales", score: 1.0}, | |
"Digital" => {role: "marketing", score: 0.6} | |
} | |
}, | |
"IT" => { | |
"Digital" => {role: "marketing", score: 0.8} |
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
[7] pry(#<Sinatra::Application>)> user.transactions | |
=> [#<Plaid::Transaction id="0AZ0De04KqsreDgVwM1RSRYjyd8yXxSDQ8Zxn", account_id="XARE85EJqKsjxLp6XR8ocg8VakrkXpTXmRdOo", date=2014-07-21, amount=200, name="ATM Withdrawal", pending=false>, | |
#<Plaid::Transaction id="3mg4qV4JZycjewvKEzrLTYMzdr1MmvcO4Z3zX", account_id="XARE85EJqKsjxLp6XR8ocg8VakrkXpTXmRdOo", date=2014-07-24, amount=240, name="Online Transfer from External Sav ...3092", pending=false>, | |
#<Plaid::Transaction id="KdDjmojBERUKx3JkDdO5IaRJdZeZKNuK4bnKJ1", account_id="pJPM4LMBNQFrOwp0jqEyTwyxJQrQbgU6kq37k", date=2014-06-23, amount=2307.15, name="Apple Store", pending=false>, | |
#<Plaid::Transaction id="DAE3Yo3wXgskjXV1JqBDIrDBVvjMLDCQ4rMQdR", account_id="nban4wnPKEtnmEpaKzbYFYQvA7D7pnCaeDBMy", date=2014-06-21, amount=3.19, name="Gregorys Coffee", pending=false>, | |
#<Plaid::Transaction id="1vAj1Eja5BIn4R7V6Mp1hBPQgkryZRHryZ0rDY", account_id="nban4wnPKEtnmEpaKzbYFYQvA7D7pnCaeDBMy", date=2014-06-08, amount=80, name="ATM Withdrawal", pending=false>, | |
#<Plai |
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 'rails_helper' | |
RSpec.feature "relink deleted student", type: :feature do | |
before do | |
10.times do |i| | |
create(:plan, student_count: i, stripe_id: i) | |
end | |
end | |
scenario "Mentor relinks a deleted student that they own", js: true do |
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 Plane | |
def initialize | |
@state = "stationary" | |
end | |
def flying? | |
@state == "flying" | |
end | |
def stationary? | |
@state == "stationary" | |
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
(pythonenv) ~/work/letswatchit(master)-> python manage.py runserver | |
Unhandled exception in thread started by <function wrapper at 0x103417cf8> | |
Traceback (most recent call last): | |
File "/Users/Huner/work/pythonenv/lib/python2.7/site-packages/django/utils/autoreload.py", line 226, in wrapper | |
fn(*args, **kwargs) | |
File "/Users/Huner/work/pythonenv/lib/python2.7/site-packages/django/core/management/commands/runserver.py", line 109, in inner_run | |
autoreload.raise_last_exception() | |
File "/Users/Huner/work/pythonenv/lib/python2.7/site-packages/django/utils/autoreload.py", line 249, in raise_last_exception | |
six.reraise(*_exception) | |
File "/Users/Huner/work/pythonenv/lib/python2.7/site-packages/django/utils/autoreload.py", line 226, in wrapper |
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
PG::UndefinedColumn: ERROR: column "printhouse_sla" of relation "spree_stock_locations" does not exist | |
LINE 1: UPDATE "spree_stock_locations" SET "printhouse_sla" = 2 WHER... | |
^ | |
: UPDATE "spree_stock_locations" SET "printhouse_sla" = 2 WHERE "spree_stock_locations"."id" = $1/Users/Huner/.rvm/gems/ruby-2.1.6/gems/activerecord-4.2.4/lib/active_record/connection_adapters/postgresql_adapter.rb:641:in `prepare' | |
/Users/Huner/.rvm/gems/ruby-2.1.6/gems/activerecord-4.2.4/lib/active_record/connection_adapters/postgresql_adapter.rb:641:in `prepare_statement' | |
/Users/Huner/.rvm/gems/ruby-2.1.6/gems/activerecord-4.2.4/lib/active_record/connection_adapters/postgresql_adapter.rb:600:in `exec_cache' | |
/Users/Huner/.rvm/gems/ruby-2.1.6/gems/activerecord-4.2.4/lib/active_record/connection_adapters/postgresql_adapter.rb:589:in `execute_and_clear' | |
/Users/Huner/.rvm/gems/ruby-2.1.6/gems/activerecord-4.2.4/lib/active_record/connection_adapters/postgresql/database_statements.rb:173:in `exec_ |
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
<!-- Begin TVSquared Tracking Code --> | |
<script type="text/javascript"> | |
var _tvq = window._tvq = window._tvq || []; | |
(function () { | |
var session = {'user': '<USERREF>'}; | |
var actionname = '<ACTIONNAME>'; | |
var action = {'rev': '<REVENUE>', 'prod': '<PRODUCT>', 'id': '<ACTIONID>', 'promo': '<PROMOCODE>'}; | |
var u = (("https:" == document.location.protocol) ? "https://collector-588.tvsquared.com/piwik/" : "http://collector-588.tvsquared.com/piwik/"); | |
_tvq.push(['setSiteId', "TV-451818-1"]); |
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 'dotenv' | |
Dotenv.load | |
require 'twitter' | |
require 'bitly' | |
class TwitterJob | |
def perform | |
stream = Twitter::Streaming::Client.new do |config| | |
config.consumer_key = ENV['CONSUMER_KEY'] |
NewerOlder