Skip to content

Instantly share code, notes, and snippets.

import glob
import sys
import os
import shutil
files = glob.glob("in/*.wav")
if files == []:
print("No files found in in/*.wav")
sys.exit()
@vaporstack
vaporstack / strip_border.py
Created September 5, 2018 19:57 — forked from thobbs/strip_border.py
Strip the border from an SVG for plotting through Inkscape
import sys
import lxml.etree as le
def main(filename):
with open(filename, 'r+b') as f:
doc = le.parse(f)
# strip border strokes
for elem in doc.xpath('//*[attribute::style]'):
if 'stroke:none' in elem.attrib['style']:
// don't use this I'm just messing around with the moment sdk
(function (Moment) {
var Timeline = Moment.Timeline,
Effect = Moment.Effect,
Vibration = Moment.Vibration;
var period = 500;

Keybase proof

I hereby claim:

  • I am vaporstack on github.
  • I am vaporstack (https://keybase.io/vaporstack) on keybase.
  • I have a public key ASD2iEVuw7IfcXXAH89fZ2TWgs2D5sztGtIoKUTTrW55-Qo

To claim this, I am signing this object: