Skip to content

Instantly share code, notes, and snippets.

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

Pedro hates github.com pedro-nonfree

😠
github blocks ppl located near 🇮🇷 🇸🇾 🇨🇺 🇰🇵 🇷🇺 (crimea)
View GitHub Profile
@lierdakil
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)
else
local cont = pandoc.read(el.text)
return { pandoc.Str("$") } .. cont.blocks[1].content .. { pandoc.Str("$") }
end
end
@rbnpi
rbnpi / ps3.py
Last active Nov 2, 2020
Control Sonic PI 3 from a wireless PS3 games controller See video at https://youtu.be/8HcHKyhZaSM
View ps3.py
#!/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