Skip to content

Instantly share code, notes, and snippets.

View kylebarrow's full-sized avatar

Kyle Barrow kylebarrow

View GitHub Profile

Keybase proof

I hereby claim:

  • I am kylebarrow on github.
  • I am kylebarrow (https://keybase.io/kylebarrow) on keybase.
  • I have a public key whose fingerprint is 1A5B EE59 5B28 DEB2 BB8C 4E29 5607 1FBF BC0B 0C56

To claim this, I am signing this object:

@kylebarrow
kylebarrow / evol
Last active December 15, 2015 16:19
Makes all DOM nodes comical.
(function() {
var nodes = document.querySelectorAll('*');
for (var i=0; i < nodes.length; i++)
{
nodes[i].style.fontFamily = "Comic Sans MS";
}
}());
@kylebarrow
kylebarrow / bb10viewport.html
Created June 19, 2012 18:50
BB10 Alpha viewport test
<!DOCTYPE html>
<html lang="en">
<head>
<title>Screen Test</title>
<meta charset="utf-8">
<!--
Default device width vieport:
BB10 Alpha viewport width = 768px
-->
<!-- <meta name="viewport" content="width=device-width"> -->
@kylebarrow
kylebarrow / perf.js
Created December 26, 2011 04:06
JavaScript perf testing loop
var start = new Date();
var count = 1000000;
while(count > 0)
{
// JS to perf test here
count--;
}
@kylebarrow
kylebarrow / example.html
Created June 23, 2011 06:30
Prevent links in standalone web apps opening Mobile Safari
<!DOCTYPE html>
<head>
<title>Stay Standalone</title>
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<script src="stay_standalone.js" type="text/javascript"></script>
</head>
<body>
<ul>
<li><a href="http://google.com/">Remote Link (Google)</a></li>