This file contains hidden or 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
$buttons-blue-button-middle-repeat: repeat-x; | |
@import "buttons/*.png"; | |
.button { | |
.left { | |
@include buttons-sprite(blue-button-left); | |
} | |
.middle { |
This file contains hidden or 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
valueDidChangeObserver: function(){ | |
console.log("Value did change: " + this.get('value')); | |
}.observes('value'), |
This file contains hidden or 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
lazy val core = RootProject(file("../core")) | |
lazy val flow = RootProject(file("../flow")) | |
lazy val root = Project( | |
"root", | |
file("."), | |
settings = buildSettings ++ Seq(resolvers := commonResolvers, | |
libraryDependencies := commonDeps) | |
) dependsOn(core) dependsOn(core % "test") dependsOn(flow) dependsOn(flow % "test") |
This file contains hidden or 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
lazy val core = RootProject(file("../core")) | |
lazy val flow = RootProject(file("../flow")) | |
lazy val root = Project( | |
"root", | |
file("."), | |
settings = buildSettings ++ Seq(resolvers := commonResolvers, | |
libraryDependencies := commonDeps) | |
) dependsOn(core % "compile;test->test") dependsOn(flow % "compile;test->test") |
This file contains hidden or 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
// sbt script | |
java -Xmx1536m -Xss1m -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=1024m -jar `dirname $0`/sbt-launch.jar "$@" | |
// stack trace | |
java.io.IOException: No such file or directory | |
at java.io.UnixFileSystem.createFileExclusively(Native Method) | |
at java.io.File.createNewFile(File.java:883) | |
at xsbt.boot.Locks$.apply0(Locks.scala:34) |
This file contains hidden or 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 'net/http' | |
class Record | |
include ActiveModel::Naming | |
include ActiveModel::Validations | |
include ActiveModel::Conversion | |
attr_accessor :guid | |
def id | |
@id |
This file contains hidden or 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 Course < Record | |
base_url "/courses" | |
key :title, :subtitle, :description, :price, :spots | |
end |
This file contains hidden or 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
lib/record.rb:22:in `to_param' | |
actionpack (3.1.0) lib/action_dispatch/routing/route_set.rb:358:in `block in <class:Generator>' | |
rack-mount (0.8.3) lib/rack/mount/generatable_regexp.rb:197:in `call' | |
rack-mount (0.8.3) lib/rack/mount/generatable_regexp.rb:197:in `parameterize' | |
rack-mount (0.8.3) lib/rack/mount/generatable_regexp.rb:170:in `block in generate_from_segments' | |
rack-mount (0.8.3) lib/rack/mount/generatable_regexp.rb:164:in `map' | |
rack-mount (0.8.3) lib/rack/mount/generatable_regexp.rb:164:in `generate_from_segments' | |
rack-mount (0.8.3) lib/rack/mount/generatable_regexp.rb:57:in `generate' | |
rack-mount (0.8.3) lib/rack/mount/route.rb:107:in `generate' | |
rack-mount (0.8.3) lib/rack/mount/route_set.rb:227:in `generate' |
This file contains hidden or 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 self.is_date(key) | |
define_method(key) do | |
Date.parse(instance_variable_get("@#{key}")) | |
end | |
define_method("#{m}=") do |val| | |
instance_variable_set("@#{m}",val.string.strftime('%a %d %b, %l:%m %P')) | |
end | |
end |
This file contains hidden or 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
resources :course_topics, :path => "course-topics" | |
yields | |
course_topics GET /course_topics(.:format) {:action=>"index", :controller=>"course_topics"} | |
POST /course_topics(.:format) {:action=>"create", :controller=>"course_topics"} | |
new_course_topic GET /course_topics/new(.:format) {:action=>"new", :controller=>"course_topics"} | |
edit_course_topic GET /course_topics/:id/edit(.:format) {:action=>"edit", :controller=>"course_topics"} | |
course_topic GET /course_topics/:id(.:format) {:action=>"show", :controller=>"course_topics"} |