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
//x86_64-w64-mingw32-gcc -o disable-two-finger-click -mwindows -O99 disable-two-finger-click.cpp | |
#include <Windows.h> | |
#include <hidsdi.h> | |
#include <time.h> | |
#include <stdio.h> | |
NTSTATUS HidP_GetCaps(PHIDP_PREPARSED_DATA preparsed_data, HIDP_CAPS *caps); | |
HHOOK miHook; |
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
//x86_64-w64-mingw32-gcc -o disable-two-finger-click -mwindows -O99 disable-two-finger-click.cpp | |
#include <thread> | |
#include <Windows.h> | |
#include <stdio.h> | |
#include <time.h> | |
HHOOK miHook; | |
const bool ALLOW_DOUBLE_TAP_RIGHT_CLICK = true; |
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
#!/usr/bin/env python | |
import ctypes as cts | |
import ctypes.wintypes as wts | |
from ctypes import * | |
from ctypes.wintypes import * | |
import sys | |
import time | |
import threading | |
import ctypes_wrappers as cws |
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
/* | |
instructions: hook up one oscilloscope channel to a photodiode circuit and the other to GPIO 21; trigger on GPIO 21 | |
*/ | |
#include <stdio.h> | |
#include <fcntl.h> | |
#include <sys/ioctl.h> | |
#include <unistd.h> | |
#include <string.h> | |
#include <sys/mman.h> |
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 os | |
import zlib | |
try: | |
os.mkdir('taito/extract') | |
except: | |
pass | |
with open('taito/FILES.HDR', 'rb') as hdr: | |
with open('taito/FILES.DAT', 'rb') as dat: |
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 os | |
import sys | |
import stat | |
import subprocess | |
rating = None | |
label = None | |
delete = False | |
base = "." |
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 os | |
import sys | |
import math | |
import subprocess | |
maxSize = 999999999 | |
overlapSeconds = 6 | |
def getDuration(filename): | |
pipe = subprocess.Popen(["ffprobe", filename], stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True) |
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 math | |
BIKE_WEIGHT = 17 # lbs | |
FRONTAL_AREA = 5.4788 # sq ft | |
DRIVETRAIN_LOSS = 2 # percent | |
DRAG = 0.63 | |
ROLLING_RESISTANCE = 0.005 | |
AIR_DENSITY = 1.22601 # kg/m^3 | |
GRAVITY = 9.8067 # m/s^2 |
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 __future__ import print_function | |
import nintaco | |
import math | |
import bike | |
nintaco.initRemoteAPI("localhost", 9999) | |
api = nintaco.getAPI() | |
# RX | |
SPEED = 1 |
NewerOlder