Skip to content

Instantly share code, notes, and snippets.

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Keybase proof

I hereby claim:

  • I am eknowles on github.
  • I am klutch (https://keybase.io/klutch) on keybase.
  • I have a public key ASAl5ziXkaFEvePUtNOLiIHdZNvbfEEqnRYJywMdZNvhMwo

To claim this, I am signing this object:

import { PlatformRegion, PlayerSeason, Player, PubgAPI, Season } from 'pubg-typescript-api';
const API_KEY = '';
class Analysis {
public api: PubgAPI;
public playerName: string;
// @ts-ignore
private seasons: Season[];
// @ts-ignore
@eknowles
eknowles / stunjelly.svg
Created December 13, 2017 23:32
stunjelly.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
/*tslint no-cond-assign: "error"*/
// d3-flextree
// Node-link tree diagram using the Reingold-Tilford "tidy" algorithm,
// as improved by A.J. van der Ploeg, 2013, "Drawing Non-layered Tidy
// Trees in Linear Time".
import { hierarchy } from 'd3-hierarchy';
const defaultSeparation = (a, b) => a.parent === b.parent ? 1 : 2;
@eknowles
eknowles / index.html
Last active April 18, 2017 09:47
d3 minimap
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Glance</title>
<script src="https://d3js.org/d3.v4.min.js"></script>
<style>
@eknowles
eknowles / affirmation
Created November 16, 2016 15:53
MuleSoft Contributor Agreement Acceptance by Edward Knowles
I, Edward Knowles, have read and do accept the MuleSoft Contributor Agreement
at http://www.mulesoft.org/legal/contributor-agreement.html
Accepted on Wed Nov 16 2016 15:53:20 GMT+0000 (GMT)
@eknowles
eknowles / gmaps.html
Last active July 28, 2016 08:28
Google Maps JSON Style to Query
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Google Maps JSON Style to Query</title>
<script>
import epub
import os
from PIL import Image, ImageFont, ImageDraw
import StringIO
import math
import re
target_file = "D:\CLIENTS\howbrit\New/final.epub"
image_output_dir = "D:\CLIENTS\howbrit\New/bakedcaptions"
font_size = 18