Skip to content

Instantly share code, notes, and snippets.

View SpotlightKid's full-sized avatar

Christopher Arndt SpotlightKid

View GitHub Profile
@SpotlightKid
SpotlightKid / jdutil.py
Last active July 21, 2024 15:31 — forked from jiffyclub/jdutil.py
Functions for converting dates to/from JD and MJD
"""
Functions for converting dates to/from JD and MJD. Assumes dates are historical
dates, including the transition from the Julian calendar to the Gregorian
calendar in 1582. No support for proleptic Gregorian/Julian calendars.
:Author: Matt Davis
:Website: http://github.com/jiffyclub
"""
@SpotlightKid
SpotlightKid / dspD8.ino
Created February 20, 2016 21:02 — forked from anonymous/dspD8.ino
The dsp-D8 drum synthesizer
// dsp-D8 Drum Chip (c) DSP Synthesizers 2015
// Free for non commercial use
// http://janostman.wordpress.com
#include <avr/interrupt.h>
#include <avr/io.h>
#include <avr/pgmspace.h>
// dsp-L8 Latin Perc Chip (c) DSP Synthesizers 2015
// Free for non commercial use
// http://janostman.wordpress.com
#include <avr/interrupt.h>
#include <avr/io.h>
#include <avr/pgmspace.h>
@SpotlightKid
SpotlightKid / O2.ino
Created February 20, 2016 20:53 — forked from anonymous/O2.ino
// O2 Minipops rhythm box (c) DSP Synthesizers 2016
// Free for non commercial use
// http://janostman.wordpress.com
#include <avr/interrupt.h>
#include <avr/io.h>
#include <avr/pgmspace.h>
@SpotlightKid
SpotlightKid / README.md
Last active September 22, 2017 07:47 — forked from yloiseau/watson-notify
Watson desktop notifier (Python)

Requirements

Indirect dependencies in parentheses:

  • python-notify2 (python-dbus, python-gi)
  • python-arrow (python-dateutil)
  • Watson (click)

Installation

@SpotlightKid
SpotlightKid / synth.cpp
Created January 17, 2016 21:21 — forked from genericpenguin/synth.cpp
Arduino Synth
/* Arduino Synth from
https://janostman.wordpress.com/2016/01/15/how-to-build-your-very-own-string-synth/
*/
#include <avr/interrupt.h>
#include <avr/io.h>
#include <avr/pgmspace.h>
#ifndef cbi
#define cbi(sfr, bit) (_SFR_BYTE(sfr) &= ~_BV(bit))
#endif
#ifndef sbi
@SpotlightKid
SpotlightKid / cmdline.py
Last active February 9, 2016 15:55
Logging in Python command line scripts
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import argparse
import logging
import sys
log = logging.getLogger(__name__)
def main(args=None):
@SpotlightKid
SpotlightKid / clone-gists.py
Last active May 6, 2025 03:23
Clone all gists of GitHub username given on the command line.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Clone all gists of GitHub user with given username.
Clones all gist repos into the current directory, using the gist id as the
directory name. If the directory already exists as a git repo, try to perform a
'git pull' in it.
"""
@SpotlightKid
SpotlightKid / udpserver.py
Last active November 23, 2015 15:21
A simple single-connection, blocking UDP echo server, which listens on IPv4 and IP6 simultaneously
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# udpserver.py
#
"""A minimal test UDP (echo) server supporting IPv4 and IPv6."""
import argparse
import logging
import socket
@SpotlightKid
SpotlightKid / bobp-python.md
Last active December 2, 2015 20:39 — forked from sloria/bobp-python.md
A "Best of the Best Practices" (BOBP) guide to developing in Python.

The Best of the Best Practices (BOBP) Guide for Python

A "Best of the Best Practices" (BOBP) guide to developing in Python.

In General

Values

  • "Build tools for others that you want to be built for you." - Kenneth Reitz
  • "Simplicity is always better than functionality." - Pieter Hintjens