Skip to content

Instantly share code, notes, and snippets.

View aaronkyle's full-sized avatar

Aaron Kyle Dennis aaronkyle

View GitHub Profile
@aaronkyle
aaronkyle / index.html
Created May 7, 2018 19:45 — forked from d3noob/.block
Interactive Linux process tree using d3.js
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Linux Process Tree</title>
<style>
div.tooltip {
@aaronkyle
aaronkyle / index.html
Created May 7, 2018 19:45 — forked from d3noob/.block
Interactive Linux process tree using d3.js
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Linux Process Tree</title>
<style>
div.tooltip {
{
"name": "\u3010\u7405\u90aa\u768b\u865e\u3011\u738b\u5409 (\u5b50\u967d)",
"id": "6000000023701675936",
"gender": "male",
"children": [
{
"name": "\u3010\u7405\u90aa\u768b\u865e\u3011\u738b\u99ff",
"id": "6000000054108868046",
"gender": "male",
"children": [
@aaronkyle
aaronkyle / .block
Created May 13, 2018 13:05 — forked from mbostock/.block
Collapsible Tree
license: gpl-3.0
@aaronkyle
aaronkyle / data.json
Created May 13, 2018 18:31 — forked from jdarling/data.json
D3 MindMap
{
"name": "Root",
"children": [
{
"name": "Branch 1",
"children": [
{"name": "Leaf 3"},
{"name": "Leaf 4"}
]
},
@aaronkyle
aaronkyle / IndexedDB101.js
Created May 16, 2018 10:43 — forked from JamesMessinger/IndexedDB101.js
Very Simple IndexedDB Example
// This works on all devices/browsers, and uses IndexedDBShim as a final fallback
var indexedDB = window.indexedDB || window.mozIndexedDB || window.webkitIndexedDB || window.msIndexedDB || window.shimIndexedDB;
// Open (or create) the database
var open = indexedDB.open("MyDatabase", 1);
// Create the schema
open.onupgradeneeded = function() {
var db = open.result;
var store = db.createObjectStore("MyObjectStore", {keyPath: "id"});

Last updated: 2017-03-18

Searching for Files

Find images in a directory that don't have a DateTimeOriginal

exiftool -filename -filemodifydate -createdate -r -if '(not $datetimeoriginal) and $filetype eq "JPEG"' .

###Output photos that don't have datetimeoriginal to a CSV### Note this can take a long time if you have a lot of jpgs

@aaronkyle
aaronkyle / README.md
Created May 20, 2018 00:29 — forked from jeinarsson/README.md
pathSankey - Minimal example

pathSankey minimal example

Visualization of paths as flows through layers of nodes. The figure is discussed in detail in a blog post.

A little more worked example of the re-usable chart is in a neighbouring gist.

@aaronkyle
aaronkyle / .block
Created May 20, 2018 00:29 — forked from mbostock/.block
Sankey Diagram
border: no
license: gpl-3.0
@aaronkyle
aaronkyle / index.html
Created May 20, 2018 00:30 — forked from d3noob/.block
Sankey from csv with d3.js
<!DOCTYPE html>
<meta charset="utf-8">
<title>SANKEY Experiment</title>
<style>
.node rect {
cursor: move;
fill-opacity: .9;
shape-rendering: crispEdges;
}