Skip to content

Instantly share code, notes, and snippets.

View sergiohidalgo's full-sized avatar

Sergio Hidalgo sergiohidalgo

View GitHub Profile
@codediodeio
codediodeio / database.rules.json
Last active June 22, 2024 07:03
Common Database Rules for Firebase
// No Security
{
"rules": {
".read": true,
".write": true
}
}
@parmentf
parmentf / GitCommitEmoji.md
Last active July 8, 2024 09:12
Git Commit message Emoji
@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)
@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.
});
@jelcaf
jelcaf / Operaciones-Git
Last active May 15, 2024 15:31
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