Skip to content

Instantly share code, notes, and snippets.

View ahihi's full-sized avatar
🕊️

miranda ahihi

🕊️
View GitHub Profile
@ahihi
ahihi / 1_midside.scd
Last active April 26, 2022 17:03
SuperDirt mid/side mixer module
(
SynthDef("pulu-midside2", { |out, mid=1, side=1, mspan=0.5|
var sig, left, right, midsig, sidesig;
sig = In.ar(out, 2);
left = sig[0];
right = sig[1];
midsig = (left + right)*0.5*mid;
sidesig = (right - left)*0.5*side;
sig = [midsig - sidesig, midsig + sidesig];
sig = DirtPan.ar(sig, 2, mspan.linlin(0, 1, -1, 1));
;;; tidal.el --- Interact with TidalCycles for live coding patterns -*- lexical-binding: t; -*-
;; Copyright (C) 2012 alex@slab.org
;; Copyright (C) 2006-2008 rohan drape (hsc3.el)
;; Author: alex@slab.org
;; Homepage: https://github.com/tidalcycles/Tidal
;; Version: 0
;; Keywords: tools
;; Package-Requires: ((haskell-mode "16") (emacs "24"))
@ahihi
ahihi / sääkissa.py
Created May 16, 2020 14:16
sääkissa
import argparse
from datetime import datetime, timedelta
from functools import reduce
from lxml import etree
import math
import random
import sys
import time
from owslib.wfs import WebFeatureService
@ahihi
ahihi / previous-topic.pl
Created February 20, 2016 19:12
Previous-topic script for Irssi
use strict;
use vars qw($VERSION %IRSSI);
use Irssi;
$VERSION = '1.00';
%IRSSI = (
authors => 'Miranda Kastemaa',
contact => 'miranda@foldplop.com',
name => 'previous-topic',
#!/bin/bash
if [ "$#" != 3 ]; then
echo "Usage: $0 <from> <to> <file>"
exit 1
fi
FROM=$1
TO=$2
FILE=$3
diff --git a/configure.ac b/configure.ac
index 13d74ec..7e09feb 100644
--- a/configure.ac
+++ b/configure.ac
@@ -292,11 +292,16 @@ AC_CHECK_DECL([forkpty],
#include <libutil.h>]])
AC_CHECK_LIB([util], [forkpty], [
- AC_DEFINE([HAVE_FORKPTY],, [Define if you have forkpty().])
+ AC_DEFINE([HAVE_FORKPTY], [1], [Define if you have forkpty().])
@ahihi
ahihi / rainbowsierpinski-plasmatik.py
Last active August 29, 2015 14:23
Rainbow Sierpinski triangles (plasmatik colorx)
SYMBOL = "✿" # change if your font lacks the flower :(
import itertools
import shutil
import sys
import time
import colorsys
from math import atan2, cos, pi, sin, sqrt
w = shutil.get_terminal_size()[0]
n1 = w//2 + 1
@ahihi
ahihi / rainbowsierpinski.py
Last active August 29, 2015 14:23
Rainbow Sierpinski triangles
USE_256 = True
SYMBOL = "✿" # change if your font lacks the flower :(
import itertools
import shutil
import sys
import time
if USE_256: c, p = (9, 208, 11, 64, 27, 5), "38;5;"
else: c, p = (41, 43, 42, 46, 44, 45), ""
w = shutil.get_terminal_size()[0]
n1 = w//2 + 1