Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am maadhattah on github.
  • I am jamesdigioia ( on keybase.
  • I have a public key ASCG7vUNizwEP8YhbG9NQtJtNt4kMip4Rd6XMrkUoUgeDgo

To claim this, I am signing this object:

<!DOCTYPE html>
<title>Page Title</title>
<button id="up">Up</button>
<button id="down">Down</button>
<button id="left">Left</button>
<button id="right">Right</button>
<!DOCTYPE html>
<title>jQuery Fun House Starter Code</title>
<div class="section" id="gallery">
<h1>Pictures of elephants</h1>
<img class="gallery-thumb" id="pic1" src=",_2009).jpg">
<img class="gallery-thumb" id="pic2" src="">
<!DOCTYPE html>
<title>Movies and Shows</title>
<h1>Amazing Movies and TV Shows Ever!</h1>
<li>Finding Dory</li>
<li>Game of Thrones</li>
mAAdhaTTah / add-redirect-args.php
Created November 19, 2015 02:15
Using Redirect Args to Display Errors
if ($error) {
    add_filter('redirect_post_location', function( $location ) use ( $error ) {
        return add_query_arg( 'my-plugin-error', $error->get_error_message(), $location );
mAAdhaTTah / admin-notice-hook.php
Created November 19, 2015 01:23
save_post Error Reporting Boilerplate
add_action( 'admin_notices', 'my_error_messages' );
mAAdhaTTah /
Last active June 6, 2016 23:43
OS X Provisioning Script
gem install kitchenplan
kitchenplan setup
kitchenplan provision
gem install homesick
homesick clone
homesick link dotfiles
git clone pianosa:~/.settings/ # The address is for my home server
mackup restore
mAAdhaTTah / fb-debugger.php
Created September 27, 2015 05:55
Facebook Post Debugger
Plugin Name: Facebook Post Debugger
Version: 0.1
Plugin URI:
Description: This plugin runs the shortlink through the Facebook debugger upon publishing.
Author: James DiGioia
Author URI:
mAAdhaTTah / improved-boot.php
Last active March 23, 2021 11:37
A Better WordPress Singleton
call_user_func(array(new PluginClass(__FILE__), 'boot'));
mAAdhaTTah / test
Last active August 29, 2015 14:23
var http = require('http');
var _ = require('lodash');
// An HTTP server for an quick EventEmitter example. Works just like a socket.
var server = http.createServer(function(req, res) {
console.log('Reqest incoming...');
// This will not cause an error since partial is invoked after socket gets passed into the function.
server.on('connection', function(socket) {