Skip to content

Instantly share code, notes, and snippets.

{
"name": "10up",
"hostname": [
"10up.dev",
"www.10up.dev"
],
"maintainers": [
{
"name": "Taylor Lovett",
"email": "taylor.lovett@10up.com"
@johnpbloch
johnpbloch / node.js
Created January 19, 2012 20:55 — forked from lazypower/node.js
// Define a JSON data-structure that will look and perform like the real deal
// What is common to every post? Lets examine the details:
var forumData = { // Defining the object structure
"Posts" : [ // array of Posts
// single post item in the array
{
// definition of properties
"id" : "1",
"user" : "Melvin",
"title" : "Yes, I beleive you have my stapler...",
@johnpbloch
johnpbloch / gist:5256345
Last active December 15, 2015 11:58 — forked from ericmann/gist:5256251
<?php
class MyTestClass extends PHPUnit_Framework_TestCase {
public function setUp() {
\WP_Mock::setUp();
}
public function tearDown() {
\WP_Mock::tearDown();
}
<?php
/**
* WP Docs Collection Class
*
* Stores commonly
*
* @access public
* @since 3.7.0
*/
@johnpbloch
johnpbloch / disable-plugins-when-doing-local-dev.php
Created February 11, 2012 20:12 — forked from markjaquith/disable-plugins-when-doing-local-dev.php
Disables specified WordPress plugins when doing local development
<?php
/*
Plugin Name: Disable plugins when doing local dev
Description: If the WP_LOCAL_DEV constant is true, disables plugins that you specify
Version: 0.1
License: GPL version 2 or any later version
Author: Mark Jaquith
Author URI: http://coveredwebservices.com/
*/
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateCsvDataTable extends Migration
{
/**
* Run the migrations.