😠
- https://codeberg.org or https://sourcehut.org
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |