Skip to content

Instantly share code, notes, and snippets.

@Aeonexe
Aeonexe / config.cson
Last active September 19, 2018 03:49
"*":
core:
telemetryConsent: "no"
uriHandlerRegistration: "always"
editor:
fontSize: 12
invisibles: {}
scrollPastEnd: true
showIndentGuide: true
showInvisibles: true
# Your snippets
#
# Atom snippets allow you to enter a simple prefix in the editor and hit tab to
# expand the prefix into a larger code block with templated values.
#
# You can create a new snippet in this file by typing "snip" and then hitting
# tab.
#
# An example CoffeeScript snippet to expand log to console.log:
#
@Aeonexe
Aeonexe / file.php
Last active September 14, 2018 00:41
var date = new Date();
var showDates_<?= $i ?> = [
<?php if( have_rows( 'viaje_fechas' ) ) : while( have_rows( 'viaje_fechas' ) ) : the_row( 'viaje_fechas' ); ?>
"<?php the_sub_field( 'viaje_fecha' ); ?>",
<?php endwhile; reset_rows(); endif; ?>
];
var moreDates_<?= $i ?> = [
<?php while( have_rows( 'viaje_fechas' ) ) : the_row( 'viaje_fechas' ); ?>
@Aeonexe
Aeonexe / .htaccess
Created August 13, 2018 17:40
Compresión de gzip desde htaccess
# Control cache
<filesMatch ".(css|jpg|jpeg|png|gif|js|ico|svg)$">
Header set Cache-Control "max-age=2628000, public"
</filesMatch>
# Gzip
<ifModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_item_include file .(html?|txt|css|js|php|pl)$
{
// Place your global snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and
// description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope
// is left empty or omitted, the snippet gets applied to all languages. The prefix is what is
// used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders.
// Placeholders with the same ids are connected.
// Example:
// "Print to console": {
// "scope": "javascript,typescript",
@Aeonexe
Aeonexe / html
Last active June 29, 2020 18:41
{
// Place your snippets for html here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
// "Print to console": {
// "prefix": "log",
// "body": [
// "console.log('$1');",
@Aeonexe
Aeonexe / scss
Last active June 29, 2020 18:43
{
// Place your snippets for scss here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
// "Print to console": {
// "prefix": "log",
// "body": [
// "console.log('$1');",
@Aeonexe
Aeonexe / php
Last active October 7, 2020 12:48
Visual Studio code snippets
{
// Place your snippets for php here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
// "Print to console": {
// "prefix": "log",
// "body": [
// "console.log('$1');",
@Aeonexe
Aeonexe / functions.php
Last active May 19, 2018 17:51
Cambia labels en el menú de administración
/**
* Cambia labels en el menú de administrador
*/
function change_post_menu_label() {
global $menu;
global $submenu;
$menu[5][0] = 'Proyectos';
$submenu['user-edit.php'][5][0] = 'Proyectos';
$submenu['user-edit.php'][10][0] = 'Publicar';
@Aeonexe
Aeonexe / style
Created April 10, 2018 05:49
Mapas: clave : valor
$colors: (
"gray": '#eee',
"black": '#000',
"white": '#fff',
"red": '#ff4'
);
@each $color, $value in $colors {
.item-#{$color} {
background-color: $value;