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
| Started GET "/" for 127.0.0.1 at 2011-12-07 16:47:24 -0500 | |
| Processing by WelcomeController#index as HTML | |
| Completed 500 Internal Server Error in 9593ms | |
| EOFError (end of file reached): | |
| /usr/local/lib/ruby/1.9.1/net/protocol.rb:135:in `read_nonblock' | |
| /usr/local/lib/ruby/1.9.1/net/protocol.rb:135:in `rbuf_fill' | |
| /usr/local/lib/ruby/1.9.1/net/protocol.rb:116:in `readuntil' | |
| /usr/local/lib/ruby/1.9.1/net/protocol.rb:126:in `readline' |
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
| package com.matygo.flow | |
| import java.io.File | |
| import java.io.PrintWriter | |
| import java.io.StringWriter | |
| import scala.collection.mutable.Map | |
| import scala.util.DynamicVariable | |
| import org.scalatra.ScalatraKernel.Action | |
| import org.scalatra.RouteMatcher | |
| import org.scalatra.ScalatraKernel |
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
| object Dependencies { | |
| val jettyVersion = "7.4.3.v20110701" | |
| def jettyComponent(name: String) = "org.eclipse.jetty" % name % "7.4.3.v20110701" % "container" | |
| val jetty = jettyComponent("jetty-webapp") | |
| val jettyServlets = jettyComponent("jetty-servlets") | |
| val jettyPlus = "org.eclipse.jetty" % "jetty-plus" % jettyVersion % "container" | |
| val jettytester = jettyComponent("test-jetty-servlet") | |
| val jettyContinuations = jettyComponent("jetty-continuation") |
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 :users, :path => "profile" do | |
| get 'follow', :on => :member | |
| get 'unfollow', :on => :member | |
| get 'followers', :on => :member | |
| get 'following_courses', :on => :member, :as => :courses_followed_by, :path => "following/courses" | |
| get 'following_users', :on => :member, :as => :users_followed_by, :path => "following/users" | |
| # teacher interest | |
| post 'teach', :on => :collection | |
| get 'teach', :on => :collection |
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
| var B = { | |
| foo: function(){ | |
| sc_super(); | |
| console.log("Foo B"); | |
| } | |
| }; | |
| var A = SC.Object.extend(B, { | |
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
| var B = { | |
| foo: function () { | |
| console.log("Foo B"); | |
| } | |
| }; | |
| var C = { | |
| foo: function () { | |
| console.log("Foo C"); | |
| } |
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
| Darkhorse.CrudButtonsMixin = { | |
| // terrible coupling | |
| showEditBinding: "Darkhorse.leftPaneController.showEditItems", | |
| showDeleteBinding: "Darkhorse.leftPaneController.showDeleteItems", | |
| render: function(context){ | |
| context = context.begin('div').addClass('buttons'); | |
| context = context.begin('div').addClass('edit-button').addClass('edit-delete-button').addClass('hidden').begin('span').addClass('edit-button').push("Edit").end().end(); | |
| context = context.begin('div').addClass('delete-button').addClass('edit-delete-button').addClass('hidden').begin('span').addClass('delete-button').push("Delete").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
| NoMethodError: undefined method `image_urls_for_client' for #<SproutCore::Builder::Test:0x007fd485dec130> | |
| /Users/joe/Documents/Software/Matygo/Source/workspace/darkhorse/frameworks/sproutcore/lib/index.rhtml:74:in `__render' | |
| /Users/joe/Documents/Software/Matygo/Source/workspace/darkhorse/vendor/ruby/1.9.1/bundler/gems/abbot-f71f37bd6a35/lib/sproutcore/builders/html.rb:204:in `_render_compiled_template' | |
| /Users/joe/Documents/Software/Matygo/Source/workspace/darkhorse/vendor/ruby/1.9.1/bundler/gems/abbot-f71f37bd6a35/lib/sproutcore/builders/html.rb:161:in `block in compile' | |
| /Users/joe/Documents/Software/Matygo/Source/workspace/darkhorse/vendor/ruby/1.9.1/bundler/gems/abbot-f71f37bd6a35/lib/sproutcore/render_engines/erubis.rb:38:in `call' | |
| /Users/joe/Documents/Software/Matygo/Source/workspace/darkhorse/vendor/ruby/1.9.1/bundler/gems/abbot-f71f37bd6a35/lib/sproutcore/render_engines/erubis.rb:38:in `capture' | |
| /Users/joe/Documents/Software/Matygo/Source/workspace/darkhorse/vendor/ruby/1.9.1/bundler/gems/abbot-f7 |
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
| // phantomJS | |
| if(expr "$OSTYPE" : 'darwin') then | |
| echo "Detected OS X using OS X Binary" | |
| ./phantomjs-osx $@ | |
| else | |
| echo "Detected Linux using Linux Binary" | |
| fi | |
| // run-jasmine.js | |
| #!./phantomjs |
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
| private def setCookie(response: HttpServletResponse, cookieString: String, expiry: Int) = { | |
| val newCookie = new Cookie("MatygoSession", cookieString); | |
| newCookie.setMaxAge(expiry); | |
| newCookie.setPath("/"); | |
| newCookie.setMaxAge(expiry) | |
| response.addCookie(newCookie); | |
| cookieString | |
| } |