Skip to content

Instantly share code, notes, and snippets.

View h3h's full-sized avatar

Bradford Fults h3h

View GitHub Profile
@h3h
h3h / maxLocalStorage.js
Last active December 9, 2015 00:08
Fill up localStorage completely on a given page.
var DATA = [
'0',
'0000000000',
'0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
];
var chunkSize, i, printFactor;
var chunkIndex = (DATA.length - 1);
while (chunkIndex >= 0) {
try {
chunkSize = DATA[chunkIndex].length;
@h3h
h3h / .gitconfig
Created December 11, 2015 20:26
Git Config
[alias]
amend = commit --amend
co = checkout
st = status
cp = cherry-pick
# edit config (global, local)
ec = !vim ~/.gitconfig
ecl = !vim .git/config
@h3h
h3h / 01.elm
Last active December 18, 2016 06:22
Evolving Elm Validation Code
import Html exposing (..)
import Html.Attributes exposing (..)
import Html.Events exposing (onInput)
import List
import Regex exposing (regex)
main =
Html.beginnerProgram
{ model = model
@h3h
h3h / 01.elm
Last active September 25, 2017 08:06
Elm Tutorial Roll Dice with SVG – Start here: http://elm-lang.org/examples/random
module Main exposing (..)
import Html exposing (..)
import Html.Attributes
import Html.Events exposing (..)
import List
import Random
import Svg exposing (..)
import Svg.Attributes exposing (..)