Skip to content

Instantly share code, notes, and snippets.

View vanpelt's full-sized avatar
pro

Chris Van Pelt vanpelt

pro
View GitHub Profile
[javascript:(function()%7Bdocument.getElementsByClassName('table-striped')%5B2%5D.parentElement.style%5B%22overflow%22%5D%20%3D%20%22scroll%22%7D)()](Fix Forgive Buttons)
Redis::TimeoutError: Connection timed out
1 File "/var/deploy/builder/shared/bundle/ruby/2.1.0/gems/redis-3.1.0/lib/redis/connection/hiredis.rb" line 55 in rescue in read
2 File "/var/deploy/builder/shared/bundle/ruby/2.1.0/gems/redis-3.1.0/lib/redis/connection/hiredis.rb" line 51 in read
3 File "/var/deploy/builder/shared/bundle/ruby/2.1.0/gems/redis-3.1.0/lib/redis/client.rb" line 238 in block in read
4 File "/var/deploy/builder/shared/bundle/ruby/2.1.0/gems/redis-3.1.0/lib/redis/client.rb" line 226 in io
5 File "/var/deploy/builder/shared/bundle/ruby/2.1.0/gems/redis-3.1.0/lib/redis/client.rb" line 237 in read
6 File "/var/deploy/builder/shared/bundle/ruby/2.1.0/gems/redis-3.1.0/lib/redis/client.rb" line 168 in block in call_pipelined
7 File "/var/deploy/builder/shared/bundle/ruby/2.1.0/gems/redis-3.1.0/lib/redis/client.rb" line 207 in block (2 levels) in process
8 File "/var/deploy/builder/shared/bundle/ruby/2.1.0/gems/redis-3.1.0/lib/redis/client.rb" line 329 in ensure_connected
9 File "/var/deploy/build
@vanpelt
vanpelt / vpOeng.md
Last active December 17, 2015 22:29

#About Us:

CrowdFlower is changing the way work gets done. We build a quality control system that distributes work to millions of people around the world, and analyzes the results to guarantee the highest possible accuracy. We're 55 people based in the Mission District of San Francisco, have a ton of plants in the office, and a real business model.

#The Job:

As VP of Engineering you will be managing a team of talented engineers using modern tools to create the most innovative and powerful CrowdSourcing platform on the market. The team currently consists of 17 engineers with the majority working from our office in the Mission District of San Francisco. You will be responsible for growing the team, enforcing best practices, managing team members, and ensuring a high level of code quality. You will also be working closely with the companies CTO and Director of Product to drive innovation in the core platform.

##Must-have:

@vanpelt
vanpelt / designoper.md
Created April 19, 2013 16:38
Lead Designoper

#About Us:

CrowdFlower is changing the way work gets done. We build a quality control system that distributes work to millions of people around the world, and analyzes the results to guarantee the highest possible accuracy. We're 50 people based in the Mission District of San Francisco, have a ton of plants in the office, and a real business model.

#The Job:

We're looking for a designer that loves the web and has designed and marked-up high profile production applications. At CrowdFlower, we're building our next generation platform and that means lot's of new interfaces. As a Lead Designoper, you'll be interfacing closely with our 15 person engineering team and 3 person product team to define and implement data driven interfaces.

Our applications are used by thousands of people every hour around the world. Everything our engineers do has real and tangible impacts. You won't be just another cog in the machine.

@vanpelt
vanpelt / ruby_engineer.md
Created April 9, 2013 01:32
Ruby Web Engineer

#About Us:

CrowdFlower is changing the way work gets done. We build a quality control system that distributes work to millions of people around the world, and analyzes the results to guarantee the highest possible accuracy. We're 50 people based in the Mission District of San Francisco, have a ton of plants in the office, and a real business model.

#The Job:

We're looking for an engineer that loves the web and has built applications they're proud of using Ruby. At CrowdFlower we're building a number of services backed by Ruby / Rails and Clojure. As a Ruby Web Engineer, you'll be interfacing closely with the rest of our 15 person engineering team to expose new API endpoints for our Ember frontends and developer API.

Our applications are used by thousands of people every hour around the world. Everything our engineers do has real and tangible impacts. You won't be just another cog in the machine.

@vanpelt
vanpelt / the_count.md
Last active December 11, 2015 04:18
Overview of TheCount

http://github.com/dolores/TheCount currently provides a restful service for job and unit counts as well as job and worker conversions. Below are the counts currently defined endpoints and sample payloads.

/job_counts?ids=

{"forgiven"=>18,
  "golden_nuggets"=>336,
  "judged_nuggets"=>1574,
  "frontloaded_tainted_nuggets"=>-400,
 "id"=>152965,
@vanpelt
vanpelt / proud.rb
Created November 8, 2012 02:33
Don't trust querying mongo directly...
require 'rubygems'
require 'sequel'
require 'bson'
require 'set'
class Time
def beginning_of_month
Time.utc(self.year, self.month, 1)
end
end
@vanpelt
vanpelt / instructions.rb
Created September 5, 2012 22:45
Coding Excercise
#Implement map2 on array such that [1,2,3].map2 {|a| a + 1 } -> [2,3,4]
@vanpelt
vanpelt / channels.php
Created August 21, 2012 22:06
PHP sample code
//Initiation code (should be in 1 file)
$json = $_POST['payload']
$secret = "your_secret_key_in_the_settings_page"
$obj = json_decode($json)
if(sha1($json+$secret) == $_POST['signature']) {
if(some_function_that_checks_if_a_uid_is_valid_by_checking_your_database($obj['uid'])) {
$conversion_id = some_function_that_generates_and_stores_a_conversion_id_with_the_amount($obj['amount'])
echo $conversion_id
} else {
{"job_id":88655,"agreement":0.991071428571429,"state":"finalized","judgments_count":28,"updated_at":"2012-06-14T11:55:09+00:00","results":{"local":{"confidence":1.0,"agg":"local","confidence_map":{"local":1.0},"confidence_summary":"\"local\": 1.0\n"},"details_unavailable":{"confidence":1.0,"agg":"false","confidence_map":{"false":1.0},"confidence_summary":"\"false\": 1.0\n"},"location":{"confidence":1.0,"agg":"location_important","confidence_map":{"location_important":1.0},"confidence_summary":"\"location_important\": 1.0\n"},"judgments":[{"worker_id":6345897,"city":"Barcelona","external_type":"clixsense","job_id":88655,"tainted":false,"unit_state":"finalized","unit_data":{"title":"$7 for $14 Worth of Mexican Fare at Casa Mañana Restaurant in San Rafael","url":"http://groupon.com/deals/casa-maana-restaurant"},"golden":false,"judgment":1,"data":{"local":"local","location":"location_important","details_unavailable":"false","local_category":["Dining & Nightlife > Restaurants"]},"worker_trust":0.945757493280713,"w