Created by Christopher Manning
Nodes are linked to nodes in neighboring cells. The cell's color is a function of its area.
The white lines are the Delaunay triangulation and the purple cells are the Voronoi diagram.
| task :ask_production_confirmation do | |
| set(:confirmed) do | |
| puts <<-WARN | |
| ======================================================================== | |
| WARNING: You're about to perform actions on production server(s) | |
| Please confirm that all your intentions are kind and friendly | |
| ======================================================================== |
| <?php | |
| /* | |
| * dl-file.php | |
| * | |
| * Protect uploaded files with login. | |
| * | |
| * @link http://wordpress.stackexchange.com/questions/37144/protect-wordpress-uploads-if-user-is-not-logged-in | |
| * | |
| * @author hakre <http://hakre.wordpress.com/> | |
| * @license GPL-3.0+ |
| <?php | |
| /** | |
| * Merge two dimensional arrays my way | |
| * | |
| * Will merge keys even if they are of type int | |
| * | |
| * @param array $array1 Initial array to merge. | |
| * @param array ... Variable list of arrays to recursively merge. | |
| * |
Created by Christopher Manning
Nodes are linked to nodes in neighboring cells. The cell's color is a function of its area.
The white lines are the Delaunay triangulation and the purple cells are the Voronoi diagram.
| <?php | |
| /* | |
| Plugin Name: R Debug | |
| Description: Set of dump helpers for debug. | |
| Author: Andrey "Rarst" Savchenko | |
| Author URI: https://www.rarst.net/ | |
| License: MIT | |
| */ |
| <?php # -*- coding: utf-8 -*- | |
| declare( encoding = 'UTF-8' ); | |
| /** | |
| * Plugin Name: Basic Meta Box | |
| * Description: Create a simple meta box. Demo plugin. | |
| * Version: 2012.02.05 | |
| * Required: 3.3 | |
| * Author: Fuxia Scholz | |
| * Author URI: https://fuxia.me | |
| * License: GPL |
| <?php | |
| /* | |
| Plugin Name: Unpublished Hierarchies | |
| Description: A tiny plugin to allow draft, private, scheduled, and password-protected pages to be selected as parents. | |
| Author: Stephanie Leary | |
| Version: 1.0 | |
| Author URI: http://stephanieleary.com | |
| License: GPL2 | |
| */ |
| <?php | |
| defined( 'ABSPATH' ) OR exit; | |
| /** | |
| * Plugin Name: (WCM) PHPMailer Exceptions & SMTP | |
| * Description: WordPress by default returns <code>FALSE</code> instead of an <code>Exception</code>. This plugin fixes that. | |
| */ | |
| add_action( 'phpmailer_init', 'WCMphpmailerException' ); | |
| function WCMphpmailerException( $phpmailer ) | |
| { |
| <!DOCTYPE html> | |
| <meta charset="utf-8"> | |
| <title>Plotting a Trendline with D3.js</title> | |
| <style> | |
| .line { | |
| stroke: blue; | |
| fill:none; | |
| stroke-width: 3; | |
| } | |
| <?php | |
| // If you can edit pages, you can edit widgets | |
| add_filter( 'user_has_cap', | |
| function( $caps ) { | |
| if ( ! empty( $caps['edit_pages'] ) ) | |
| $caps['edit_theme_options'] = true; | |
| return $caps; | |
| } ); |