Skip to content

Instantly share code, notes, and snippets.

View kadamwhite's full-sized avatar

K Adam White kadamwhite

View GitHub Profile
@kadamwhite
kadamwhite / GAME_MASTER_POKEMON_v0_2.tsv
Created July 17, 2016 17:54 — forked from anonymous/GAME_MASTER_POKEMON_v0_2.tsv
Pokemon from GAME_MASTER protobuf file v0.2 in a .tsv
We can make this file beautiful and searchable if this error is corrected: It looks like row 3 should actually have 27 columns, instead of 12 in line 2.
PkMn BaseStamina BaseAttack BaseDefense Type1 Type2 BaseCaptureRate BaseFleeRate CollisionRadiusM CollisionHeightM CollisionHeadRadiusM MovementType MovementTimerS JumpTimeS AttackTimerS QuickMoves CinematicMoves AnimTime Evolution EvolutionPips PokemonClass PokedexHeightM PokedexWeightKg HeightStdDev WeightStdDev FamilyId CandyToEvolve
1 90 126 126 HoloPokemonType.POKEMON_TYPE_GRASS HoloPokemonType.POKEMON_TYPE_POISON 0.1599999964237213 0.10000000149011612 0.3815000057220459 0.6539999842643738 0.27250000834465027 HoloPokemonMovementType.POKEMON_ENC_MOVEMENT_JUMP 10.0 1.149999976158142 29.0 d601dd01 5a3b76 6d56d53fdaac2a3f6d56d53f93a9ea3f0000000036ab0a403333b33fbfbbbb3f 02 HoloPokemonClass.POKEMON_CLASS_NORMAL 1 0.699999988079071 6.900000095367432 0.08749999850988388 0.862500011920929 HoloPokemonFamilyId.V0001_FAMILY_BULBASAUR 25
2 120 156 158 HoloPokemonType.POKEMON_TYPE_GRASS HoloPokemonType.POKEMON_TYPE_POISON 0.07999999821186066 0.07000000029802322 0.3187499940395355 0.637499988079071 0.2549999952316284 H
@kadamwhite
kadamwhite / index.html
Last active July 12, 2016 18:54
A performance test of different method invocation techniques, and the use or non-use of arguments
<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
</head>
<body>
<script>
var seeded = false;
var lcg = (function() {
var m = 4294967296,a = 1664525,c = 1013904223,seed, z;
{
"name": "temp",
"version": "1.0.0",
"description": "",
"main": "undo-redo-demo.js",
"author": "",
"license": "MIT",
"scripts": {
"start": "node undo-redo-demo"
},
[{
"id": 1178,
"date": "2013-01-11T20:22:19",
"date_gmt": "2013-01-12T03:22:19",
"guid": {
"rendered": "http:\/\/wptest.io\/demo\/?p=919"
},
"modified": "2013-01-11T20:22:19",
"modified_gmt": "2013-01-12T03:22:19",
"slug": "markup-html-tags-and-formatting",
[{
"id": 1178,
"date": "2013-01-11T20:22:19",
"date_gmt": "2013-01-12T03:22:19",
"guid": {
"rendered": "http:\/\/wptest.io\/demo\/?p=919"
},
"modified": "2013-01-11T20:22:19",
"modified_gmt": "2013-01-12T03:22:19",
"slug": "markup-html-tags-and-formatting",
@kadamwhite
kadamwhite / crockford-quote.md
Last active December 3, 2015 18:44
Inheritance Discussion

I have been writing JavaScript for 14 years now, and I have never once found need to use an uber function. The super idea is fairly important in the classical pattern, but it appears to be unnecessary in the prototypal and functional patterns. I now see my early attempts to support the classical model in JavaScript as a mistake. [Ed.: Emphasis Added]

~ Douglas Crockford, in addendum to Classical Inheritance in JavaScript

@kadamwhite
kadamwhite / routes.php
Created November 15, 2015 21:47
WordPress routes with no backing content page: RFCodeReview
<?php
/*
THE GOAL:
Programmatically specify routes critical to the successful functioning
of the application, without any requirement for pages to be set up that
use specific templates or have specific names
THIS APPROACH:
@kadamwhite
kadamwhite / data-cameraCount.csv
Created September 30, 2015 12:44
Processing line chart
date cameraCount
20120701 1
20130315 2
20130605 1
20130708 2
20131229 3
20140316 4
20140729 5
20150223 6
20150426 5
@kadamwhite
kadamwhite / accessions-by-dept-by-year.csv
Last active September 18, 2015 01:52
DataVis w/ D3 Week 4: axes & story
year Architecture & Design Drawings Film Fluxus Collection Media and Performance Art Painting & Sculpture Photography Prints & Illustrated Books total untitled
1929 0 1 0 0 0 0 0 8 9 0
1930 0 2 0 0 0 5 0 1 8 0
1931 0 0 0 0 0 2 0 1 3 0
1932 2 3 0 0 0 1 1 10 17 0
1933 0 0 0 0 0 2 92 2 96 0
1934 45 19 0 0 0 20 2 168 254 0
1935 23 306 4 0 0 22 24 33 412 182
1936 88 27 4 0 0 25 0 4 148 0
1937 193 25 1 0 0 35 57 6 317 6