Skip to content

Instantly share code, notes, and snippets.

View Marcin648's full-sized avatar
🐧

Marcin Jakubowski Marcin648

🐧
View GitHub Profile
@Marcin648
Marcin648 / main.c
Created January 3, 2023 20:40
POC: CRC8_J1850 of BMW Can Frame
#include "stdint.h"
/*
Credits:
II43 - https://github.com/II43/Crc8_J1850
*/
const uint8_t crc8_table[256] = {
0x00, 0x1D, 0x3A, 0x27, 0x74, 0x69, 0x4E, 0x53, 0xE8, 0xF5, 0xD2, 0xCF, 0x9C, 0x81, 0xA6, 0xBB,
0xCD, 0xD0, 0xF7, 0xEA, 0xB9, 0xA4, 0x83, 0x9E, 0x25, 0x38, 0x1F, 0x02, 0x51, 0x4C, 0x6B, 0x76,
@Marcin648
Marcin648 / check_args.py
Created September 16, 2021 17:12
Simple script that prints all process arguments
#
# Simple script that prints all process arguments
# usage: python3 check_args.py <PID>
# by Marcin648
# September 2021
#
import sys
if(len(sys.argv) < 2):
@Marcin648
Marcin648 / analogResCheck.py
Created July 27, 2020 00:55
Simple code check resolution of joystick analog input
import pygame
import math
pygame.init()
pygame.joystick.init()
values = set()
j = pygame.joystick.Joystick(0)
print(j.get_name())
@Marcin648
Marcin648 / VideoJS WebRTC Sync.js
Last active April 22, 2019 18:11
Synchronizes video on the page.
/*
Marcin648 2019
VideoJS WebRTC Sync
*/
function loadScript(url, callback){
var head = document.head;
var script = document.createElement('script');
script.type = 'text/javascript';
script.src = url;