Skip to content

Instantly share code, notes, and snippets.

View corneliusio's full-sized avatar

Cornelius Ukena corneliusio

View GitHub Profile
<?php
/**
* Smush installer (update/upgrade procedures): WP_Smush_Installer class
*
* @package WP_Smush
* @subpackage Admin
* @since 2.8.0
*
* @author Anton Vanyukov <anton@incsub.com>
*

Keybase proof

I hereby claim:

  • I am corneliusio on github.
  • I am corneliusio (https://keybase.io/corneliusio) on keybase.
  • I have a public key ASCAhdYJpm6ry3mZh8eJIXSiRSZ21cN7C9QgluS0LEepPgo

To claim this, I am signing this object:

@corneliusio
corneliusio / .zshrc
Last active July 17, 2017 15:55
Fancy "git log" Alias
#!/usr/bin/env zsh
# My favorite alias.
# Git log with graph, with color, in columns, in reverse.
# Original credit to [Jeffrey Way's glg alias](https://gist.github.com/JeffreyWay/e8d8bfae8aaa1b7f693e)
# This can be any character really, as long as it is not
# going to show up in any git output such as commit messages
COL="º"
@corneliusio
corneliusio / functions.php
Created May 4, 2017 14:25
Wordpress Template Files in Subdirectory
foreach ([
// The list of template types can be found in the Source section at https://developer.wordpress.org/reference/functions/get_query_template.
'index','404','archive','author','category','tag','taxonomy','date','embed','home','frontpage','page','paged','search','single','singular','attachment'
] as $type) {
add_filter("{$type}_template_hierarchy", function ($files) {
return array_map(function ($template) {
// Replace YOUR_SUBDIRECTORY with where ever you want to keep your template files.
return "YOUR_SUBDIRECTORY/{$template}";
}, $files);
});
@corneliusio
corneliusio / buble-browserslist-target.js
Created April 6, 2017 19:38
buble-browserslist-target
const browserslist = require('browserslist');
const bubleMatrix = {
chrome: [48, 49, 50, 51, 52],
firefox: [43, 44, 45, 46, 47, 48],
safari: [8, 9],
ie: [8, 9, 10, 11],
edge: [12, 13]
};