I hereby claim:
- I am nicjansma on github.
- I am nicj (https://keybase.io/nicj) on keybase.
- I have a public key ASDmvrFSwHxuJExmJfUoAyj8hLpx7-hKaa83bHOg-hu5oAo
To claim this, I am signing this object:
/** | |
* The `WaitForMark` Boomerang plugin waits for the specified UserTiming Mark | |
* (or Measure) to exist on the page before a beacon is sent. | |
* | |
* It does not affect the Page Load time (`t_done`) -- it just delays a beacon | |
* until the Mark exists. This allows the beacon to contain additional | |
* ResourceTiming data and other metrics/timers that might happen after page load. | |
* | |
* NOTE: Any plugin like this that delays a beacon from being sent after onload | |
* will have an effect on total number of beacons captured (due to the visitor |
/** | |
* Boomerang XHR whitelist | |
*/ | |
function addWhitelistFilter() { | |
if (window.BOOMR && | |
window.BOOMR.version && | |
window.BOOMR.plugins && | |
window.BOOMR.plugins.AutoXHR && | |
typeof BOOMR.plugins.AutoXHR.addExcludeFilter === "function") { |
I hereby claim:
To claim this, I am signing this object:
if (Function.prototype.bind && typeof console == "object" && typeof console.log == "object") { | |
var logFns = ["log", "info", "warn", "error", "assert", "dir", "clear", "profile", "profileEnd"]; | |
$.each(logFns, function (i, method) { | |
console[method] = Function.prototype.call.bind(console[method], console); | |
}); | |
} |
if (!Date.now) { | |
Date.now = function() { | |
return new Date().valueOf(); | |
} | |
} |
@echo off | |
setlocal enabledelayedexpansion | |
REM | |
REM PngOutBatch | |
REM | |
REM Nic Jansma - [email protected] | |
REM | |
REM Runs a PNG through PngOut multiple times at different block sizes. Shows the | |
REM file-size savings during and at the end. |
#!/bin/bash | |
# | |
# Config | |
# | |
# if more than the threshold, the IP will be banned | |
THRESHOLD=100 | |
# search this many recent lines of the access log |
@echo off | |
setlocal enabledelayedexpansion | |
if {%1}=={} ( | |
echo Usage: %~nx0 [vhd] [letter] | |
exit /b 1 | |
) | |
set vhdPath=%~dpnx1 | |
set driveLetter=%2 |