defmodule Route do
import Weber.Route
require Weber.Route
route on("GET", "/new", :WeberTest.Main, :blah)
|> on("GET", "/", :WeberTest.Main, :index)
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
<script type="text/jsx"> | |
/** @jsx React.DOM */ | |
var AppList = React.createClass({ | |
render: function() { | |
var elements = this.state.apps.map(function(app) { | |
return <AppElement app={app} /> | |
}) | |
return <ul>{elements}</ul>; |
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
package main | |
import ( | |
// "fmt" | |
"log" | |
"net/http" | |
"runtime" | |
"github.com/go-martini/martini" | |
"github.com/jmoiron/sqlx" | |
"github.com/martini-contrib/render" |
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
#!/usr/bin/env bash | |
uninstall() { | |
list=`gem list --no-versions` | |
for gem in $list; do | |
gem uninstall $gem -aIx | |
done | |
gem list | |
gem install bundler | |
} |
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
// VSJONP ― Very Simple JSONP | |
// ========================== | |
// | |
// Usage: | |
// fetchJsonP({ | |
// url: 'http://shit-no-cors.json', | |
// complete: function(response) { | |
// console.log(response); | |
// } | |
// }); |
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 | |
--------------------------------------- |
-
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 >
OlderNewer