Skip to content

Instantly share code, notes, and snippets.

View t0mtaylor's full-sized avatar
🏠
Working from home

Tom Taylor t0mtaylor

🏠
Working from home
View GitHub Profile
#build-pipeline-plugin-content {
background-color: none;
border-radius: 0;
}
#build-pipeline-plugin-content h1 {
display: none;
}
tbody.pipelineGroup {
# http://pecl.php.net/package/APCu
# http://pecl.php.net/package/ZendOpcache
# Install ZendOpcache
sudo pecl install ZendOpcache-beta
sudo -i
cat > /etc/php5/mods-available/opcache.ini << EOF
zend_extension=/usr/lib/php5/20100525/opcache.so
opcache.memory_consumption=128
opcache.interned_strings_buffer=8
for (var i = 0; i < allImgs.length; i++)
//shorthand
for(var i in allImgs)
//cache
var i, allImgsLen = allImgs.length;
for (i = 0; i < allImgsLen i++)
//quick reverse << FAST!
/**
* Disable and enable event on scroll begin and scroll end.
*
* Quick tidy, auto for active hover styles, and set in self executing method
* Check for addEventListener, don't bother with IE8 and older browsers
* Tom Taylor - 03/06/14 - http://tommytaylor.co.uk
*
* @see http://www.thecssninja.com/javascript/pointer-events-60fps
*/
(function(w, d) {
@t0mtaylor
t0mtaylor / jshint-config.json
Last active December 19, 2015 19:48 — forked from rtircher/jshint-runner.js
Include external json config file for JSHINT Options, also added XML Checkstyle output for use with CI such as Jenkins - create a task to merge the start and end xml files with the output data from jshint to create your checkstyle report (see comments)
{
"smarttabs" : true,
"-W099" : true
}