Skip to content

Instantly share code, notes, and snippets.

View hecanjog's full-sized avatar

hecanjog hecanjog

View GitHub Profile
@raphlinus
raphlinus / not_too_clever.md
Created June 23, 2022 00:50
Translation of grugbrain.dev into English

The not-too-clever programmer

This is a translation of grugbrain.dev into clear English. All props to the original author.

Introduction

This is a collection of thoughts on software development, originally written by an pseudonymous author styling themselves the "grug brain developer," but then translated into clear English by Raph Levien.

I am not an extremely smart developer, but I have many years of experience and have learned some things, although still don't know everything.

@endolith
endolith / helpful_plots.py
Last active November 23, 2024 18:09
helpful plots python
"""
Helpful plots for signal processing.
Created on Fri Jan 08 20:19:58 2016
"""
import matplotlib.pyplot as plt
import numpy as np
from numpy.fft import rfft, rfftfreq
from scipy.signal import get_window
@GeekBrony
GeekBrony / radio_system.liq
Last active March 10, 2025 18:29
Liquidsoap Radio System
###########################################################################################
# Liquidsoap Radio System - built by GeekBrony, based from Liquidsoap. #
###########################################################################################
# Primary Features:
# - AutoDJ that crossfades between songs and has a 1/10 chance of landing on a Station ID/Jingle/Ad.
# - AutoDJ also selects tracks from "High Priority", "Low Priority" and "New Songs" playlists randomly.
# - Live Shows (that automatically dump to a directory)
# - Mic to speak over the stream.
# - Requests via Telnet/Web Interface, which have a 80-90% chance of queuing up when a song ends.
@kastnerkyle
kastnerkyle / speech.py
Last active July 23, 2020 06:52
Code for speech and audio experiments. - DEPRECATED! See audio_tools.py
# License: BSD 3-clause
# Authors: Kyle Kastner,
# Pierre Luc Carrier
import numpy as np
from numpy.lib.stride_tricks import as_strided
import scipy.signal as sg
from scipy import linalg, fftpack
from numpy.testing import assert_almost_equal
@endolith
endolith / readme.md
Last active January 28, 2023 05:40
Just intonation classes for music theory experiments in Python
@astrojuanlu
astrojuanlu / bezier_curves.py
Last active September 25, 2023 13:09
Interactive Bézier curves with Python using just matplotlib.
import matplotlib
matplotlib.use('webagg')
import numpy as np
from scipy.special import binom
import matplotlib.pyplot as plt
from matplotlib.lines import Line2D
program mola
implicit none
logical done
do while (.not. done)
write(*, 10)
end do
@bennylope
bennylope / gaussian_replacement.py
Created May 18, 2012 20:58
Quick example of creating a recolorized (one-color) image
# Replacement for ImageFilter.GaussianBlur which always sets the
# blur radius to the default of 2.
# Code from http://aaronfay.ca/content/post/python-pil-and-gaussian-blur/
import ImageFilter
class MyGaussianBlur(ImageFilter.Filter):
name = "GaussianBlur"
@jbenet
jbenet / current_utc_time.c
Created July 17, 2011 16:17
work around lack of clock_gettime in os x
/*
author: jbenet
os x, compile with: gcc -o testo test.c
linux, compile with: gcc -o testo test.c -lrt
*/
#include <time.h>
#include <sys/time.h>
#include <stdio.h>
{
"boxes" : [ {
"box" : {
"maxclass" : "comment",
"text" : "by hecanjog.com (but I ripped off all the good parts from cycling74.com/forums/)",
"linecount" : 3,
"fontname" : "Arial",
"numinlets" : 1,
"numoutlets" : 0,
"fontsize" : 12.0,