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
## TBD - Too Busy Disorder | |
Charla preparada para el encuentro de #CulturaFreelance, a presentar en laOfi el 5 de Octubre de 2015. | |
Evento especial para la #SemanaDelCoworking | |
## Créditos fotográficos | |
Lloyd Morgan. Despair. | |
http://www.flickr.com/photos/lloydm/2305701220 |
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
package edu.unlam.pa; | |
import java.io.File; | |
public abstract class EjercicioOIA { | |
protected File entrada; | |
protected File salida; | |
public EjercicioOIA(File entrada, File salida) { |
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
#!/bin/bash | |
INPUT=`ls -lt | grep pdf | head -n 1 | awk '{print $9}'` | |
OUTPUT=VISA-`date +"%Y%m%d"`.pdf | |
echo $INPUT | |
echo $OUTPUT | |
qpdf --password=$1 --decrypt `pwd`/$INPUT $OUTPUT | |
mv $OUTPUT $HOME/Dropbox | |
rm $INPUT |
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
import org.junit.Assert; | |
import org.junit.Test; | |
public class AETests { | |
@Test | |
public void queCalcula() { | |
MuestraDePersonas m = new MuestraDePersonas(2); | |
m.agregarPersona(new Persona(100, 123)); | |
m.agregarPersona(new Persona(110, 125)); |
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
public class Luchador { | |
private int peso; | |
private int altura; | |
public Luchador(int peso, int altura) { | |
this.peso = peso; | |
this.altura = altura; | |
} |
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
import org.junit.Assert; | |
import org.junit.Test; | |
public class ArreglosTests { | |
@Test | |
public void quePuedoCrearloExplicitamente(){ | |
int[] edades = {22, 29, 27, 25, 21, 23, 25, 27}; |
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
Si lo que querés es una relación liberal, a corto plazo... | |
http://tryruby.org | |
Si, en cambio, querés comprometerte | |
http://rubyinstaller.org | |
O para echar un vistazo de lo que hay en el mundo ruby | |
http://rubygems.org | |
Si querés hacer preguntas |
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
@RequestMapping("/hi") | |
public ModelAndView helloWorld(@RequestParam("nombre") String nombre) { | |
String message = "Hola, " + nombre + "!"; | |
ModelMap model = new ModelMap(); | |
model.put("command", new Persona()); | |
model.put("message", message); | |
return new ModelAndView("hello", model); | |
} |
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
package tallerweb.springmvc.utils; | |
import java.util.HashMap; | |
public class Carrito { | |
private static Carrito instance = new Carrito(); | |
private Map<String, Integer> unidades = new HashMap<String, | |
private Carrito(){} |