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
// | |
// NSMutableArray+Uniqueness.h | |
// TacosTaco | |
// | |
// Created by Rodolfo Wilhelmy on 3/6/12. | |
// Copyright (c) 2012 __MyCompanyName__. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> |
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
// A simple image server | |
// To run: | |
// $ node image_server.js | |
var fs = require('fs') | |
, http = require('http') | |
, anImage = ''; | |
// Read an image on disk | |
try { |
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
function postgres-start { | |
pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start | |
} | |
function postgres-stop { | |
pg_ctl -D /usr/local/var/postgres stop -s -m fast | |
} |
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
/* | |
El mundo era tan reciente, que muchas cosas carecían de nombre, | |
y para mencionarlas había que señalarlas con el dedo. | |
Todos los años, por el mes de marzo, una familia de gitanos | |
desarrapados plantaba su carpa cerca de la aldea, y con un | |
grande alboroto de pitos y timbales daban a conocer los | |
nuevos inventos. | |
En un marzo volvieron los gitanos. Esta vez llevaban la sucesión |
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
[ | |
{ | |
"nombre": "José Luis Álvarez Martínez", | |
"avatar": "https://commondatastorage.googleapis.com/curul/uploads/representative/avatar/11/thumb_open-uri20110721-59537-1g7n8sy-0." | |
}, | |
{ | |
"nombre": "Ma. de Jesús Aguirre Maldonado", | |
"avatar": "https://commondatastorage.googleapis.com/curul/uploads/representative/avatar/5/thumb_open-uri20110721-59537-18mhd24-0." | |
}, | |
{ |
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
// En http://curul501.org/partido_politico/1 | |
var diputados = $.map($("li.nombre"), function(val, i) { return { nombre: $(val).find("a").html(), avatar: $(val).siblings().first().find("img").attr("src") } }) | |
console.log("El avatar del diputado '" + diputados[0].nombre + "' esta en " + diputados[0].avatar); |
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
require 'rubygems' | |
require 'open-uri' | |
require 'hpricot' | |
require 'optparse' | |
require 'json' | |
url = "http://curul501.org/partido_politico/" | |
members = [] | |
(1..6).each do |i| |
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 MetaModel | |
PROPERTIES = [:id, :name, :address, :lat, :lng] | |
PROPERTIES.each { |p| | |
attr_accessor p | |
} | |
def initialize(attributes = {}) | |
attributes.each { |key, value| | |
self.send("#{key}=", value) if PROPERTIES.member? key.to_sym | |
} |
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
# Makes any NSObject conform to the NSCoding protocol | |
# Authors: | |
# @rod_wilhelmy | |
# @cicloid | |
module Serializable | |
def attr_accessor_setters | |
methods.grep(/\w=:$/) | |
end |
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
# Additional translations at http://github.com/plataformatec/devise/wiki/I18n | |
es: | |
errors: | |
messages: | |
expired: "ha expirado, por favor pida uno nuevo" | |
not_found: "no encontrado" | |
already_confirmed: "ya está confirmada, por favor intente ingresar" | |
not_locked: "no está bloqueada" | |
not_saved: |
OlderNewer