- Opening a 'command-line' interpreter
- RVM (osx only), Ruby & Ruby-gems installed
- A Text Editor (Sublime Text strong recommended)
- Have the command line cheatsheet handy
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
def test | |
"blah" | |
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
m = MailSender.template_email(Contact.first, :email => Email.last) | |
#<Mail::Message:70134218883740, Multipart: false, Headers: <From: admin@influitive.com>, <To: ryan+432i840329@ryanbrunner.com>, <Subject: Invitation to join Influitive's Community>, <Mime-Version: 1.0>, <Content-Type: text/html>> | |
# Trying to set the headers property... | |
m.headers # {} | |
# This doesn't seem to have any effect on the headers | |
m.headers["Blah"] = "Blah" |
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
class Foo | |
def bar | |
puts "bar!" | |
end | |
end | |
describe Foo do | |
# This test will pass with rspec 2.9.0. An instance of Foo is receiving bar, | |
# so shouldn't it fail? |
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
5 min: | |
~Objective-C + Rails: | |
Communicating w/rails from iOS/mac OS | |
Dan Hassin | |
1 min: | |
~Painless Javascript | |
koting hatduklgg | |
with wind tunnel |
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 'csv' | |
output = CSV.generate do |csv| | |
Database.all_tenants do |db| | |
Challenge.includes({:visibility => :groups}, :activities).list.each{|c| | |
csv << [ | |
db, | |
c.id, | |
c.visibility.membership, |
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
body { | |
background-color: black !important; | |
font-size: 24px !important; | |
font-family: "Comic Sans" !important; | |
} |
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
body { | |
background-color: black !important; | |
} |
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 'lotus-model' | |
require 'lotus/model/adapters/memory_adapter' | |
module Admin | |
module Models | |
class Feature | |
include Lotus::Entity | |
self.attributes = :name | |
end |
- Make sure you have Git installed on your computer. If you don't, here's a guide to getting it setup - http://git-scm.com/downloads.
- If you haven't already, create an account on GitHub.
- Install the Heroku toolbelt, and set up an account on Heroku.
OlderNewer