This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM alpine:latest | |
# Config | |
ENV GO111MODULE=on | |
ENV CGO_ENABLED=0 | |
ARG GOOS="linux" | |
ARG GOARCH="arm64" | |
# Install | |
RUN apk --update --no-cache add git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
from FlightRadar24 import FlightRadar24API | |
from flydenity import Parser as FlydenityParser | |
import airportsdata | |
from bs4 import BeautifulSoup | |
import requests | |
from pprint import pprint | |
import time | |
import math | |
import folium |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sounddevice as sd | |
import numpy as np | |
import tensorflow as tf | |
import queue | |
from collections import defaultdict , deque | |
import time | |
# https://storage.googleapis.com/mediapipe-models/audio_classifier/yamnet/float32/latest/yamnet.tflite | |
# https://github.com/tensorflow/models/blob/master/research/audioset/yamnet/yamnet.py | |
# https://research.google.com/audioset/ontology/index.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
from pprint import pprint | |
import librosa | |
import tensorflow as tf | |
# https://storage.googleapis.com/mediapipe-models/audio_classifier/yamnet/float32/latest/yamnet.tflite | |
# https://github.com/tensorflow/models/blob/master/research/audioset/yamnet/yamnet.py | |
# https://research.google.com/audioset/ontology/index.html | |
# https://storage.googleapis.com/mediapipe-tasks/audio_classifier/yamnet_label_list.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import sys | |
import time | |
import json | |
import requests | |
from pprint import pprint | |
import mimetypes | |
from tqdm import tqdm | |
from concurrent.futures import ThreadPoolExecutor | |
from box import Box |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import requests | |
from pprint import pprint | |
from box import Box | |
from pathlib import Path | |
import shutil | |
import json | |
from tqdm import tqdm | |
from concurrent.futures import ThreadPoolExecutor | |
import urllib.parse |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo pkill -9 OneDrive | |
sudo rm -rf /Applications/OneDrive.app/ | |
sudo rm /Library/LaunchAgents/com.microsoft.OneDriveStandaloneUpdater.plist | |
sudo rm /Library/LaunchDaemons/com.microsoft.OneDriveStandaloneUpdaterDaemon.plist | |
sudo rm /Library/LaunchDaemons/com.microsoft.OneDriveUpdaterDaemon.plist | |
sudo rm -rf /Library/Logs/Microsoft/OneDrive | |
sudo rm /private/var/db/receipts/com.microsoft.OneDrive-mac.bom |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
( async ()=> { | |
function sleep( ms ) { return new Promise( resolve => setTimeout( resolve , ms ) ); } | |
function wait_on_element( query_selector ) { | |
return new Promise( function( resolve , reject ) { | |
try { | |
let READY_CHECK_INTERVAL = setInterval( function() { | |
let item = document.querySelectorAll( query_selector ); | |
if ( item ) { | |
if ( item[ 0 ] ) { | |
clearInterval( READY_CHECK_INTERVAL ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"math" | |
"github.com/gordonklaus/portaudio" | |
) | |
const sample_rate = 44100 | |
const buffer_size = 64 // Number of samples per buffer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"context" | |
"fmt" | |
"os" | |
"os/signal" | |
"path" | |
"sync" | |
"syscall" |
NewerOlder