Skip to content

Instantly share code, notes, and snippets.

View msz's full-sized avatar
⚗️
doing a̶̭͐̆͜l̷̡̧̟͚͊́̇̂ć̵̪̋̈́h̶͙̥͎̓́ȩ̷̪̈́̽̏m̴̢̥͇͒͗͜ÿ̴̪́͐

Michał Szewczak msz

⚗️
doing a̶̭͐̆͜l̷̡̧̟͚͊́̇̂ć̵̪̋̈́h̶͙̥͎̓́ȩ̷̪̈́̽̏m̴̢̥͇͒͗͜ÿ̴̪́͐
View GitHub Profile
@msz
msz / teensy-nkro.md
Created March 10, 2023 00:09 — forked from onebytegone/teensy-nkro.md
Patch teensyduino for NKRO on Teensy 3.2

Patching teensyduino to support NKRO for Teensy 3.2

  1. Install Arduino IDE

  2. Install teensyduino using its installer

  3. Run the following:

    cd /Applications/Arduino.app/Contents/Java/hardware/teensy
    git init
    git add -A
    
@msz
msz / subtitle_mover.py
Created November 3, 2018 14:55
Offsets timestamps in an SRT file by given number of seconds.
#!/usr/bin/env python3
import sys
import re
USAGE = """
Usage: subtitle_mover.py [offset_seconds] < original.srt > processed.srt
"""
def move_timestamps(line, seconds_offset):
@msz
msz / keybase.md
Created September 13, 2017 12:09

Keybase proof

I hereby claim:

  • I am msz on github.
  • I am msz (https://keybase.io/msz) on keybase.
  • I have a public key ASC1v4-mp40H8OwKdIOK9jfUafGN3QymCkF2YWBdDlEk1go

To claim this, I am signing this object:

import Ember from 'ember';
import PouchDB from 'pouchdb';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
something() {
const pouch = new PouchDB('local');
console.log(pouch.rel);
}
String file contents
String file contents
package thewaypointers.trafficsimulator.common;
import thewaypointers.trafficsimulator.utils.Angle;
import thewaypointers.trafficsimulator.utils.FloatPoint;
import thewaypointers.trafficsimulator.utils.Rotation;
/**
* The representation of location of objects inside junctions. The location is
* defined in three parameters:
* - origin - where the vehicle is coming from