Skip to content

Instantly share code, notes, and snippets.

View dennisroethig's full-sized avatar

Dennis Roethig dennisroethig

View GitHub Profile
<?php
class NinetyNine_Related_Content_Interjection_Plugin_Test extends WP_UnitTestCase {
protected $instance;
public function setUp() {
parent::setUp();
$this->instance = NinetyNine\RelatedContentInterjectionPlugin::get_instance();
}

Keybase proof

I hereby claim:

  • I am dennisroethig on github.
  • I am dennis (https://keybase.io/dennis) on keybase.
  • I have a public key whose fingerprint is 3A1C C0E6 2CDE 793B 08F1 DDCA 7A35 F648 EA7D DC0F

To claim this, I am signing this object:

function WindowController () {
this.id = Math.random();
this.isMaster = false;
this.others = {};
window.addEventListener( 'storage', this, false );
window.addEventListener( 'unload', this, false );
this.broadcast( 'hello' );
var styleFrame = document.createElement( 'iframe' ),
stylesWaiting = [],
styleFrameIsReady = false;
styleFrame.setAttribute( 'style',
'visibility:hidden;position:absolute;top:0;left:0;width:1px;height:1px;' );
styleFrame.addEventListener( 'load', function () {
var doc = styleFrame.contentDocument,
html, i, l;
{
"binary_file_patterns":
[
"*.jpg",
"*.jpeg",
"*.png",
"*.gif",
"*.ttf",
"*.tga",
"*.dds",
set :application, "My Static Content"
set :servername, 'test.example.com'
# no git? simply deploy a directory
set :scm, :none
set :repository, "." # the directory to deploy
# using git? deploy from local git repository
# set :scm, :git
# set :repository, 'file//.' # path to local git repository
# MAC manipulators
alias random_mac='sudo ifconfig en0 ether `openssl rand -hex 6 | sed "s/\(..\)/\1:/g; s/.$//"`'
alias restore_mac='sudo ifconfig en0 ether YOUR_ORIGINAL_MAC_ADDRESS_GOES_HERE'
/**
* Inspired by AngularJS' implementation of "click dblclick mousedown..."
*
* This ties in the Hammer events to attributes like:
*
* hm-tap="add_something()"
* hm-swipe="remove_something()"
*
* and also has support for Hammer options with:
*