Skip to content

Instantly share code, notes, and snippets.

View mwicat's full-sized avatar

Marek Wiewiorski mwicat

  • Wroclaw, Poland
View GitHub Profile
"""
Script that takes patent url from Google Patents and creates nice little HTML table with patent metadata, then opens it
with your default browser. From there, you can copy the table to the clipboard and paste it in spreadsheet, nicely
formatted and parsed as a proper table. Apart from spreadsheet, any program that can process HTML tables from clipboard
will also work.
URL formats:
- https://patents.google.com/patent/[PATENT ID]
- https://patentimages.storage.googleapis.com/.../[PATENT ID].pdf
#include <Arduino.h>
#include "driver/ledc.h"
void setup() {
Serial.begin(115200);
uint32_t phase = 0;
uint32_t frequency = 2 * 1000 * 1000;
@mwicat
mwicat / reaper_fltk.py
Created July 23, 2022 18:15
reaper fltk
import sys
sys.path.append('/Users/mwicat/tmp/mylib')
from fltk import *
import time
last_redraw = None
redraw_ival = 1/60.
class App:
@mwicat
mwicat / vst_fxp.ksy
Created February 9, 2022 00:34
Kaitai Struct format for VST 2.4 .fxp program files
meta:
id: vst_fxp
endian: be
seq:
- id: chunk_magic
type: s4
- id: byte_size
type: s4
- id: fx_magic
type: s4le
import gzip
import os
import re
import xml.etree.cElementTree as etree
from ctypes import *
VstInt32 = c_int32.__ctype_be__
VstFloat = c_float.__ctype_be__
import sys
import os
from PyQt5.QtCore import QUrl
from PyQt5.QtWidgets import *
from PyQt5.QtWebEngineWidgets import QWebEngineView as QWebView
fn = os.path.expanduser('~/tmp/report.pdf')
@mwicat
mwicat / .gitignore-juce
Created December 25, 2021 21:01
.gitignore-juce
._*
*.mode1v3
*.pbxuser
*.perspectivev3
*.user
*.ncb
*.suo
*.ilk
*.pch
*.pdb
on init
set_script_title("Shift Sample")
declare ui_knob $Pitch (-24, 24, 1)
declare ui_knob $Velocity (-127, 127, 1)
declare $VelocityTarget
declare $VolumeAdd
declare $NoteTarget
@mwicat
mwicat / Shift Pitch.ksp
Last active December 23, 2021 23:17
Shift Pitch.ksp
on init
set_script_title("Shift Sample")
declare ui_knob $Shift (-24, 24, 1)
$Shift := 0
set_knob_defval ($Shift,0)
make_persistent ($Shift)
set_knob_unit ($Shift,$KNOB_UNIT_ST)
set_control_help ($Shift,"Shift: Shifts the pitch in semitones while simultaneously compensating with
midi transpose in the opposite direction. The result is an increase or decrease in overtones.")
end on
@mwicat
mwicat / LICENSE.md
Last active December 17, 2021 15:19

The MIT License (MIT)

Copyright (c) 2021-present Marek Wiewiorski

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: