Skip to content

Instantly share code, notes, and snippets.

View cometsong's full-sized avatar
🥸

Benjamin Leopold cometsong

🥸
  • Sol III
View GitHub Profile
@cometsong
cometsong / resume.json
Last active November 29, 2023 20:37
benjamin.leopold.resume.json
{
"$schema": "https://raw.githubusercontent.com/jsonresume/resume-schema/v1.0.0/schema.json",
"meta": {
"lastModified": "2023-11-27T11:11:11",
"version": "v1.1.2",
"theme": "even",
"themeOptions": {
"colors": {
"background": ["#ffffff", "#191e23"],
"dimmed": ["#f3f4f5", "#23282d"],
@cometsong
cometsong / cProfiling.py
Created September 10, 2020 18:21
cProfiling.py function decorator
#!/usr/bin/env python3
"""cProfile decorator to get printed and optionally dumped statistics."""
import cProfile, pstats
from functools import wraps
def profile(output_file=None, sort_by='cumulative', lines=None,
dump_stats=False, reverse=False, strip_dirs=False):
"""A time profiler decorator.
@cometsong
cometsong / newscript.sh
Last active May 11, 2020 20:06 — forked from aaronNGi/newscript.sh
Boilerplate for new POSIX shell scripts
#!/bin/sh
prog_name=${0##*/}
version=0.1
version_text="Boilerplate for new scripts v$version";
options="h q v V d " # basic opts
options+="o: " # script specifics
help_text="Usage: $prog_name [-o <text>] [-hqvV] [<file>]...
${version_text}

Keybase proof

I hereby claim:

  • I am cometsong on github.
  • I am cometsong (https://keybase.io/cometsong) on keybase.
  • I have a public key ASDJzspdIrn_ifvz6yOE5ngrWrS7pOSff-BeqBDjyZHOjAo

To claim this, I am signing this object: