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
import xml.etree.ElementTree as ET | |
import os | |
import sys | |
#first argument is the filename of the dspreset | |
#you can run this program with: python main.py example.dspreset | |
filename=sys.argv[1] | |
header = """ | |
<control> | |
default_path= // relative path of your samples | |
<global> |
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
import xml.etree.ElementTree as ET | |
tree = ET.parse('mk2_.xml')##the name of the document you want to convert | |
root = tree.getroot() | |
ns = {'tx': 'http://www.tx16wx.com/3.0/program'} | |
for i in range(1, 127): | |
for name in root.iterfind('tx:group['+str(i)+']', ns): | |
for i in range(1, 127): | |
for names in name.iterfind('tx:region['+str(i)+']',ns): |
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
from flask import Flask, render_template | |
import webview | |
import sys | |
import threading | |
app = Flask(__name__) | |
@app.route('/') | |
def hello_world(): | |
return render_template("index.html") |
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
$fn = 100; | |
difference(){ | |
rotate([0,90,0])cylinder(h = 60, r1 = 20, r2 = 20, center = true); | |
rotate([0,90,0])cylinder(h = 60, r1 = 18, r2 = 18, center = true); | |
rotate([60,0,0])cylinder(h = 30, r1 = 12, r2 = 12, center = false); | |
rotate([0,0,0])cylinder(h = 30, r1 = 12, r2 = 12, center = false); | |
translate([-20,0,0])rotate([-60,0,0])cylinder(h = 30, r1 = 8, r2 = 8, center = false); | |
translate([20,0,0])rotate([-60,0,0])cylinder(h = 30, r1 = 8, r2 = 8, center = false); |
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
import processing.video.Movie; | |
PShape globe; | |
float rotx = PI/4; | |
float roty = PI/4; | |
Movie vid; | |
void setup() { | |
size(1920, 1080, P3D); | |
vid = new Movie(this, "test.mp4"); | |
vid.loop(); |
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
import processing.video.Movie; | |
PShape globe; | |
float rotx = PI/4; | |
float roty = PI/4; | |
Movie vid; | |
void setup() { | |
size(640, 360, P3D); | |
vid = new Movie(this, "fart.mp4"); | |
vid.loop(); |
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
import processing.video.*; | |
PImage tex; | |
float rotx = PI/4; | |
float roty = PI/4; | |
Movie myMovie; | |
void setup() { | |
size(640, 360, P3D); | |
myMovie = new Movie(this, "overpass-clip.mp4"); | |
myMovie.loop(); | |
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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>Barcode gen</title> | |
<link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css"> | |
<link rel="stylesheet" href="/resources/demos/style.css"> | |
<script src="https://cdn.jsdelivr.net/jsbarcode/3.6.0/JsBarcode.all.min.js"></script> | |
<style> |