This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# via http://stackoverflow.com/a/28858550 | |
git diff --shortstat `git hash-object -t tree /dev/null` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if(!function_exists('arrayExtract')){ | |
/** | |
* Extract items from an array and return them using a callback function to | |
* compare values | |
* | |
* @param array $arr | |
* @param Callable $callback | |
* @param bool $preserve |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Junker; | |
/** | |
* Class Junker | |
* | |
* Dump some dismissable data - contains basic styles in order to help position | |
* the dump and make it clearer to use without | |
* clogging up some valuable screen space |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="arrow"></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -o nounset -o pipefail -o errexit | |
cd "$(dirname "$0")/../.." | |
################################################################################ | |
# Master one liner interaction with deploying files | |
# | |
# Build the assets, then add and commit the files to git | |
# Then uploads the current branch to the live site, staging site and to GitLab | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(a){for(var b,c=document.createTreeWalker(document.querySelector("body"),NodeFilter.SHOW_TEXT,null,!1);b=c.nextNode();)b.nodeValue=a})('gong'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
table { | |
float: left; | |
overflow: hidden; | |
position: relative; | |
width: 100%; | |
z-index: 2; | |
} | |
table tr { | |
-webkit-transition: background-color 0.3s; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function($){ | |
// MathJax highlighting jQuery plugin | |
// Highlights variables that are related to each other | |
// i.e. all variables that are the same and have superscript | |
// Note: Variables that have subscript are treated as a different | |
// variable | |
$.fn.highlighter = function(opts){ | |
// Override defaults | |
opts = $.extend({ | |
color: '#08c', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var animations = { | |
onload: function(callback) { | |
document.readyState === 'interactive' || document.readyState === 'complete' ? callback : document.addEventListener('DOMContentLoaded', callback); | |
}, | |
renderize: function(fps, render) { | |
var fpsInterval, startTime, now, then, elapsed; | |
fpsInterval = 1000 / fps; | |
then = Date.now(); | |
startTime = then; |