Skip to content

Instantly share code, notes, and snippets.

View leoj3n's full-sized avatar
:octocat:
Edit status

Joel Kuzmarski leoj3n

:octocat:
Edit status
  • Drinking coffee somewhere.
View GitHub Profile
// Puncture a closure, absolute madness
Function.prototype.puncture = function(){
var wormhole = function(__cmd__){
return eval(__cmd__);
};
var source = ('' + this).match(/function.+?\{([\s\S]*)\}/)[1];
var fn = new Function('this.wormhole=' + wormhole + '\n' + source);
@burtonian
burtonian / ListenLog.js
Created October 15, 2011 00:01
Emancipay ListenLog Prototype
ruleset a35x110 {
meta {
name "VRM EmanciPay"
description <<
VRM EmanciPay prototype with ListenLog
Twilio # Your Twilio number
>>
author "Craig Burton with a lot of help from Ed Orcutt"
logging off
key twitter {
@danro
danro / Custom.css
Created September 16, 2012 17:32
Improved webkit inspector toolbar
#-webkit-web-inspector #toolbar {
background: #cdcdcd !important;
height: 36px !important;
}
#-webkit-web-inspector #main {
top: 36px !important;
}
#-webkit-web-inspector .toolbar-item.elements:hover:after {
content: "elements";
z-index: 9999;
@ccampbell
ccampbell / mousetrap-pause.js
Created September 19, 2012 03:30
Extends mousetrap.js to add pause/unpause support. Just include this js after mousetrap.
/**
* adds a pause and unpause method to Mousetrap
* this allows you to enable or disable keyboard shortcuts
* without having to reset Mousetrap and rebind everything
*/
Mousetrap = (function(Mousetrap) {
var self = Mousetrap,
_original_stop_callback = self.stopCallback,
enabled = true;
@aquelito
aquelito / editor_plugin.js
Created October 18, 2012 06:52
WordPress Tiny MCE - Change Language Attributes
/*
* plugin/tinymce/editor_plugin.js
*/
(function(){
tinymce.PluginManager.requireLangPack('languages');
tinymce.create('tinymce.plugins.languages', {
createControl: function(n, cm){
/*var list, listlang = {
'en': 'English',
anonymous
anonymous / dabblet.css
Created November 8, 2012 10:05
Untitled
body {
background: #fff;
margin:0;
}
section{
display: block;
width: 550px;
position:relative;
overflow: hidden;
}
@ajmalafif
ajmalafif / responsive-image.md
Last active December 11, 2015 21:28
[rwd] - Responsive image-handler resources
@brichards
brichards / wp-config.php
Created May 6, 2013 17:16
WP Debug Setup
<?php
// Enable WP_DEBUG mode
define('WP_DEBUG', true);
// Enable Debug logging to the /wp-content/debug.log file
define('WP_DEBUG_LOG', true);
// Disable display of errors and warnings
define('WP_DEBUG_DISPLAY', false);
<?php
/*
Plugin Name: Image Optimizer
Plugin URI:
Description: Automatically optimizes images using jpegtran and optipng on upload
Version: 0.1
Author: Scott Walkinshaw
Author URI:
Support URI:
*/
@swalkinshaw
swalkinshaw / Gruntfile.coffee
Created July 8, 2013 20:36
Grunt connect-livereload with pushState rewrites
'use strict'
path = require 'path'
parse = require('url').parse;
module.exports = (grunt) ->
grunt.initConfig
qunit:
all: ['tests/**/*.html']
clean: