Skip to content

Instantly share code, notes, and snippets.

@phlipper
phlipper / warmup.rb
Last active August 29, 2015 14:17
TECH601-00 Day 4 Warmup
# Alice:
# id: ALI
# name: Alice
# birth date: April 4, 1977
# age: 37
# job title: Data Analyst
# interests: Communications, Keeping Secrets
# trustworthy?: yes
# 1. convert the specification for `Alice` into code, like we did last class
@phlipper
phlipper / warmup.rb
Created March 12, 2015 23:06
TECH601-00 Day 4 Warmup
# Alice:
# id: ALI
# name: Alice
# birth date: April 4, 1977
# age: 37
# job title: Data Analyst
# interests: Communications, Keeping Secrets
# trustworthy?: yes
# 1. convert the specification for `Alice` into code, like we did last class
@phlipper
phlipper / country.rb
Created March 12, 2015 21:24
TECH601-00 Day 3 Exercise - Country Data
# Angola:
# id: AGO
# name: Angola
# population: 21,471,618
# capital: Luanda
# latitude: -8.81155
# longitude: 13.242
# income level: Upper Middle
# high income?: false
@phlipper
phlipper / warmup.rb
Created March 12, 2015 21:23
TECH601-00 Day 3 Warmup
# 1. assign the number 2015 to a variable named `this_year`
this_year = 2015
# 2. assign the number 2020 to a variable named `event_year`
event_year = 2020
# 3. calculate the difference in years and assign the value to `years_remaining`
years_remaining = event_year - this_year
# 4. use concatenation to create a message which reads:
# 1. assign the number 2015 to a variable named `this_year`
this_year = 2015
# 2. assign the number 2020 to a variable named `event_year`
event_year = 2020
# 3. calculate the difference in years and assign the value to `years_remaining`
years_remaining = event_year - this_year
# 4. use concatenation to create a message which reads:
# 1. assign the number 2015 to a variable named `this_year`
this_year = 2015
# 2. assign the number 2020 to a variable named `event_year`
event_year = 2020
# 3. calculate the difference in years and assign the value to `years_remaining`
years_remaining = event_year - this_year
# 4. use concatenation to create a message which reads:
@phlipper
phlipper / day3_warmup.rb
Created March 10, 2015 22:36
TECH601-00 - Day 3 Warmup
# 1. assign the number 2015 to a variable named `this_year`
# 2. assign the number 2020 to a variable named `event_year`
# 3. calculate the difference in years and assign the value to `years_remaining`
# 4. use concatenation to create a message which reads:
# There are _ years until the big event.
# 5. output the previous message, without a newline at the end
@phlipper
phlipper / array.rb
Last active August 29, 2015 14:16
TECH601-00 - Day 2 Example Code with output
a = []
# look at "a" default value
puts a
# look at "a" converted to string
puts a.to_s
puts "#{a}"
# new list with things in it

Welcome to Nitrous.IO

Nitrous.IO enables you to develop web applications completely in the cloud. This development "box" helps you write software, collaborate real-time with friends, show off apps to teammates or clients, and deploy apps to production hosting sites like Heroku or Google App Engine.

Getting Started

@phlipper
phlipper / README.md
Created March 5, 2015 23:42
Example README from Nitrous

Welcome to Nitrous.IO

Nitrous.IO enables you to develop web applications completely in the cloud. This development "box" helps you write software, collaborate real-time with friends, show off apps to teammates or clients, and deploy apps to production hosting sites like Heroku or Google App Engine.

Getting Started