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
#
@hectorpalmatellez
hectorpalmatellez / .eslintrc
Created July 27, 2015 13:57
Eslint settings
{
"env": {
"browser": 1 // http://eslint.org/docs/user-guide/configuring#specifying-environments
},
"globals": { // http://eslint.org/docs/user-guide/configuring#specifying-globals
// jQuery
"$": 1,
"$j": 1
},
"rules": {
{
"close_windows_when_empty": true,
"color_scheme": "Packages/Seti_UI/Scheme/Seti.tmTheme",
"command": "paste",
"draw_white_space": "all",
"font_size": 12.0,
"ignored_packages":
[
"Vintage"
],
@hectorpalmatellez
hectorpalmatellez / Preferences.sublime-settings
Last active August 29, 2015 14:14
Configuración de Sublime Text 3
{
"close_windows_when_empty": true,
"color_scheme": "Packages/Theme - Brogrammer/brogrammer.tmTheme",
"command": "paste",
"draw_white_space": "all",
"font_size": 12.0,
"ignored_packages":
[
"Vintage"
],
@hectorpalmatellez
hectorpalmatellez / placeholder-mixin
Created January 3, 2015 00:05
Mixin para placeholders
@mixin placeholder {
&::-webkit-input-placeholder {@content}
&:-moz-placeholder {@content}
&::-moz-placeholder {@content}
&:-ms-input-placeholder {@content}
}
// Se usa así:
// input {
// @include placeholder {
// color: #000;

Keybase proof

I hereby claim:

  • I am hectorpalmatellez on github.
  • I am hpt (https://keybase.io/hpt) on keybase.
  • I have a public key whose fingerprint is BB2D D936 494E 3B98 2DD9 CC47 CB02 025B 9BDD 5A30

To claim this, I am signing this object:

// Generated on 2014-06-03 using generator-bones 0.0.4
// Optimizado para uso en Octano
'use strict';
var LIVERELOAD_PORT = 35729;
var lrSnippet = require('connect-livereload')({port: LIVERELOAD_PORT});
var mountFolder = function (connect, dir) {
return connect.static(require('path').resolve(dir));
};