Skip to content

Instantly share code, notes, and snippets.

View sergiohidalgo's full-sized avatar

Sergio Hidalgo sergiohidalgo

View GitHub Profile
@jelcaf
jelcaf / Operaciones-Git
Last active September 25, 2024 03:12
Git Tips - Mini-trucos de Git para facilitarme la tarea
#############################################
# Push de la rama actual
git push origin $rama_actual
#############################################
# Volver a un commit anterior, descartando los cambios
git reset --HARD $SHA1
#############################################
# Ver y descargar Ramas remotas
@dmonopoly
dmonopoly / gist:1513155
Created December 23, 2011 04:35
How do you convert this animate method of jQuery to CoffeeScript?
$('#book').animate({
opacity: 0.25,
left: '+=50',
height: 'toggle'
}, 5000, function() {
// Animation complete.
});
@dstollie
dstollie / acf.php
Last active September 15, 2017 14:13
Using Themosis templates in ACF
<?php
/**
* ACF has this fancy option to show ACF fields based on pages templates.
* One problem: Themosis templates are not registered as "default" WordPress templates.
* This file hooks into the acf filters and allows ACF to use the Themosis templates.
*/
// add themosis templates
add_filter('acf/location/rule_values/page_template', 'add_themosis_templates_to_acf_rules');
function add_themosis_templates_to_acf_rules($choices)
@parmentf
parmentf / GitCommitEmoji.md
Last active November 15, 2024 20:33
Git Commit message Emoji
@codediodeio
codediodeio / database.rules.json
Last active November 4, 2024 03:22
Common Database Rules for Firebase
// No Security
{
"rules": {
".read": true,
".write": true
}
}