Skip to content

Instantly share code, notes, and snippets.

View naggie's full-sized avatar

Cal Bryant naggie

View GitHub Profile
////////////////////////////////////////////////////////////////////////////////
///
/// Beats-per-minute (BPM) detection routine.
///
/// The beat detection algorithm works as follows:
/// - Use function 'inputSamples' to input a chunks of samples to the class for
/// analysis. It's a good idea to enter a large sound file or stream in smallish
/// chunks of around few kilosamples in order not to extinguish too much RAM memory.
/// - Inputted sound data is decimated to approx 500 Hz to reduce calculation burden,
/// which is basically ok as low (bass) frequencies mostly determine the beat rate.
@naggie
naggie / pedantically_commented_playbook.yml
Created October 10, 2016 08:24 — forked from marktheunissen/pedantically_commented_playbook.yml
Insanely complete Ansible playbook, showing off all the options
---
# ^^^ YAML documents must begin with the document separator "---"
#
#### Example docblock, I like to put a descriptive comment at the top of my
#### playbooks.
#
# Overview: Playbook to bootstrap a new host for configuration management.
# Applies to: production
# Description:
# Ensures that a host is configured for management with Ansible.
We couldn’t find that file to show.

Keybase proof

I hereby claim:

  • I am naggie on github.
  • I am naggie (https://keybase.io/naggie) on keybase.
  • I have a public key ASB9uGHAMZgoCraaRl0O0-rYI5Q3Yzkbnv1k2G_v0l8Bkwo

To claim this, I am signing this object:

@naggie
naggie / install-python3.7.sh
Created November 16, 2021 13:38
install-python3.7.sh
#!/usr/bin/env bash
set -e
VERSION=3.7.12
NAME=Python-${VERSION}
TGZ_FILE=${NAME}.tgz
sudo apt update
sudo apt -y install \
@naggie
naggie / install-python-3.9
Created November 26, 2021 08:44
install python 3.9
#!/usr/bin/env bash
set -e
VERSION=3.9.5
NAME=Python-${VERSION}
TGZ_FILE=${NAME}.tgz
sudo apt update
sudo apt -y install \