Skip to content

Instantly share code, notes, and snippets.

@lfborjas
lfborjas / gist:2201200
Created March 25, 2012 23:13
no quepo en un tweet

Cierto, se pueden interpretar así. El primero:

"Until woman has learned to defy them all, to stand firmly on her own ground and to insist upon her own unrestricted freedom, to listen to the voice of her nature, whether it call for life's greatest treasure, love for a man, or her most glorious privilege, the right to give birth to a child, she cannot call herself emancipated"

lo de "most glorious privilege" suena ciertamente grandilocuente, y reconozco que el párrafo acusa cierto romanticismo literario en ella; pero ojo que dice "whether it... or...". En primera, sí, esas cosas están totalmente corruptas por el sexismo, una amante es una subordinada, una madre es una esclava. Esas son cosas que hay que destruir y se han destruido un poco, pero siguen. Mas una vez destruido lo envenenado, ¿qué pasa si alguien libre de esos prejuicios de veras aspira el amor o la maternidad? Después de todo, esas son dos vías de trascendencia, como también lo son la ciencia y el arte, y las cuatro traen verdadera satisfacción

events =
events: {}
bind: (topic, handler, context = this) ->
(@events[topic] ||= []).push { handler, context }
trigger: (topic, args...) ->
if @events[topic]?
event.handler.apply event.context, args for event in @events[topic]
@lfborjas
lfborjas / gist:1642349
Created January 19, 2012 20:23 — forked from panicsteve/gist:1641705
Form letter template for acquired startups
Dear soon-to-be-former user,
We've got some fantastic news! Well, it's great news for us anyway. You, on
the other hand, are fucked.
We've just been acquired by:
[ ] Facebook
[ ] Google
[ ] Twitter
import java.io.*;
import java.util.Scanner;
import java.util.GregorianCalendar;
import java.util.ArrayList;
public class BasicObjects{
private static ArrayList<Libro> libros;
static class Libro implements Serializable{
public String nombre;
/**Programa que genera un arreglo con tamaño aleatorio de enteros aleatorios
e imprime un histograma de frecuencias
*/
//clase de java para generar números aleatorios:
import java.util.Random;
//sirve para representar colecciones tabulares
import java.util.HashMap;
//contiene distintas utilidades para colecciones
import java.util.Collections;
import java.util.HashMap;
import java.util.ArrayList;
class Carta{
String palo;
int num;
public Carta(String palo,int num){
this.palo = palo;
this.num = num;
}
/**Programa que genera un arreglo con tamaño aleatorio de enteros aleatorios
e imprime un histograma de frecuencias
*/
package ejercicios;
//clase de java para generar números aleatorios:
import java.util.Random;
//sirve para representar colecciones tabulares
import java.util.HashMap;
//contiene distintas utilidades para colecciones
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Iterator;
import java.util.NoSuchElementException;
class StringBag implements Iterable<String>, Iterator<String>{
private ArrayList<String> bag;
private int current;
public StringBag(String... elements){
bag = new ArrayList<String>(Arrays.asList(elements));
current = 0;
@lfborjas
lfborjas / modulin.py
Created October 7, 2011 03:42
Demo de los módulos
def hola():
print "yo dawg, I'm a function"
hola()
print __name__
@lfborjas
lfborjas / cache.js
Created September 17, 2011 01:37
Javascript caching
var god = {
a: 1,
b: 2
};
var templater = (function(){
var cache = {};
return function(name){
if(cache[name]){
console.log("cached");