Skip to content

Instantly share code, notes, and snippets.

View davilera's full-sized avatar
👋

David Aguilera davilera

👋
  • http://neliosoftware.com
  • Barcelona
View GitHub Profile
@davilera
davilera / 00-readme.md
Last active July 2, 2019 06:29
PHP Arrays

Some examples.

@davilera
davilera / 00-README.md
Last active January 4, 2019 15:42
WP-CLI Introduction

Introduction to WP-CLI at Nelio Software.

@davilera
davilera / 00-README.md
Last active March 9, 2018 15:09
WordPress Loop

Nothing relevant.

Bulk Edit example in WordPress.

@davilera
davilera / 00-README.md
Last active May 22, 2020 07:20
Automation Scripts

Some scripts for automating plugin creation in WordPress.

@davilera
davilera / 00-readme.md
Last active November 14, 2017 12:43
Vanilla JavaScript VS libraries

Some examples of the things one can do with Vanilla JavaScript. Comparison of Vanilla JS to jQuery and Underscore.js.

@davilera
davilera / 01-limit.php
Created August 21, 2017 09:15
WordPress Image Size Limit
<?php
function nelio_max_image_size( $file ) {
$size = $file['size'];
$size = $size / 1024;
$type = $file['type'];
$is_image = strpos( $type, 'image' ) !== false;
$limit = 250;
$limit_output = '250kb';
@davilera
davilera / 00-readme.md
Last active July 7, 2017 18:36
WP Customizations Plugin

Example of a tiny plugin for adding WordPress customizations.

@davilera
davilera / 00-readme.md
Last active October 31, 2016 15:31
A glance at the future

Some snippets.

Examples of good and bad practices in WordPress plugin i18n.