-
Install OS X
-
Install XCode
-
Install Homebrew
ruby -e "$(curl -fsSL https://gist.github.com/raw/323731/install_homebrew.rb)"
-
Install mysql & git & anything else you need
brew install git >
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
What did you do to get good at Rails? | |
Initially started with the Agile Web Dev with Rails book, used that to build an all-AJAX Twitter app back when Twitter was shiney and new. Demo'd that to work and that rolled into a pilot project using Ruby/Rails to tie a couple of backend APIs together into a reporting app. I decided I loved it all so much that I began some client projects on the side. | |
Who taught you what you know? | |
Mostly self-taught ... worked with other techs for many years, so most of the learning was in details of Ruby and the platform rather than "oh this is a model" level. | |
Do you have any fond (or not so fond) memories of your learning experiences? | |
The first time I built AJAX using about 3 lines of code. Coming from PHP and Java this was all previously manual. These days everyone has been inspired by Rails, but it's very easy to forget that at the time it was so far aheadf of the curve it was like magic. | |
What was your first production app and what did you learn from it? |
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 MyClass | |
def my_method | |
puts "Hello World" | |
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
class MyClass < MyOtherClass | |
include MyModule | |
def my_method | |
puts "Hello World" | |
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
Redis | |
================ | |
brew install redis | |
To start redis manually: | |
redis-server /usr/local/etc/redis.conf | |
To access the server: | |
redis-cli |
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
http = require('http') | |
http.createServer( (req, res) -> | |
[ out, statusCode ] = req.url.split("/")[1..2] | |
res.writeHead(statusCode or 200, 'Content-Type': 'text/plain') | |
res.end(out or req.url) | |
).listen(3000, "127.0.0.1") | |
console.log("Mimesis Started (http://127.0.0.1:3000/)") |
git remote add -f {name} {path}
git merge -s ours --no-commit {name}/master
git read-tree --prefix={local-path}/ -u {name}/master
git commit -m "merge {name}"
git remote add -f coursesearch-404 [email protected]:marcom-unimelb/coursesearch-404.git
git merge -s ours --no-commit coursesearch-404/master
git read-tree --prefix=coursesearch-404/ -u coursesearch-404/master
git commit -m "merge coursesearch-404"
This Gist shows how to set up a Rails project to practice BDD with CoffeeScript, Guard and Jasmine. You can see this setup in action on Vimeo
- Install Gems with Bundler with
bundle install
- Define your guards with
mate Guardfile
- Initialize Jasmine with
bundle exec jasmine init
- Configure Jasmine with
mate spec/support/yasmine.ym
- Start Guard with
bundle exec guard
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
# Asynchronous DSL for CoffeeScript | |
serial = (f) -> | |
next = -> arr.shift().apply(null, arguments) if arr.length | |
arr = (v for k, v of f(next)) | |
next() | |
null | |
parallel = (f, after = ->) -> | |
res = {}; arrc = 0 |
OlderNewer