Skip to content

Instantly share code, notes, and snippets.

View kadamwhite's full-sized avatar

K Adam White kadamwhite

View GitHub Profile
[{
"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",
{
"name": "temp",
"version": "1.0.0",
"description": "",
"main": "undo-redo-demo.js",
"author": "",
"license": "MIT",
"scripts": {
"start": "node undo-redo-demo"
},
@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;
@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
'use strict';
var opn = require( 'opn' );
var prompt = require('prompt');
var OAuth = require( 'oauth' );
var oauth = new OAuth.OAuth(
// reqURL
'http://wpapi.loc/oauth1/request',
// accessURL
@kadamwhite
kadamwhite / movieify.js
Last active September 1, 2016 12:54
Take a directory of images output by https://github.com/jcjohnson/neural-style and convert them to a mp4
/*
RESOURCES
ffmpeg and libvpx with Homebrew https://gist.github.com/clayton/6196167
ffmpeg docs http://ffmpeg.org/ffmpeg.html
http://robotics.usc.edu/~ampereir/wordpress/?p=702
Compat https://developer.mozilla.org/en-US/docs/Web/HTML/Supported_media_formats
https://en.support.wordpress.com/accepted-filetypes/
http://easywpguide.com/wordpress-manual/adding-images-other-media/inserting-video-audio-or-other-file-type/
"Supported A/V formats include M4a, MP4, OGG, WebM, FLV, WMV, MP3, WAV and WMA files."
*/
@kadamwhite
kadamwhite / tile-and-recompose.js
Last active September 12, 2016 19:49
Take an input image, break it into tiles, then recompose the tiles into a new image (requires "convert" from image magick)
var spawn = require( 'child_process' ).spawn;
var exec = require( 'child_process' ).exec;
var path = require( 'path' );
var fs = require( 'fs' );
/**
* Get the list of files in a directory, either as a list of file and subdir
* names or a list of absolute file system paths
*
* @private
@kadamwhite
kadamwhite / access-vscode-extension-list.md
Last active May 8, 2019 03:08
Visual Studio Code Preferences

From Joe M, "you can get your current extensions list by typing code --list-extensions in CLI" His list:

alefragnani.Bookmarks
annsk.alignment
dbaeumer.vscode-eslint
donjayamanne.githistory
eamodio.gitlens
EditorConfig.EditorConfig
eg2.vscode-npm-script