Skip to content

Instantly share code, notes, and snippets.

/**
* Based on code from CyberGene's DIY Hybrid Piano Controller
* For Teensy 3.6 or 4.1
* Author: Evgeni Kumanov (CyberGene)
* 2019, 2020, 2022
*/
#define LEFT_PEDAL A1 // Green wire
#define MIDDLE_PEDAL A0 // Red wire
#define RIGHT_PEDAL A2 // Blue wire
/**
* Based on code from CyberGene's DIY Hybrid Piano Controller
* For Teensy 3.6 or 4.1
* Author: Evgeni Kumanov (CyberGene)
* 2019, 2020, 2022
*/
#define LEFT_PEDAL A1 // Green wire
#define MIDDLE_PEDAL A0 // Red wire
#define RIGHT_PEDAL A2 // Blue wire
diff --git a/node_modules/@react-native-community/datetimepicker/ios/fabric/cpp/react/renderer/components/RNDateTimePicker/ComponentDescriptors.h b/node_modules/@react-native-community/datetimepicker/ios/fabric/cpp/react/renderer/components/RNDateTimePicker/ComponentDescriptors.h
index 4a1a8e2..7e8c828 100644
--- a/node_modules/@react-native-community/datetimepicker/ios/fabric/cpp/react/renderer/components/RNDateTimePicker/ComponentDescriptors.h
+++ b/node_modules/@react-native-community/datetimepicker/ios/fabric/cpp/react/renderer/components/RNDateTimePicker/ComponentDescriptors.h
@@ -18,7 +18,7 @@ class RNDateTimePickerComponentDescriptor final : public ConcreteComponentDescri
public:
using ConcreteComponentDescriptor::ConcreteComponentDescriptor;
- void adopt(ShadowNode::Unshared const &shadowNode) const override {
+ void adopt(ShadowNode::Unshared const &shadowNode) const {
@KunstDerFuge
KunstDerFuge / vrserver.txt
Created June 7, 2023 03:24
First 400 lines of vrserver.txt
Tue Jun 06 2023 18:38:23.410500 - //==============================================================================================
Tue Jun 06 2023 18:38:23.410515 - ================================================================================================
Tue Jun 06 2023 18:38:23.410520 - ================================================================================================
Tue Jun 06 2023 18:38:23.410525 - vrserver 1.25.8 startup with PID=22391, config=/home/robert/.local/share/Steam/config, runtime=/home/robert/.local/share/Steam/steamapps/common/SteamVR
Tue Jun 06 2023 18:38:23.410529 - [vrserver] watchdogs enabled
Tue Jun 06 2023 18:38:23.410597 - CSharedResourceNamespaceServer starting up
Tue Jun 06 2023 18:38:23.410626 - CIPCPipe::ConnectPipe(SteamVR_Namespace) attempting connect to steamvr:SteamVR_Namespace
Tue Jun 06 2023 18:38:23.410635 - Unable to connect to pipe errno=111
Tue Jun 06 2023 18:38:23.410641 - CSharedResourceNamespaceClient::Init(): failed connect
Tue Jun 06 2023 18:38:2
@KunstDerFuge
KunstDerFuge / vrcompositor_backtrace
Last active June 7, 2023 03:15
Backtrace of SteamVR / ALVR vrcompositor crash
Using host libthread_db library "/usr/lib/libthread_db.so.1".
Core was generated by `/home/robert/.local/share/Steam/steamapps/common/SteamVR/bin/linux64/vrcomposit'.
Program terminated with signal SIGABRT, Aborted.
#0 __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at pthread_kill.c:44
Downloading source file /usr/src/debug/glibc/glibc/nptl/pthread_kill.c
44 return INTERNAL_SYSCALL_ERROR_P (ret) ? INTERNAL_SYSCALL_ERRNO (ret) : 0;
[Current thread is 1 (Thread 0x7f27af7fe6c0 (LWP 22521))]
(gdb) bt
#0 __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at pthread_kill.c:44
#1 0x00007f27e15b22d3 in __pthread_kill_internal (signo=6, threadid=<optimized out>) at pthread_kill.c:78
################################
#
# INSTALL PREREQUISITE PACKAGES:
# pip install PySDL2 vulkan
#
# Based on script from https://github.com/realitix/vulkan/blob/master/example/example_sdl2.py
import ctypes
import os
import sdl2
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE score-partwise PUBLIC "-//Recordare//DTD MusicXML 3.1 Partwise//EN" "http://www.musicxml.org/dtds/partwise.dtd">
<score-partwise version="3.1">
<movement-title>Music21 Fragment</movement-title>
<identification>
<creator type="composer">Music21</creator>
<encoding>
<encoding-date>2022-08-30</encoding-date>
<software>music21 v.7.3.3</software>
</encoding>
@KunstDerFuge
KunstDerFuge / split_csv.py
Created March 6, 2022 23:59
Split CSV into files of up to N rows
import glob
import pandas as pd
import math
import os
max_rows = 100000
for file in glob.glob('*.csv'):
filename = os.path.splitext(file)[0]
print(f'Loading {file}...')
drop num_images media
1 0 []
2 0 []
3 0 []
4 1 [{'filename': 'GodBlessAmerica.png', 'url': 'https://qalerts.app/media/63d961c72b558a8009823025001eebe46be8903b830cebca81dc7a27a7e4025c.png'}]
5 1 [{'filename': 'largest_flying_flag_in_america.jpg', 'url': 'https://qalerts.app/media/ff7cc2f6948249459aec737c0848d47dbb8d525e11772060f4fe33fd1b58fad3.jpg'}]
6 0 []
7 0 []
8 0 []
9 0 []
@KunstDerFuge
KunstDerFuge / scrape_8chan_threads.py
Created July 26, 2021 01:24
Scrape 8chan Q threads from archive.is
import pandas as pd
from selenium import webdriver
import json
import glob
from random import randrange
import time
with open("qthreads.json") as json_file:
data = json.load(json_file)