Skip to content

Instantly share code, notes, and snippets.

View dboulet's full-sized avatar

Dan Boulet dboulet

View GitHub Profile
@dboulet
dboulet / rAF.js
Last active March 9, 2017 04:32 — forked from paulirish/rAF.js
// http://paulirish.com/2011/requestanimationframe-for-smart-animating/
// http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating
// requestAnimationFrame polyfill by Erik Möller. fixes from Paul Irish and Tino Zijdel
// MIT license
(function (window) {
var lastTime = 0;
var vendors = ['ms', 'moz', 'webkit', 'o'];
@dboulet
dboulet / class-grayscale-image-editor.php
Created February 5, 2015 19:10
Convert images to grayscale in WordPress
<?php
/**
* Grayscale Image Editor
*
* Expands GD Image Editor class by adding a grayscale filter.
*/
require_once ABSPATH . 'wp-includes/class-wp-image-editor.php';
require_once ABSPATH . 'wp-includes/class-wp-image-editor-gd.php';
@dboulet
dboulet / disable-blog.php
Last active August 29, 2015 13:59
Disable Blog: Remove Posts and Comments from Wordpress.
<?php
/**
* Plugin Name: Disable Blog
* Description: Disable Posts and Comments in Wordpress.
* Author: Dan Boulet
* Author URI: http://danboulet.com/
*/
class Customize_Disable_Blog {
/**