pip install pybind11
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
/* | |
Logic Pro X MIDI scripter script to change iRig PADS key layout. | |
*/ | |
// functions | |
var notetable={"C":0,"C#":1,"Db":1,"D":2,"D#":3,"Eb":3,"E":4,"F":5,"F#":6,"Gb":6,"G":7,"G#":8,"Ab":8,"A":9,"A#":10,"Bb":10,"B":11}; | |
function notename(name){let n = notetable[name.slice(0, name.length-1)];let o = name.slice(-1); return o*12+24+n;}; | |
// ------------------------------------ | |
// Device keymaps |
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 dearpygui.dearpygui as dpg | |
import array | |
import cv2 | |
import numpy as np | |
image_width = 320 | |
image_height = 180 | |
average_rect = (60,120,120,200) # y0,y1,x0,x1 | |
def update_image(img): |
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 vpython import * | |
import math | |
import numpy as np | |
class Bodies: | |
def __init__(self,num=3): | |
self.t = 0 | |
self.fps = 30 | |
self.dt = 1.0/(self.fps) |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 sympy.interactive import printing | |
#printing.init_printing() | |
from sympy import * | |
var("a,x") | |
eq1=2*x**2+3*x+1 | |
plot(eq1) |