Permalink
Browse files

more stuff

  • Loading branch information...
1 parent 9cb9198 commit 8c1e796770cf7199de42cb37cffcd6977b0dc2bb @aeden committed Mar 12, 2011
View
2 .rvmrc
@@ -0,0 +1,2 @@
+rvm use ruby-1.8.7-p249
+rvm gemset use presentation
View
@@ -0,0 +1,2 @@
+rvm use ruby-1.9.2
+rvm gemset use presentation
@@ -0,0 +1,3 @@
+#!/usr/bin/env ruby
+
+AddressBook::Application.run
@@ -0,0 +1,2 @@
+require 'address_book/person'
+require 'address_book/address'
@@ -0,0 +1,8 @@
+module AddressBook
+ class Address
+ attr_accessor :street
+ attr_accessor :city
+ attr_accessor :state
+ attr_accessor :country
+ end
+end
@@ -0,0 +1,7 @@
+module AddressBook
+ class Application
+ def self.run
+ # do stuff
+ end
+ end
+end
@@ -0,0 +1,11 @@
+module AddressBook
+ class Person
+ @people = {}
+ def initialize(name)
+ @name = name
+ end
+ def self.find_or_create(name)
+ @people[name] ||= Person.new(name)
+ end
+ end
+end
@@ -1,9 +0,0 @@
-class Person
- @people = {}
- def initialize(name)
- @name = name
- end
- def self.find_or_create(name)
- @people[name] ||= Person.new(name)
- end
-end
@@ -0,0 +1,7 @@
+!SLIDE
+
+# Structuring Larger Programs #
+
+!SLIDE center
+
+![example](address_book.png)
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
@@ -6,6 +6,10 @@
# RubyGems #
+!SLIDE
+
+# More than 20k Published Gems #
+
!SLIDE commandline
gem install httparty
View
@@ -62,3 +62,20 @@
!SLIDE
# Cucumber
+
+!SLIDE
+
+ @@@
+ Feature: create a person
+ As a user
+ In order to add someone to my address book
+ I can create a person
+
+ Scenario:
+ Given I am an authenticated user
+ And I enter "Anthony Eden" for the name
+ And I enter "anthony@dnsimple.com" for the email
+ And I add the user
+ Then I should see "Anthony Eden"
+ And I should see "anthony@dnsimple.com"
+
@@ -0,0 +1,32 @@
+!SLIDE
+
+# Web Frameworks #
+
+!SLIDE
+
+# Rails #
+
+!SLIDE
+
+ $ rails new app_name
+
+!SLIDE
+
+ $ rails s
+
+!SLIDE
+
+# Sinatra #
+
+!SLIDE
+
+ @@@ruby
+ require 'sinatra'
+ get '/hi' do
+ "Hello World!"
+ end
+
+!SLIDE
+
+ $ ruby -rubygems hi.rb
+
@@ -0,0 +1,49 @@
+!SLIDE
+
+# Deployment & Operations #
+
+!SLIDE
+
+# Capistrano #
+
+!SLIDE smaller
+
+ @@@ruby
+ set :domain, "example.com"
+ set :application, "www.example.com"
+ set :deploy_to, "/var/www/#{domain}/#{application}/public"
+ set :repository, "git@github.com:username/example.git"
+ set :scm, :git
+ set :user, "username"
+
+ server "example.com", :app, :web, :db, :primary => true
+
+ after "deploy:symlink", "deploy:copy_config"
+
+!SLIDE
+
+# Chef #
+
+!SLIDE smaller
+
+ @@@ruby
+ package "nginx"
+
+ directory node[:nginx][:log_dir] do
+ mode 0755
+ owner node[:nginx][:user]
+ action :create
+ end
+
+ %w{nxensite nxdissite}.each do |nxscript|
+ template "/usr/sbin/#{nxscript}" do
+ source "#{nxscript}.erb"
+ mode 0755
+ owner "root"
+ group "root"
+ end
+ end
+
+!SLIDE
+
+# Fog #
View
@@ -4,6 +4,7 @@
"sections":[
{"section":"introduction"},
{"section":"language"},
- {"section":"libraries"}
+ {"section":"libraries"},
+ {"section":"starting"}
]
}
View
@@ -0,0 +1,42 @@
+!SLIDE
+
+# Getting Started #
+
+!SLIDE
+
+# Installation #
+
+!SLIDE bullets incremental
+
+# OS X or Linux #
+
+* sudo gem update --system
+* sudo gem install rvm
+* rvm install 1.9.2
+* rvm --default 1.9.2
+
+!SLIDE bullets incremental
+
+# Windows #
+
+* http://railsinstaller.org/
+
+!SLIDE
+
+# Ruby Runtimes #
+
+!SLIDE
+
+# MRI #
+
+!SLIDE
+
+# YARV #
+
+!SLIDE
+
+# JRuby #
+
+!SLIDE
+
+# Rubinius #
View
@@ -0,0 +1,15 @@
+!SLIDE
+
+# Learing #
+
+!SLIDE
+
+# rubykoans.com #
+
+!SLIDE
+
+# railsforzombies.org #
+
+!SLIDE
+
+# Books #
View
@@ -0,0 +1,35 @@
+!SLIDE
+
+# Growing
+
+!SLIDE
+
+# Conferences
+
+!SLIDE
+
+# 10th Year of RubyConf #
+
+!SLIDE
+
+# 500+ Attendees Each Year #
+
+!SLIDE
+
+# 6th RailsConf this Year #
+
+!SLIDE
+
+# 1500+ Attendees #
+
+!SLIDE
+
+# Ruby User Groups
+
+!SLIDE
+
+# www.ruby-doc.org/core #
+
+!SLIDE
+
+# Code Retreats
View
@@ -0,0 +1,15 @@
+!SLIDe
+
+# Contributing #
+
+!SLIDE
+
+# RubyForge #
+
+!SLIDE
+
+# Github #
+
+!SLIDE
+
+# Over 300k repositories #
View
@@ -0,0 +1,7 @@
+!SLIDE
+
+# Fin #
+
+## Anthony Eden ##
+## Twitter: @aeden ##
+## Web: anthonyeden.com ##

0 comments on commit 8c1e796

Please sign in to comment.