Skip to content

Instantly share code, notes, and snippets.

View pedro-nonfree's full-sized avatar
😠
github blocks ppl located near 🇮🇷 🇸🇾 🇨🇺 🇰🇵 🇷🇺 (crimea)

Pedro hates github.com pedro-nonfree

😠
github blocks ppl located near 🇮🇷 🇸🇾 🇨🇺 🇰🇵 🇷🇺 (crimea)
  • Humanity
  • As far as possible from Microsoft
View GitHub Profile
@lierdakil
lierdakil / gitlab-math.lua
Last active April 9, 2023 08:15
Pandoc filter to parse GitLab math
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)
else
local cont = pandoc.read(el.text)
return { pandoc.Str("$") } .. cont.blocks[1].content .. { pandoc.Str("$") }
end
end
@rbnpi
rbnpi / ps3.py
Last active November 2, 2020 00:15
Control Sonic PI 3 from a wireless PS3 games controller See video at https://youtu.be/8HcHKyhZaSM
#!/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