Skip to content

Instantly share code, notes, and snippets.

github blocks ppl located near 🇮🇷 🇸🇾 🇨🇺 🇰🇵 🇷🇺 (crimea)

Pedro hates pedro-nonfree

github blocks ppl located near 🇮🇷 🇸🇾 🇨🇺 🇰🇵 🇷🇺 (crimea)
View GitHub Profile
lierdakil / gitlab-math.lua
Last active Oct 25, 2020
Pandoc filter to parse GitLab math
View gitlab-math.lua
function Math(el)
if el.mathtype == "InlineMath" then
if el.text:sub(1,1) == '`' and el.text:sub(#el.text) == '`' then
local text = el.text:sub(2,#el.text-1)
return pandoc.Math(el.mathtype, text)
local cont =
return { pandoc.Str("$") } .. cont.blocks[1].content .. { pandoc.Str("$") }
rbnpi /
Last active Nov 2, 2020
Control Sonic PI 3 from a wireless PS3 games controller See video at
#!/usr/bin/env python3
#ps3 wireless controller interface by Robin Newman July 2017
#converts controller inputs to OSC messages
#which can be output to Sonic Pi 3, running on the local computer, or on an external machine
#rtested with ps3 "afterglow" wireless controller, dongle in Pi usb socket
#needs sudo apt-get install joystick after sudo apt-get update
#also needs sudo pip3 install python-osc
#Version 2. Modified to ensure clean exit on Ubuntu
import subprocess,pygame,sys