Skip to content

Instantly share code, notes, and snippets.

@cesarhdz
cesarhdz / .gitconfig
Last active December 29, 2015 17:09
Alias en git para trabajar rapidamente
[alias]
st = status
ci = commit
br = branch
checkout = checkout
df = diff
co = checkout
lg = log
lol = log --graph --decorate --pretty=oneline --abbrev-commit --all
stp = status --porcelain
@cesarhdz
cesarhdz / .bash_profile
Last active December 29, 2015 17:09
Alias globales para ejecutar Git
# Alias para corre git con solo teclear 'g'
alias g=git
alias gt=git
## Alias para subcomandos, utiulizando solo como prefijo g
alias gs="git status"
alias gf="git flow"
alias gfeat="git flow feature"
alias gsh="git push"
alias gl="git lol"
@cesarhdz
cesarhdz / .bashrc
Created November 29, 2013 04:55
Archivo .bashc para que no se pidan credenciales continuamente en Windows
# Ejecutamos ssh login la inicio
eval `ssh-agent`
ssh-add
@cesarhdz
cesarhdz / Guardfile-static
Created July 20, 2013 19:26
Archivo para desarrollar sitios estáticos, permite utilizar la extension livereload, incicia un servidor y compila Compass
# GuardFile
#
# Versiones requeridas para que corra apropiadamente
# guard (1.8.1)
# guard-compass (0.0.8)
# guard-livereload (1.4.0)
# guard-webrick (0.1.4)
guard 'livereload' do
watch(%r{assets/.+\.(css|js|html)})
@cesarhdz
cesarhdz / _clearfix.scss
Created March 19, 2013 04:17
Nicholas Gallaghherclearfix port to scss, ready to use as mixin or via @extend
/**
* Clearfix Abstraction
* Based on nicholas Gallagher microclearfix
* http://nicolasgallagher.com/micro-clearfix-hack/
*
* For modern browsers
* 1. The space content is one way to avoid an Opera bug when the
* contenteditable attribute is included anywhere else in the document.
* Otherwise it causes space to appear at the top and bottom of elements
* that are clearfixed.
@cesarhdz
cesarhdz / SublimeProjectGrails.json
Last active December 14, 2015 14:29
Sublime grails project configuration
{
"folders":
[
{
"path": "$project",
"folder_exclude_patterns" : [
"target-eclipse"
,"target"
,"scripts"
<?php
/**
* SplClassLoader implementation that implements the technical interoperability
* standards for PHP 5.3 namespaces and class names.
*
* http://groups.google.com/group/php-standards/web/final-proposal
*
* // Example which loads classes for the Doctrine Common package in the
* // Doctrine\Common namespace.
@cesarhdz
cesarhdz / sublime:Fetch-Files.json
Created November 22, 2012 11:59
Nettuts Fetch plugin files and packages repos
{
"files":
{
"enquire": "https://raw.github.com/WickyNilliams/enquire.js/master/dist/enquire.min.js"
,"jquery": "http://code.jquery.com/jquery.min.js"
,"modernizr": "blob:http%3A//modernizr.com/977605ec-df68-467a-afd3-e47db09d2502"
},
"packages":
{
"bootstrap": "http://twitter.github.com/bootstrap/assets/bootstrap.zip"
@cesarhdz
cesarhdz / fauxrows.css
Created October 27, 2012 21:18
Equal Rows Height
// Taken from: http://css-tricks.com/equal-height-blocks-in-rows/
var currentTallest = 0,
currentRowStart = 0,
rowDivs = new Array(),
$el,
topPosition = 0;
$('.blocks').each(function() {
@cesarhdz
cesarhdz / gist:3794927
Created September 27, 2012 16:22 — forked from trepmal/gist:1566525
WordPress: Breadcrumb Functions
<?php
/*
Plugin Name: Breadcrumb Functions
Description: Functions for displaying breadcrumbs when working with hierarchical post types. Does nothing out-of-the-box, functions must be added to theme (directly or via hooks, your discretion).
Author: Kailey Lampert
Author URI: http://kaileylampert.com/
*/
/*
Basic:
echo get_breadcrumbs( $post );