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
#/home/almacen/java/123/jetty-distribution-8.1.10.v20130312/start.ini | |
#=========================================================== | |
# Jetty start.jar arguments | |
# Each line of this file is prepended to the command line | |
# arguments # of a call to: | |
# java -jar start.jar [arg...] | |
#=========================================================== | |
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
#/home/almacen/java/jetty-distribution-9.1.0.v20131115/start.ini | |
#=========================================================== | |
# Jetty start.jar arguments | |
# | |
# The contents of this file, together with the *.ini | |
# files found in start.d directory are used to build | |
# the classpath and command line on a call to | |
# java -jar start.jar [arg...] | |
# | |
# Use the following command to see more options |
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
scala> val baos = new java.io.ByteArrayOutputStream() | |
scala> val baos = new java.io.ByteArrayOutputStream() | |
baos: java.io.ByteArrayOutputStream = | |
scala> val oops = new java.io.ObjectOutputStream(baos) | |
oops: java.io.ObjectOutputStream = java.io.ObjectOutputStream@60c40d9c | |
scala> case class Persona(name:String, age:Int) extends Serializable | |
defined class Persona |
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 BaseCtrl | |
constructor: -> | |
console.log("All your base are belong to us!") | |
toJson: (item) -> | |
JSON.stringify(item) | |
class TodoCtrl extends BaseCtrl | |
constructor: (@$scope) -> | |
super |
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 TodoCtrl | |
constructor: ($scope) -> | |
$scope.todos = [ | |
text: "learn angular" | |
done: true | |
, | |
text: "build an angular app" | |
done: false | |
] |
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
TodoCtrl = ($scope) -> | |
$scope.todos = [ | |
text: "learn angular" | |
done: true | |
, | |
text: "build an angular app" | |
done: false | |
] | |
$scope.addTodo = -> |
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
TodoCtrl = ($scope) -> | |
$scope.todos = [ | |
text: "learn angular" | |
done: true | |
, | |
text: "build an angular app" | |
done: false | |
] | |
$scope.addTodo = -> |
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
.done-true { | |
text-decoration: line-through; | |
color: grey; | |
} |
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
# Original source at: http://angularjs.org/#todo-js | |
window.TodoCtrl = ($scope) -> | |
$scope.todos = [ | |
{text: 'learn angular', done: true}, | |
{text: 'build an angular app', done: false} | |
] | |
$scope.addTodo = -> |
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
// Make our app module, its easier to do this in raw javascript | |
// and then put the rest of our app content (controllers etc) | |
// in their own coffeescript files. | |
// | |
// Your ng-app should include this module name, eg: <html ng-app="TodoApp"> | |
angular.module('TodoApp', []); |