Skip to content

Instantly share code, notes, and snippets.

View zspitzer's full-sized avatar
😉
fail fast, fail early, explain why

Zac Spitzer zspitzer

😉
fail fast, fail early, explain why
View GitHub Profile
@zspitzer
zspitzer / remote-ios-debugger-port-scanner.cfm
Created April 4, 2018 05:47
remote ios debugging port scanner
<title> remote ios debugging port scanner </title>
<h1> remote ios debugging port scanner </h1>
<cfscript>
ports = [9000];
for (i= 9220; i < 9230; i++)
ports.append(i);
for (port in ports){
writeOutput("port #port#");
http url = "http://127.0.0.1:" & port & "/json" timeout=1;
@zspitzer
zspitzer / index.html
Created August 12, 2017 07:23
Bootstrap 4 with requirejs demo bootstrap 4 example with requirejs // source https://jsbin.com/xululo
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="bootstrap 4 example with requirejs">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Bootstrap 4 with requirejs demo</title>
</head>
<body>
Unfortunately, I keep getting this error
@zspitzer
zspitzer / https_error.cfm
Created June 23, 2017 05:01
Test for cfhttp against wikipedia
<Cftry>
<cfhttp
url = "https://upload.wikimedia.org/wikipedia/en/2/25/Channel_digital_image_CMYK_color.jpg"
result = "result">
</cfhttp>
<cfcatch type="any">
<cfdump var="#cfcatch#">
</cfcatch>
</Cftry>
<Cfdump var="#result#">
@zspitzer
zspitzer / index.html
Created December 31, 2016 00:21
new Array vs pre populating an array (http://jsbench.github.io/#e249cc770a61a44671b1335c57f2daff) #jsbench #jsperf
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>new Array vs pre populating an array</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script>
<script src="./suite.js"></script>
</head>
<body>
<h1>Open the console to view the results</h1>
@zspitzer
zspitzer / index.html
Last active December 30, 2016 23:16 — forked from nolanlawson/index.html
bracket notation vs charAt (http://jsbench.github.io/#8276e7919207b2417df11d956272801c) #jsbench #jsperf
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>bracket notation vs charAt</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script>
<script src="./suite.js"></script>
</head>
<body>
<h1>Open the console to view the results</h1>
@zspitzer
zspitzer / index.html
Created October 15, 2015 10:01 — forked from anonymous/index.html
Geolocation Test Harness Geolocation Test Harness // source https://jsbin.com/nupuyo
<!DOCTYPE html>
<meta name="robots" content="noindex">
<html>
<head>
<title>Geolocation Test Harness</title>
<meta name="description" content="Geolocation Test Harness">
<script src="https://code.jquery.com/jquery-1.11.3.js"></script>
<title>chrome gps test</title>
<script>
var startTime = null;
@zspitzer
zspitzer / index.html
Created October 15, 2015 10:00 — forked from anonymous/index.html
Offline/Online event toggling demo // source https://jsbin.com/liyeyuluru
<html>
<head>
<title>Offline/Online event toggling demo</title>
<script>
var online = function () {
logger("<B>online</B>");
}
var offline = function () {
logger("offline");