Skip to content

Instantly share code, notes, and snippets.

#!/bin/sh
set -e
#
# This script is meant for quick & easy install via:
# 'curl -sSL https://get.docker.com/ | sh'
# or:
# 'wget -qO- https://get.docker.com/ | sh'
#
# For test builds (ie. release candidates):
# 'curl -fsSL https://test.docker.com/ | sh'
# delete local tag '12345'
git tag -d 12345
# delete remote tag '12345' (eg, GitHub version too)
git push origin :refs/tags/12345
# alternative approach
git push --delete origin tagName
git tag -d tagName
.white-font { color: white; }
.background {
background: red;
margin: 0;
padding: 50px;
text-align: center;
width: 600px;
}
.hashtag {
display: inline-block;
<div class='background white-font'>
<img src='images/coronita.svg' />
<h1> KEEP </h1>
<h2> CALM </h2>
<h4> AND </h4>
<h3> VÁMONOS </h3>
<h3> DE FIESTA </h3>
<h4> FESTEJANDO </h4>
<h5> EL DIA DEL PROGRAMADOR </h5>
<h6> Y LA INDEPENDENCIA DE MEXICO </h6>
@jefigo
jefigo / hash_converter.rb
Created July 17, 2014 16:16
Ruby Hash converter - Hash from underscores to camel case
module HashConverter
class << self
def to_camel_case hash
convert hash
end
def convert obj
case obj
when Hash
obj.inject({}) do |h,(k,v)|
@jefigo
jefigo / Computer Simulation.rb
Last active December 14, 2015 01:39
Computer Simulation
require 'minitest/autorun'
module Generators
class Multiplicative
attr_accessor :seed, :modulo, :x0
def initialize (p = {})
@seed = p[:seed]
#Ejercicio 2
def factorial(n=1)
if n == 0
1
else
n*factorial(n-1)
end
end