Skip to content

Instantly share code, notes, and snippets.

View allenh1's full-sized avatar

Hunter L. Allen allenh1

  • Apex.AI
  • Media, PA
View GitHub Profile
@allenh1
allenh1 / get_stats.py
Created November 7, 2021 17:07
Get GitHub Stats
from github import Github
import time
import os
token = os.getenv('GITHUB_API_TOKEN')
if not token:
print('Please create a GitHub token for use with the API')
quit()
@allenh1
allenh1 / bundle.sh
Created September 2, 2022 19:09
Bundle so files for an exe
#!/bin/bash
if [[ -z $1 ]]; then
echo "error: please provide an executable"
exit 1
fi
out_dir="$(basename ${1}).bundled"
mkdir -p "${out_dir}"
# ldd gives the SO files the exe links with
@allenh1
allenh1 / privacy_policy.html
Last active September 13, 2022 00:53
reef moonshiners privacy policy
No user data is collected, stored, distributed, or inferred by this app.
@allenh1
allenh1 / sl-mode.el
Last active November 1, 2024 13:35
sl major mode
;;; sl-mode.el --- major mode for sl -*- lexical-binding: t; -*-
;; inspired by https://www.omarpolo.com/post/writing-a-major-mode.html
(eval-when-compile
(require 'rx))
(defconst sl--font-lock-defaults
(let ((fn-keywords '("defun" "extern"))
(keywords '("defun" "for" "in" "set" "lambda" "let" "cons" "car" "cdr" "and" "or" "xor" "not" "extern" "if"))
(types '("string" "int" "bool" "float" "list")))
`(