Skip to content

Instantly share code, notes, and snippets.

View dustinboston's full-sized avatar

Dustin Boston dustinboston

View GitHub Profile
@dustinboston
dustinboston / _index.html
Last active October 29, 2019 00:13
Poor Man's React
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Poor Man's React</title>
<link rel="stylesheet" href="./css/styles.css" />
</head>
<body>
@dustinboston
dustinboston / fastest_fizzbuzz.js
Created September 5, 2013 22:22
The fastest JavaScript fizzbuzz I've seen. Ported from https://gist.github.com/ggilder/2893724, which also explains what's going on.
var acc = 810092048;
var aMillion = 1000000;
var number = 1;
var log = function(value) {
console.log(value);
};
function bitwiseFizzBuzz(i) {
var c = acc & 3, a = 'fizzbuzz';