Skip to content

Instantly share code, notes, and snippets.

César Hernández cesarhdz

Block or report user

Report or block cesarhdz

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View selectors.css
role=navigation] > ul a:not([href^=mailto]) {
}
View git flow sync faeture
## Sync feature wiht develop
# Rebase
$ git checkout feature/<feature>
$ git checkout feature/<feature> -b feature/<feature>-tmp
$ git checkout -
# Preserve merges and set commiter date to author date
# see: http://stackoverflow.com/a/2976598/915034
View quote-store.js
// Store
factory(QuoteStore, function(quoteService){
var subscribers = [];
var state;
function QuoteStore(){}
QuoteStore.prototype.getState = function(){
return state;
View edit-bookings.js
var fixtures = require('./fixtures.json');
var assert = expect;
describe('Line', function(){
// setup
var state = [fixtures.courseLine, fixtures.serviceLine];
function mapCurrency(line){
return line.currency;
}
View .gitconfig
[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 / index.jade
Created Oct 28, 2014
A Pen by César Hernández.
View index.jade
form
h1 New Invoice
fieldset
legend Client Info
.field
label(for=rfc) RFC
input(id=rfc, placeholder="ABX000102XYZ")
.field
label(for=name) Name
input(id=name, placeholder='Razón Social')
View Sublime Shortcuts
[
{ "keys": ["ctrl+shift+c"], "command": "toggle_comment", "args": { "block": false } },
{ "keys": ["alt+up"], "command": "swap_line_up" },
{ "keys": ["alt+down"], "command": "swap_line_down" },
{ "keys": ["ctrl+shift+down"], "command": "select_lines", "args": {"forward": true} },
{ "keys": ["ctrl+shift+up"], "command": "select_lines", "args": {"forward": false} },
// Ajustar lineas en CSS
{ "keys": ["ctrl+shift+alt+c"], "command": "css_sorter" },
View gist:d137a95e6c297587d1f3
// Place your Spring DSL code here
import org.springframework.security.web.context.HttpSessionSecurityContextRepository
import grails.plugin.springsecurity.web.authentication.AjaxAwareAuthenticationEntryPoint
import org.springframework.security.core.context.SecurityContext
import org.springframework.security.core.context.SecurityContextHolder
import org.springframework.security.web.context.NullSecurityContextRepository
import org.springframework.security.web.context.HttpRequestResponseHolder
import javax.servlet.http.HttpServletRequest
@cesarhdz
cesarhdz / _wordpress-es_ES-lang.md
Last active Aug 29, 2015
WordPress language files for Spanish
View _wordpress-es_ES-lang.md

WordPress es_ES lang useful in Composer

You can’t perform that action at this time.