Skip to content

Instantly share code, notes, and snippets.

@cesarhdz
cesarhdz / selectors.css
Created March 23, 2017 17:19
Selectors
role=navigation] > ul a:not([href^=mailto]) {
}
## 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
// Store
factory(QuoteStore, function(quoteService){
var subscribers = [];
var state;
function QuoteStore(){}
QuoteStore.prototype.getState = function(){
return state;
var fixtures = require('./fixtures.json');
var assert = expect;
describe('Line', function(){
// setup
var state = [fixtures.courseLine, fixtures.serviceLine];
function mapCurrency(line){
return line.currency;
}
@cesarhdz
cesarhdz / .gitconfig
Created June 21, 2016 16:58
Git Alias
[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 / gist:ae641b50e7930fb50261
Created June 24, 2015 16:47
404-allsite.htaccess
RewriteRule / - [L,R=404]
@cesarhdz
cesarhdz / index.jade
Created October 28, 2014 19:50
A Pen by César Hernández.
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')
[
{ "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" },
// 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 August 29, 2015 13:56
WordPress language files for Spanish

WordPress es_ES lang useful in Composer