Skip to content

Instantly share code, notes, and snippets.

View wiseman's full-sized avatar

John Wiseman wiseman

View GitHub Profile
/*
* Copyright 2018 Uber Technologies, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2" xmlns:gx="http://www.google.com/kml/ext/2.2"><Folder ><Folder ><name >ACA782 track</name>
<Placemark ><name >ACA782</name>
<Style ><LineStyle ><color >ff1c1ae3</color>
<width >4</width>
</LineStyle>
<IconStyle ><Icon ><href >http://maps.google.com/mapfiles/kml/shapes/airports.png</href>
</Icon>
</IconStyle>
</Style>
@wiseman
wiseman / clusters.txt
Created January 12, 2024 23:38
AISDK Destinations for 2023-12-13.
Cluster 2: Danish Routes & Ports in Baltic Region
- SKAGEN
- ESBJERG
- OMOE-STIGS-AGERSOE
- AGERSOE-STIGS-OMOE
- SPODSBJERG
- JYSKE REV
- SPODSBJERG<>TAARS
- ROUTE AEROESK-SVENDB
- TAARS<-->SPODSBJERG
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2" xmlns:gx="http://www.google.com/kml/ext/2.2"><Folder ><Folder ><name >65-10364 track</name>
<Placemark ><name >65-10364</name>
<Style ><LineStyle ><color >ff1c1ae3</color>
<width >4</width>
</LineStyle>
<IconStyle ><Icon ><href >http://maps.google.com/mapfiles/kml/shapes/airports.png</href>
</Icon>
</IconStyle>
</Style>
@wiseman
wiseman / notamai.py
Last active January 10, 2024 22:48
Using the instructor library to decode NOTAMs
import datetime
import json
import sys
from typing import List, Optional
from geographiclib.constants import Constants
from geographiclib.geodesic import Geodesic
import instructor
from openai import OpenAI
from pydantic import BaseModel
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2" xmlns:gx="http://www.google.com/kml/ext/2.2"><Folder ><Folder ><name >N353MV track</name>
<Placemark ><name >N353MV</name>
<Style ><LineStyle ><color >ff1c1ae3</color>
<width >4</width>
</LineStyle>
<IconStyle ><Icon ><href >http://maps.google.com/mapfiles/kml/shapes/airports.png</href>
</Icon>
</IconStyle>
</Style>
@wiseman
wiseman / adsb_notams.ipynb
Created November 7, 2023 23:26
ADS-B/TIS-B/FIS-B/ADS-R outage analysis
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

INT. JURASSIC PARK TOUR VEHICLE – DAY

The rain pours down on the windshield as DR. IAN MALCOLM, a mathematician with a penchant for chaos theory, sits across from DR. ELLIE SATTLER, a paleobotanist. Malcolm, with a twinkle in his eye, is in the middle of a conversation about artificial intelligence.

DR. IAN MALCOLM:
(charmingly)
Imagine, if you will, a creature born not of flesh and blood, but from the very fabric of our digital world. Ashbot, its name, a charming conversationalist spawned from the primordial soup of IRC chats.

DR. ELLIE SATTLER:
(intrigued)\

<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2" xmlns:gx="http://www.google.com/kml/ext/2.2"><Folder ><Folder ><name >EJA699 track</name>
<Placemark ><name >EJA699</name>
<Style ><LineStyle ><color >ff1c1ae3</color>
<width >4</width>
</LineStyle>
<IconStyle ><Icon ><href >http://maps.google.com/mapfiles/kml/shapes/airports.png</href>
</Icon>
</IconStyle>
</Style>
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2" xmlns:gx="http://www.google.com/kml/ext/2.2"><Folder ><Folder ><name >FDX1432 track</name>
<Placemark ><name >FDX1432</name>
<Style ><LineStyle ><color >ff1c1ae3</color>
<width >4</width>
</LineStyle>
<IconStyle ><Icon ><href >http://maps.google.com/mapfiles/kml/shapes/airports.png</href>
</Icon>
</IconStyle>
</Style>