Skip to content

Instantly share code, notes, and snippets.

View tavurth's full-sized avatar

Will tavurth

  • Somewhere around
View GitHub Profile
@tavurth
tavurth / spectro_analysis.ipynb
Last active December 16, 2024 16:18
Spectrogram analysis and processing of Titan Graveyard Signals
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import os
import re
import networkx as nx
def build_class_graph(directory):
"""Builds a directed acyclic graph of class dependencies."""
# Create a graph to store the dependencies
graph = nx.DiGraph()
dependencies = {}
@tavurth
tavurth / Promise.all.gd
Created April 9, 2023 14:06
Promise.all for Godot 4
class_name Promise
extends Resource
signal completed(results)
var _funcs: Array[Callable]
var _completed := false
var _results: Dictionary
@tavurth
tavurth / FTD.ipynb
Last active February 17, 2021 09:04
Failure to deliver for GME and AMC
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tavurth
tavurth / zero_approach.ipynb
Created August 15, 2020 07:45
Zero approach in python pandas
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tavurth
tavurth / FuzzyTesting.js
Last active September 6, 2020 18:52
Fuzzy Testing
/**
* Original code, found in an inherited project
*/
function original(item, currentLocale) {
const { message } = item;
if (!message.translation) return true;
if (
message.translation.lastTranslated !== undefined &&
const inputString = '(console.log (add 3 5 8 123 (minus 32 2 2 2)))';
const commands = {
'console.log': console.log,
inc(a, b) {
return Number.parseInt(a) + Number.parseInt(b);
},
dec(a, b) {
return Number.parseInt(a) - Number.parseInt(b);
},
// foo(foo(bar))blim => foobaroofblim
function reverse(string) {
return string
.split('')
.reverse()
.join('');
}
function checkRecursion(input) {
class Forbidden extends Error {
constructor(message, status = 403) {
super(message);
this.status = status;
}
getStatus() {
return Number.parseInt(this.status);
}
@tavurth
tavurth / cl-sdl2.lisp
Last active October 9, 2017 22:39
cl-sdl2 test suite
(ql:quickload :sdl2/examples)
(ql:quickload :glkit-examples)
(ql:quickload :sdl2kit-examples)
(defpackage :test
(:use :cl)
(:export :*is-new* :try-call))
(in-package :test)
(use-package :kit.gl.test)