Skip to content

Instantly share code, notes, and snippets.

View mailopl's full-sized avatar

Marcin Wawrzyniak mailopl

View GitHub Profile
function FastClick(b){var c,a=this;this.trackingClick=false;this.trackingClickStart=0;this.targetElement=null;this.touchStartX=0;this.touchStartY=0;this.lastTouchIdentifier=0;this.touchBoundary=10;this.layer=b;if(!b||!b.nodeType){throw new TypeError("Layer must be a document node");}this.onClick=function(){return FastClick.prototype.onClick.apply(a,arguments);};this.onMouse=function(){return FastClick.prototype.onMouse.apply(a,arguments);};this.onTouchStart=function(){return FastClick.prototype.onTouchStart.apply(a,arguments);};this.onTouchMove=function(){return FastClick.prototype.onTouchMove.apply(a,arguments);};this.onTouchEnd=function(){return FastClick.prototype.onTouchEnd.apply(a,arguments);};this.onTouchCancel=function(){return FastClick.prototype.onTouchCancel.apply(a,arguments);};if(FastClick.notNeeded(b)){return;}if(this.deviceIsAndroid){b.addEventListener("mouseover",this.onMouse,true);b.addEventListener("mousedown",this.onMouse,true);b.addEventListener("mouseup",this.onMouse,true);}b.addEventListe
C:\VirtualVMS\dev-standalone-vagrant>vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
[default] Clearing any previously set forwarded ports...
[default] Clearing any previously set network interfaces...
There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.
Command: ["hostonlyif", "create"]
Stderr: 0%...
@mailopl
mailopl / .htaccess
Last active June 9, 2016 20:42
mod_pagepseed full config with comments
<IfModule pagespeed_module>
ModPagespeed On
ModPagespeedRewriteLevel PassThrough
#ModPagespeedEnableFilters convert_jpeg_to_webp,convert_jpeg_to_progressive
# The 'Add Instrumentation' filter injects two small blocks of JavaScript into every HTML page. These blocks measure the time the client spends
# loading and rendering the page, and report that measurement back to the server.
# LOW RISK
ModPagespeedEnableFilters add_instrumentation
#!/bin/bash
echo "------------------------------------"
echo " NIMIQ Skypool installation script "
echo "------------------------------------"
printf "Enter machine name: "
read -r name