[ Launch: circle ] 4991786 by jc-2
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
# TODO - | |
# Geocode addresses | |
# Parse start/end date | |
# | |
import scraperwiki | |
import urllib2 | |
import re | |
from bs4 import BeautifulSoup |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
function add(x, y) { | |
if (typeof y === 'undefined') { | |
// create closure around function below | |
return function(y) { | |
x + y; | |
} | |
} | |
return x + y; | |
} |
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 'spec_helper' | |
describe User do | |
describe "#initialize" | |
context 'with all parameters' do | |
it "works" do | |
user = User.new :first_name => "slkdfjlaskdf" | |
user.first_name.should == "" | |
user.last_name.should == "" | |
end |
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
class SampleClass | |
def initialize | |
@str = "The Quick Brown Fox" | |
end | |
def get_binding | |
binding | |
end | |
end |
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
# General things | |
sudo apt-get update | |
sudo apt-get install build-essential zlib1g-dev curl wget git-core postgresql mongodb | |
# install rbenv and Ruby 1.9.3 | |
git clone git://github.com/sstephenson/rbenv.git ~/.rbenv | |
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.profile | |
echo 'eval "$(rbenv init -)"' >> ~/.profile | |
source .profile |
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 'java' | |
Dir["vendor/sigar/*.jar"].each { |jar| require jar } |
So you think you wanna be a web developer... Fork this, update your copy with answers. They don't need to be precise - pseudo-code is fine in most cases. Some questions don't have correct answers.
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
# Make sure ant is installed and available on the machine | |
require 'ant' | |
ant :name => 'hello', :default => 'hello' do | |
target :name => 'hello' do | |
echo :message => 'Hello world!' | |
end | |
end | |
# $ jruby build.rb | |
# > hello: |