Skip to content

Instantly share code, notes, and snippets.

View wereii's full-sized avatar
🐱 /dev/random

Tomas wereii

🐱 /dev/random
  • Czech Republic
  • 19:15 (UTC +02:00)
View GitHub Profile
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <stdint.h>
#include <raylib.h>
int main(){
FILE * pFile;
long lSize;
@wereii
wereii / OreQuarry.lua
Last active February 21, 2021 11:46 — forked from nick1n/OreQuarry.lua
Minecraft Mining Turtle Ore Quarry with Resume by AustinKK, Aeolun, nick1n (untested) http://www.computercraft.info/forums2/index.php?/topic/7675-advanced-mining-turtle-ore-quarry/
-- ********************************************************************************** --
-- ** ** --
-- ** Minecraft Mining Turtle Ore Quarry v0.6c by AustinKK, Aeolun, nick1n ** --
-- ** --------------------------------------------------- ** --
-- ** ** --
-- ** For instructions on how to use: ** --
-- ** ** --
-- ** http://www.youtube.com/watch?v=PIugLVzUz3g ** --
-- ** ** --
-- ** Change Log: ** --
@wereii
wereii / simple_gamepad_hid.h
Last active January 11, 2024 20:19
Very Simple Gamepad HID Descriptor
//simple_gamepad_hid.h
#define REPORT_BYTE_LENGTH 4 // (8 + 16 + 8) / 8
char ReportDescriptor[44] = {
0x05, 0x01, // USAGE_PAGE (Generic Desktop)
0x09, 0x05, // USAGE (Game Pad)
0xa1, 0x01, // COLLECTION (Application)
0xa1, 0x00, // COLLECTION (Physical)
// ReportID - 8 bits
@wereii
wereii / .bash_aliases
Created February 10, 2020 13:30
python3 only aliases
alias python=python3
alias pip="python3 -m pip"
0x05, 0x01, // Usage Page (Generic Desktop) 0
0x09, 0x04, // Usage (Joystick) 2
0xa1, 0x01, // Collection (Application) 4
0x85, 0x14, // Report ID (20) 6
0x15, 0x00, // Logical Minimum (0) 8
0x25, 0x01, // Logical Maximum (1) 10
0x75, 0x01, // Report Size (1) 12
0x95, 0x20, // Report Count (32) 14
0x05, 0x09, // Usage Page (Button) 16
0x19, 0x01, // Usage Minimum (1) 18