Skip to content

Instantly share code, notes, and snippets.

View DatanoiseTV's full-sized avatar
✌️

Sylwester DatanoiseTV

✌️
View GitHub Profile
import ImageFont, ImageDraw, Image
fontSize = 32
fontWidth = 20
numFonts = 3
image = Image.new( 'RGB', (fontWidth*127,fontSize*numFonts), "black")
draw = ImageDraw.Draw(image)
font = ImageFont.truetype("whitrabt.ttf", fontSize)
font2 = ImageFont.truetype("saxmono.ttf", fontSize)
Index: gphoto2/actions.c
===================================================================
--- gphoto2/actions.c (Revision 15181)
+++ gphoto2/actions.c (Arbeitskopie)
@@ -1089,20 +1089,23 @@
wp.type = WAIT_FRAMES;
wp.u.frames = x;
printf ( _("Waiting for %d frames from the camera. Press Ctrl-C to abort.\n"), x);
- }
+ } else
@DatanoiseTV
DatanoiseTV / K20-Config.cfg
Created November 5, 2014 23:31
K20-Config.cfg
if { [info exists CHIPNAME] } {
set _CHIPNAME $CHIPNAME
} else {
set _CHIPNAME k20
}
# Work-area is a space in RAM used for flash programming
if { [info exists WORKAREASIZE] } {
set _WORKAREASIZE $WORKAREASIZE
} else {
> mdb 0 0x420
0x00000000: 00 80 00 20 bd 01 00 00 01 13 00 00 01 13 00 00 01 13 00 00 01 13 00 00 01 13 00 00 cd 12 00 00
0x00000020: cd 12 00 00 cd 12 00 00 cd 12 00 00 01 13 00 00 01 13 00 00 cd 12 00 00 01 13 00 00 bd 12 00 00
0x00000040: 01 13 00 00 01 13 00 00 01 13 00 00 01 13 00 00 01 13 00 00 01 13 00 00 01 13 00 00 01 13 00 00
0x00000060: 01 13 00 00 01 13 00 00 01 13 00 00 01 13 00 00 01 13 00 00 01 13 00 00 01 13 00 00 01 13 00 00
0x00000080: 01 13 00 00 01 13 00 00 01 13 00 00 01 13 00 00 01 13 00 00 01 13 00 00 01 13 00 00 01 13 00 00
0x000000a0: 01 13 00 00 01 13 00 00 01 13 00 00 01 13 00 00 01 13 00 00 01 13 00 00 01 13 00 00 01 13 00 00
0x000000c0: 01 13 00 00 01 13 00 00 01 13 00 00 01 13 00 00 01 13 00 00 01 13 00 00 01 13 00 00 01 13 00 00
0x000000e0: 01 13 00 00 01 13 00 00 01 13 00 00 01 13 00 00 01 13 00 00 01 13 00 00 01 13 00 00 01 13 00 00
0x00000100: 01 13 00 00 01 13 00 00 01 13 00 00 01 13 00 00 01 13 00 00 01 13 00 00 01 13 00 00 01 13 00 00
midi = require('midi'),
input = new midi.input(),
output = new midi.output(),
com = require("serialport");
serialPort = new com.SerialPort("/dev/tty.usbmodem261", {
baudrate: 115200,
});
input.openVirtualPort("My Virtual Midi Input");
rtpmidi = require('rtpmidi'),
session = rtpmidi.manager.createSession({ localName: 'Axoloti', bonjourName: 'Axoloti RTP-MIDI Bridge (syso)', port: 5006 });
sp = require("serialport");
s = new sp.SerialPort("/dev/tty.usbmodem261", { baudrate: 115200 });
b = new Buffer(7);
session.on('message', function(deltaTime, message) {
new Buffer("AxoM").copy(b); new Buffer(message).copy(b,4); s.write(b);
});
session.connect({ address: '127.0.0.1', port: 5004 });
Set-WindowsExplorerOptions -DisableShowHiddenFilesFoldersDrives -DisableShowProtectedOSFiles -DisableShowFileExtensions
Enable-RemoteDesktop
cinst console-devel
cinst sublimetext2
cinst autodesk-fusion360
cinst openscad
cinst gimp
cinst scribus
import sys
import time
from pyqtgraph.Qt import QtCore, QtGui
import numpy as np
import pyqtgraph as pg
class App(QtGui.QMainWindow):
def __init__(self, parent=None):
super(App, self).__init__(parent)
@DatanoiseTV
DatanoiseTV / tusb_config.h
Last active February 2, 2022 10:17
4x4 MIDI Tryout for RP2040 using TinyUSB (non functional)
/*
* The MIT License (MIT)
*
* Copyright (c) 2019 Ha Thach (tinyusb.org)
*
* 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
@DatanoiseTV
DatanoiseTV / epub-fts5.sh
Created October 22, 2022 09:04 — forked from bburky/epub-fts5.sh
EPUB full text search using SQLite FTS5
#!/bin/sh
# Update index:
# epub-fts5.sh
# FTS5 query (avoid single quotes, there's no escaping): https://www.sqlite.org/fts5.html#full_text_query_syntax
# epub-fts5.sh foo OR bar NOT baz
# epub-fts5.sh '"foo bar"'
# epub-fts5.sh 'NEAR(foo bar)'
EPUB_PATH=$HOME/path/to/your/epub/library