Skip to content

Instantly share code, notes, and snippets.

View Maarrk's full-sized avatar

Marek S. Łukasiewicz Maarrk

View GitHub Profile
@Maarrk
Maarrk / InputChart.cs
Created October 17, 2017 18:48
Skrypt do wykładu "Move ya body" w KNTG Polygon 18.10.2017
using UnityEngine;
// Skrypt do wykładu "Move ya body" w KNTG Polygon 18.10.2017
[RequireComponent(typeof(LineRenderer))]
public class InputChart : MonoBehaviour {
// Dla domyślnej kamery w projekcie 2D wystarczy wrzucić ten GameObject na pozycję (-8, 0, 0)
public int pointsCount = 80;
public float scaleY = 4f;
# A script to improve color channels in diving videos
# By Marek Lukasiewicz 2018
# http://lukasiewicz.tech
# Requires python openCV with ffmpeg installed to open all video types
# Requires ffmpeg installed command ffmpeg used to copy sound from original video
from os import system, remove
from sys import argv
import numpy as np
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# By Marek Łukasiewicz 2019
filenames = ['GarminGoracy.txt', 'GarminZimny.txt', 'NovatelEgnos.txt', 'NovatelGoracy.txt', 'NovatelZimny.txt']
for filename in filenames:
infile = open(filename, 'r')
out_gga = open('gga_' + filename, 'w')
@Maarrk
Maarrk / README.md
Last active November 11, 2021 11:45
rownania.ipynb
@Maarrk
Maarrk / zidkl.ipynb
Created November 11, 2021 16:12
ZiDKL Python
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Maarrk
Maarrk / bike.ipynb
Last active February 4, 2022 12:20
Bike kinematics
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#!/usr/bin/env python3
import argparse
from glob import glob
from os.path import expanduser
import re
parser = argparse.ArgumentParser()
parser.add_argument('pattern', metavar='PATTERN',
help='part of filename to match')
parser.add_argument('--dir', default='~/.dendron/vault', help='vault location')
@Maarrk
Maarrk / dendron-zotero.md
Last active March 9, 2023 19:13
Zotero items into dendron notes

Zotero items into dendron notes

See demo on imgur

Prerequisites

Ensure you have these:

  • Visual Studio Code
  • Dendron
@Maarrk
Maarrk / FigureToEpsInkscape.ps1
Created February 22, 2023 10:47
Convert matching pdf files to eps with Inkscape
$files = Get-ChildItem .\Figure*.pdf
foreach ($file in $files) {
$outfile = "{0}.eps" -f ($file -Split "\.")[0]
C:\"Program Files"\Inkscape\bin\inkscape.com $file --export-type=eps -o $outfile
}
@Maarrk
Maarrk / hapticserver.py
Created May 17, 2023 13:45
Help Haptics
from http.server import BaseHTTPRequestHandler, HTTPServer
import socket
import time
hostName = "0.0.0.0" # Accept any address
# serve on port 8080 (try in this pc like http://localhost:8080)
serverPort = 8080
arduinoSocket = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
arduinoAddress = '192.168.222.33'