Skip to content

Instantly share code, notes, and snippets.

View Miuler's full-sized avatar
🦀
Mi nueva pacion, Rust!

Hector Miuler Malpica Gallegos Miuler

🦀
Mi nueva pacion, Rust!
View GitHub Profile
@Miuler
Miuler / start.ini
Last active January 1, 2016 08:29
Configuration of jetty (8.1.10.v20130312)
#/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...]
#===========================================================
@Miuler
Miuler / start.ini
Last active January 1, 2016 08:29
Configuration of jetty (9.1.0.v20131115)
#/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
@Miuler
Miuler / SerializationShell.scala
Created November 14, 2013 21:40
Ejemplo de serialización de objectos usando la shell de scala
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
class BaseCtrl
constructor: ->
console.log("All your base are belong to us!")
toJson: (item) ->
JSON.stringify(item)
class TodoCtrl extends BaseCtrl
constructor: (@$scope) ->
super
class TodoCtrl
constructor: ($scope) ->
$scope.todos = [
text: "learn angular"
done: true
,
text: "build an angular app"
done: false
]
TodoCtrl = ($scope) ->
$scope.todos = [
text: "learn angular"
done: true
,
text: "build an angular app"
done: false
]
$scope.addTodo = ->
TodoCtrl = ($scope) ->
$scope.todos = [
text: "learn angular"
done: true
,
text: "build an angular app"
done: false
]
$scope.addTodo = ->
.done-true {
text-decoration: line-through;
color: grey;
}
# 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 = ->
@Miuler
Miuler / app.js
Created November 2, 2013 07:12 — forked from rktjmp/app.js
// 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', []);