Skip to content

Instantly share code, notes, and snippets.

View ivanacostarubio's full-sized avatar
💭
⚡️accelerating

Ivan ivanacostarubio

💭
⚡️accelerating
View GitHub Profile
<html>
<body>
<head>
<meta name="description" content="Pagina de pagos" />
<meta name="keywords" content="HTML, Pagina, Pagos, PuroUnlock" />
<meta name="author" content="Alberto Montoya" />
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" >
</head>
<p><table style="width:0px;border:0px;margin:0 auto;"><tr><td><img alt="Pagina segura de pagos." src="https://www.purounlock.com/images/server/paypal.jpg" title="PuroUnlock�" width="750" height="90" /></td></tr></table></p>
@ivanacostarubio
ivanacostarubio / git2all.sh
Created October 4, 2011 20:41
git2all.sh
# /bin/sh
#
# It applies a git command to the configured remotes
#
# Usage: git2all.sh command branch
#
# comand - can be any git command. For example: pull and push.
# branch - any git branch you want to apply the command to.
#
@ivanacostarubio
ivanacostarubio / gist:1287608
Created October 14, 2011 16:33
venue_widget.html
<html>
<head>
<link href="http://widgets.venuedriver.com/css/styles.css" rel='stylesheet' type='text/css'/>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js" charset="utf-8"></script>
<script>
VenueConfig = new Object();
VenueConfig.api_token = ""; //example '02AFRET3T6A961Q53'
VenueConfig.account = ''; //example '12345'
VenueConfig.div_id = 'venueWidgetMainTable'; //example 'my_div'
</script>
PS1='[\[$(branch_color)\]$(parse_git_branch)\[${c_sgr0}\]] \u@\[${c_cyan}\]\w\[${c_sgr0}\] λ '
@ivanacostarubio
ivanacostarubio / chef_image_magick_6.4.9
Created January 30, 2012 18:57
Chef Recipe that installed image magick 6.4.9
enable_package "media-gfx/imagemagick" do
version "6.4.9.2"
end
package "media-gfx/imagemagick" do
version "6.4.9.2"
action :install
end
@ivanacostarubio
ivanacostarubio / gist:1813344
Created February 13, 2012 03:37
Comparing Module and Classes Name using < >
#
#
# - Ruby returns false when comparing a Class or Module with itself using the < or > operators.
# - Ruby returns nil when they are not the same.
#
module Z ; end
module X ; end
class C ; end
@ivanacostarubio
ivanacostarubio / sense_function.py
Created February 24, 2012 02:26
Sense Function
#Try using your code with a measurement of 'green' and
#make sure the resulting probability distribution is correct.
p=[0.2, 0.2, 0.2, 0.2, 0.2]
world=['green', 'red', 'red', 'green', 'green']
Z = 'red'
pHit = 0.6
pMiss = 0.2
def sense(p, Z):
@ivanacostarubio
ivanacostarubio / gist:1903257
Created February 24, 2012 19:48
instalacion_del_widget.js
<script src="widget.js" type="text/javascript"></script>
<script type="text/javascript">
(function() { $(document).ready(function() { var builder;
return builder = new WidgetBuilder("4f468414078ced0001000004", "esqueleto");
});
}).call(this);
</script>
@ivanacostarubio
ivanacostarubio / class.rb
Created May 7, 2012 20:15
Saving what super retuns !!! OMG :trollface:
b[scoping_books] ivan@~/ruby/e-read-report λ irb
ruby-1.9.3-p0 :001 > class SuperMan
ruby-1.9.3-p0 :002?> def vuela
ruby-1.9.3-p0 :003?> return "volando"
ruby-1.9.3-p0 :004?> end
ruby-1.9.3-p0 :005?> end
=> nil
ruby-1.9.3-p0 :022 > class Superr < SuperMan
ruby-1.9.3-p0 :023?> def vuela
@ivanacostarubio
ivanacostarubio / software_criollo_manifiesto.txt
Created May 11, 2012 15:27
El manifiesto de SoftwareCriollo.com
Las ideas son infinitas pero pocas tienen la posibilidad de cambiar
radicalmente la vida de un gran numero de personas.
Este es el caso de una idea noble y arriesgada que se ha convertido en
una realidad gracias al maestro Abreu y Gustavo Dudamel. ¿Como le
cambiaria la vida a los reclusos penitenciarios si estos obtuvieran una
educacion musical?.
Una de estas ideas - que al principio parecia descabellada - era la
nocion de una computadora en cada hogar. Gracias a visionarios como Steve