This repository has been archived by the owner on May 10, 2018. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
260 additions
and
10 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
rvm use ruby-1.8.7-p249 | ||
rvm gemset use presentation |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
rvm use ruby-1.9.2 | ||
rvm gemset use presentation |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/usr/bin/env ruby | ||
|
||
AddressBook::Application.run |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
require 'address_book/person' | ||
require 'address_book/address' |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
module AddressBook | ||
class Address | ||
attr_accessor :street | ||
attr_accessor :city | ||
attr_accessor :state | ||
attr_accessor :country | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
module AddressBook | ||
class Application | ||
def self.run | ||
# do stuff | ||
end | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
!SLIDE | ||
|
||
# Structuring Larger Programs # | ||
|
||
!SLIDE center | ||
|
||
![example](address_book.png) |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,10 @@ | |
|
||
# RubyGems # | ||
|
||
!SLIDE | ||
|
||
# More than 20k Published Gems # | ||
|
||
!SLIDE commandline | ||
|
||
gem install httparty | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 # |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 # |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
!SLIDE | ||
|
||
# Learing # | ||
|
||
!SLIDE | ||
|
||
# rubykoans.com # | ||
|
||
!SLIDE | ||
|
||
# railsforzombies.org # | ||
|
||
!SLIDE | ||
|
||
# Books # |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
!SLIDe | ||
|
||
# Contributing # | ||
|
||
!SLIDE | ||
|
||
# RubyForge # | ||
|
||
!SLIDE | ||
|
||
# Github # | ||
|
||
!SLIDE | ||
|
||
# Over 300k repositories # |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
!SLIDE | ||
|
||
# Fin # | ||
|
||
## Anthony Eden ## | ||
## Twitter: @aeden ## | ||
## Web: anthonyeden.com ## |