Skip to content

Instantly share code, notes, and snippets.

View cdfuller's full-sized avatar

Cody Fuller cdfuller

  • Chicago, Illinois
View GitHub Profile
@cdfuller
cdfuller / 0_reuse_code.js
Created January 30, 2017 00:09
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@cdfuller
cdfuller / index.pug
Created August 19, 2017 19:06
(SO) Playing with Evolutionary Algorithms
script(type="text/x-template", id="cellCard-template")
article.card__inner-cell
.card__type Cell
.card__name {{ cell.name }}
.quote__target {{ cell.target && cell.target.__proto__.constructor.name}}
#renderingContainer
#monitoringContainer
@cdfuller
cdfuller / download-heatmaps.py
Created November 10, 2023 17:57 — forked from kylemcdonald/download-heatmaps.py
Download ADSB Exchange data from the heatmap endpoint.
import argparse
import datetime
import urllib3
import os
from ratelimit import limits, sleep_and_retry
from tqdm import tqdm
import random
import time
domain = "globe.adsbexchange.com"
@cdfuller
cdfuller / parse-heatmap.py
Created November 10, 2023 17:58 — forked from kylemcdonald/parse-heatmap.py
Parse the ADSBX heatmap files.
import numpy as np
import datetime
def point_to_str(point):
hex = format(point & 0xFFFFFF, "06x")
hex = ("~" + hex) if (point & 0x1000000) else hex
return hex