I hereby claim:
- I am dcadenas on github.
- I am dcadenas (https://keybase.io/dcadenas) on keybase.
- I have a public key ASAZotTtny79SxzwfBbCE4ST3pl63YtUo3Pnj5oOpOj32go
To claim this, I am signing this object:
#!/usr/local/bin/ruby | |
# encoding: UTF-8 | |
require 'rubygems' | |
gem 'mechanize' | |
gem 'main' | |
gem 'highline' | |
gem 'money' | |
gem 'change_watcher' |
I hereby claim:
To claim this, I am signing this object:
(function(){ | |
var url = 'https://api.ipify.org/?format=json'; | |
var createCORSRequest = function(method, url) { | |
var xhr = new XMLHttpRequest(); | |
if ("withCredentials" in xhr) { | |
xhr.open(method, url, true); | |
} else if (typeof XDomainRequest != "undefined") { | |
xhr = new XDomainRequest(); | |
xhr.open(method, url); | |
} else { |
(function(){ | |
var putRatings = function($){ | |
$('.peli_izq .cinesala').each(function(_,link){ | |
var escapedTitle = escape(link.text.trim()); | |
if(escapedTitle !== ""){ | |
$.getJSON("http://www.imdbapi.com/?t=" + escapedTitle + "&tomatoes=true&y=" + (new Date().getFullYear()) + "&callback=?", function(d){ | |
if(d.imdbRating) { | |
$(link).after('<div style="float:right; background:yellow; line-height:8px; border:solid; padding:3px">\ | |
<p>Búsqueda en IMDB<\p>\ |
#!/usr/bin/env bash | |
a=( | |
'En cuanto arreglemos el goteo de recursos' | |
'En cuanto completemos las pruebas' | |
'En cuanto hayamos optimizado el código' | |
'Apenas nos arreglen el bug' | |
'Cuando se solvente el problema de instalación' | |
'Cuando averiguemos por qué se cae el proceso' | |
'Cuando hayamos mejorado el rendimiento' | |
'En cuanto completemos la restauración' |
require 'objspace' | |
ObjectSpace.trace_object_allocations_start | |
def all_child_threads | |
Thread.list - [Thread.current] | |
end | |
trap(:INFO) { | |
puts "#" * 90 | |
all_child_threads.each do |t| |
SomeComponent { | |
background-color: red; | |
SomeComponent-someDescendant { | |
width: 100%; | |
} | |
} | |
SomeComponent-someDescendant { | |
background-color: white; |
require 'guard' | |
require 'guard/guard' | |
module ::Guard | |
class Reload < Guard | |
def initialize(*args, &block) | |
super | |
@script = <<-APPLESCRIPT | |
tell window 1 of application "Google Chrome" |
#! /usr/bin/env ruby | |
#usage: imsg daniel "hello world" | |
buddyids = { | |
daniel: "dcadenas@gmail.com", | |
elcuervo: "yo@brunoaguirre.com" | |
} | |
nickname = ARGV[0].to_sym |
#!/usr/bin/env ruby | |
test_dirs = %w[configurations | |
lib | |
modules | |
services | |
uploaders | |
controllers | |
helpers | |
mailers | |
presenters |