- Have professors help with the publicity
- Keep workshop interactive
- More variety of drinks
- Spend more time on Koans
- Provide vegan options for lunch
- Introduce handy standarded lib functions
- Bring Neo banner along
- Make sure venue has pairing-friendly tables
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
# requests/edit_post_spec.rb | |
require 'spec_helper' | |
feature 'editing a post', js: true do | |
let(:post) { create :post } | |
let(:user) { post.creator } | |
before { sign_in user } |
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
RSpec.configure do |config| | |
config.use_transactional_fixtures = false | |
config.before(:suite) do | |
DatabaseCleaner.clean_with :truncation | |
end | |
config.before(:each) do | |
if example.metadata[:js] | |
DatabaseCleaner.strategy = :truncation |
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
import java.util.*; | |
class Programmer { | |
private String name; | |
private int age; | |
private List<String> languages; | |
public Programmer(String name) { | |
this.name = name; | |
this.languages = new ArrayList<String>(); |
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
site 'http://community.opscode.com/api/v1' | |
cookbook 'sprout-osx-base', | |
:git => 'git://github.com/pivotal-sprout/sprout.git', | |
:path => 'sprout-osx-base' | |
cookbook 'pivotal_workstation', | |
:git => 'git://github.com/pivotal-sprout/sprout.git', | |
:path => 'pivotal_workstation' | |
Standard practices say no non-root process gets to talk to the Internet on a port less than 1024. How, then, could I get Node talking on port 80 on EC2? (I wanted it to go as fast as possible and use the smallest possible share of my teeny tiny little micro-instance's resources, so proxying through nginx or Apache seemed suboptimal.)
Alter the port the script talks to from 8000 to 80:
}).listen(80);
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
# on | |
sudo networksetup -setsocksfirewallproxy "Wi-Fi" localhost 1080 | |
ssh -D 1080 -i ~/.ssh/proxy.pem [remote-user]@[remote-server] | |
# off | |
sudo networksetup -setsocksfirewallproxystate "Wi-Fi" off |
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
=# select (1!=1); | |
?column? | |
---------- | |
f | |
(1 row) | |
=# select (1=1); | |
?column? | |
---------- | |
t |
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 "active_record" | |
ActiveRecord::Base.establish_connection(adapter: "sqlite3", database: ":memory:") | |
ActiveRecord::Schema.define do | |
create_table :languages do |t| | |
t.string :type | |
end | |
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
# spec/support/rspec-rails/controller-example-group.rb | |
module RSpec::Rails | |
module ControllerExampleGroup | |
def process *args | |
@requested = true | |
super | |
end | |
def self.included(base) |
OlderNewer