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 / PruebaMutable.java
Created March 20, 2014 15:16
Probando la mutabilidad en un hashmap
package com.aep.billing.dao.dialect;
import static org.junit.Assert.assertEquals;
import java.util.HashMap;
import java.util.Map;
import org.junit.Test;
/**
@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 = ->