Skip to content

Instantly share code, notes, and snippets.

View chromy's full-sized avatar
👩‍🎤

Hector Dearman chromy

👩‍🎤
View GitHub Profile

Click to drag nodes. Dashed links are resolved suits; green links are licensing.

Thomson Reuters published a rather abysmal infographic showing the "bowl of spaghetti" that is current flurry of patent-related suits in the mobile communications industry. So, inspired by a comment by John Firebaugh, I remade the visualization to better convey the network. That company in the center? Yeah, it's the world's largest, so little wonder it has the most incoming suits.

Implemented in D3.js.

@chromy
chromy / .block
Created October 10, 2019 16:28
D3.js v4 Force Directed Graph with Labels
license: gpl-3.0
height: 600
<!doctype html>
<html lang="en-us">
<link rel="shortcut icon" href="data:image/x-icon;," type="image/x-icon">
<body>
<style>
pre {
border: 1px solid #eee;
margin: 10px 0;
font-family: monospace;
config("abseil_config") {
include_dirs = [ "." ]
configs = [ ":public_suppress_warnings_config" ]
}
config("public_suppress_warnings_config") {
cflags = [ "-Wno-deprecated-builtins" ]
}
config("suppress_warnings_config") {
<html>
<head>
</head>
<body>
<script>
function openTrace(arrayBuffer, title) {
const PERFETTO_ORIGIN = "https://ui.perfetto.dev";
import {wgsl, linkBundle, bindBundle, extractBindings, bundleToAttributes} from "@use-gpu/shader/wgsl";
const bundle = bindBundle(wgsl`
struct VertexOut {
@builtin(position) position : vec4f,
@location(0) color : vec4f
}
struct Uniforms {
modelViewProjectionMatrix : mat4x4<f32>,
@chromy
chromy / app.py
Created June 29, 2024 12:34
Taskwarrior minimal web ui
import sys
from tempfile import TemporaryFile
from urllib.parse import urlparse, parse_qs, unquote
from http.server import HTTPServer, BaseHTTPRequestHandler
from .tasks_to_dot import exec_task, to_dot, exec_dot
import html
from tasklib import TaskWarrior
TASK_PAGE = """<!doctype html>
<html lang=en>