Skip to content

Instantly share code, notes, and snippets.

View JakubKoralewski's full-sized avatar
🦀
Chillin' out maxin' relaxin' all cool

Jakub Koralewski JakubKoralewski

🦀
Chillin' out maxin' relaxin' all cool
View GitHub Profile
@JakubKoralewski
JakubKoralewski / task7.ipynb
Created December 7, 2019 18:04
Task 7 by Jakub Koralewski for Introduction to Computer Science Labs 8
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@JakubKoralewski
JakubKoralewski / h.ts
Last active September 5, 2022 17:48 — forked from borestad/h.ts
JSX/TSX without React with style={var} working
/* https://gist.github.com/borestad/eac42120613bc67a3714f115e8b485a7
* Custom jsx parser
* See: tsconfig.json
*
* {
* "jsx": "react",
* "jsxFactory": "h",
* "lib": [
* "es2017",
* "dom",
import Vue from "vue";
import { Timeline, Tween } from "gsap";
/* tslint:disable ban-types no-namespace max-classes-per-file */
/* https://github.com/danhanfry/KawasakiReproject/blob/master/KawasakiReproject/scripts/typings/scrollmagic.d.ts */
declare enum SCROLL_DIRECTION {
SCROLL_DIRECTION_FORWARD,
SCROLL_DIRECTION_REVERSE,
SCROLL_DIRECTION_PAUSED
}
@JakubKoralewski
JakubKoralewski / oke_poznan_sugerowane.json
Created May 15, 2019 11:17
Sugerowane teksty kultury/literackie na mature ustną w OKE Poznań z https://kalkulatormaturalny.pl/dzisiejsze-pytania-matura?oke=poz
{
"sorted": [
["tadeusz", 31],
["pan", 30],
["lalka", 18],
["ferdydurke", 15],
["wesele", 15],
["tango", 14],
["makbet", 14],
["treny", 10],
@JakubKoralewski
JakubKoralewski / gothic2_npc_list.json
Last active April 30, 2019 13:35
Gothic II Gold Edition NPC name list. They do not correspond to actual game files, instead they aim to be an accurate, unique substring of each of these files.
[
"Tom",
"Pablo",
"Attila",
"Bengar",
"Lord",
"Esteban",
"Till",
"SwampGolem",
"Stadtwache",
@JakubKoralewski
JakubKoralewski / gothic2_gold_dialogues_pl.json
Last active April 30, 2019 14:09
Dialogi z Gothica 2, nazwy pliku audio .wav, kto lub do kogo mówi
This file has been truncated, but you can view the full file.
[{"file": "DIA_AkilsSchaf_KommMit_15_00", "text": "Chodźmy!", "target": "Akil"}, {"file": "DIA_Biff_ARBEITEN_lebenlassen_07_01", "text": "Nie potrzebuję cię, żebyś robił ze mnie głupca.", "speaker": "Biff"}, {"file": "DIA_Biff_HALLO_15_00", "text": "Co tu robisz?", "target": "Biff"}, {"file": "DIA_Biff_HALLO_07_01", "text": "To naprawdę najgłupsze pytanie, jakie od dawna słyszałem. A na co to wygląda?", "speaker": "Biff"}, {"file": "DIA_Biff_HALLO_doof_15_00", "text": "Nieważne.", "target": "Biff"}, {"file": "DIA_Biff_HALLO_spott_15_00", "text": "Nie potrafię się domyślić po twojej idiotycznej minie. Dlatego musiałem zapytać.", "target": "Biff"}, {"file": "DIA_Biff_HALLO_spott_07_01", "text": "Za dużo gadasz, jak na mój gust. Pora, żeby ktoś cię uciszył.", "speaker": "Biff"}, {"file": "DIA_Biff_HALLO_keineAhnung_15_00", "text": "Nie mam pojęcia.", "target": "Biff"}, {"file": "DIA_Biff_HALLO_keineAhnung_07_01", "text": "Czekam, aż coś się wreszcie stanie.", "speaker": "Biff"}, {"file": "DIA_Biff_HALLO_keineAhn
@JakubKoralewski
JakubKoralewski / unpack.py
Created April 18, 2019 10:37
python move first level child files from directories to root of script, not recursive
import os
import shutil
root = os.path.split(__file__)[0]
for dirpath, dirname, filenames in os.walk(root):
if filenames:
for file in filenames:
old_path = os.path.join(dirpath, file)
new_path = os.path.join(root, file)
@JakubKoralewski
JakubKoralewski / vars_obspython.txt
Created April 4, 2019 17:25
OBS Python API all variables, properties, methods. Extracted using vars(obspython).
13:02:35.522392: refresh
Import failed, because: No module named 'cursor_recorder'
{ 'CALL_PARAM_IN': 1,
'CALL_PARAM_OUT': 2,
'CALL_PARAM_TYPE_BOOL': 3,
'CALL_PARAM_TYPE_FLOAT': 2,
'CALL_PARAM_TYPE_INT': 1,
'CALL_PARAM_TYPE_PTR': 4,
'CALL_PARAM_TYPE_STRING': 5,
'CALL_PARAM_TYPE_VOID': 0,