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] | |
name = "extract-meetings" | |
version = "0.1.0" | |
edition = "2021" | |
[dependencies] | |
anyhow = "1" | |
regex = "1" |
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
""" | |
Fixes erroneous elevations in GPX tracks. | |
""" | |
import sys | |
import gpxpy | |
import gpxpy.gpx | |
file_name = sys.argv[1] |
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
[ | |
{ | |
"Plan": { | |
"Node Type": "ModifyTable", | |
"Operation": "Insert", | |
"Relation Name": "build_jobs", | |
"Alias": "build_jobs", | |
"Startup Cost": 0.00, | |
"Total Cost": 0.02, | |
"Plan Rows": 1, |
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 racket | |
#lang racket | |
(require racket/date) | |
(require net/http-client) | |
(define (print-status now online [reason #f]) | |
(if reason | |
(printf "date=~a online=~s reason=~s\n" | |
now |
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
# -*- mode: sh -*- | |
# This implements automatic vertical stacking of windows in Yabai, like so: | |
# +------+ +---+--+ +---+--+ | |
# | | | | | | | | | |
# | | => | | | => | +--+ | |
# | | | | | | | | | |
# +------+ +---+--+ +---+--+ | |
yabai -m config auto_balance off |
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
// ==UserScript== | |
// @name Jisho.org copy with reading | |
// @namespace https://jisho.org/search/* | |
// @version 0.4 | |
// @description Quickly copies a word with the reading to the clipboard | |
// @author Robin Schroer (originally Jace Sangco) | |
// @match https://jisho.org/search/* | |
// @grant none | |
// ==/UserScript== | |
var meaningSeperator = " "; |
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
~/build/lang $ cat tests/args.lisp | |
;; This tests that we can receive arguments passed to the binary. | |
(c/print_value argv) | |
(c/print_value "\n") | |
~/build/lang $ ./out foo bar baz | |
Nebula initalised. | |
(/Users/sulami/build/lang/out (foo (bar (baz nil)))) |
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 llvmlite.ir as ir | |
import llvmlite.binding as llvm | |
from ctypes import CFUNCTYPE | |
def main(): | |
m = ir.Module() | |
func_ty = ir.FunctionType(ir.VoidType(), []) | |
i32_ty = ir.IntType(32) | |
func = ir.Function(m, func_ty, name="printer") |
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
query=$1 | |
result=$( dc -e "$query pq" 2>&1 | tr -d '\\' | head -1 ) | |
echo '{"items": [' | |
echo '{"title":' | |
echo "\"${result}\"" | |
echo ',' | |
echo '"subtitle": "Copy result to clipboard",' | |
echo '"arg":' |
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 racket | |
#lang racket | |
(require threading) | |
(define (complement f) | |
(位 args | |
(not (apply f args)))) |
NewerOlder