Skip to content

Instantly share code, notes, and snippets.

View hectorpalmatellez's full-sized avatar

Héctor Palma Téllez hectorpalmatellez

View GitHub Profile
@hectorpalmatellez
hectorpalmatellez / .git-config
Created December 3, 2013 14:08
Añadir esto en `.git/config` para que cada vez que se use `git log` aparezca: * ID del commit * Fecha ([Fri Nov 22 14:47]) * Nombre del usuario que hizo el commit * Mensaje del commit
[format]
pretty = %Cblue%h%Creset %Cgreen[%ad%x08%x08%x08%x08%x08%x08%x08%x08%x08%x08%x08%x08%x08%x08]%Creset (%an) %s
@hectorpalmatellez
hectorpalmatellez / transparente
Last active December 29, 2015 13:09
Mixin en Compass para generar transparencias compatibles desde IE viejo en adelante. Con RGBA para lo moderno.
@mixin transparencia($color, $alpha) {
$rgba: rgba($color, $alpha);
$ie-hex-str: ie-hex-str($rgba);
background-color: transparent;
background-color: $rgba;
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#{$ie-hex-str},endColorstr=#{$ie-hex-str});
zoom: 1;
}
// Uso:
// @include transparencia(#[color], 1);
@mixin hp-opacity($trans) {
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=#{$trans * 100})";
filter: alpha(opactiy=($trans * 100));
-moz-opacity: $trans;
-khtml-opacity: $trans;
opacity: $trans;
}
@hectorpalmatellez
hectorpalmatellez / hack.sh
Last active December 14, 2015 15:39 — forked from kyuumeitai/hack.sh
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#