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
<form action="{% url 'new' %}" method="post">
{% csrf_token %}
{% for field in form %}
<div class="field-wrapper">
{{ field.errors }}
{{ field.label_tag }} {{ field }}
{% if field.help_text %}
<p class="help">{{ field.help_text|safe }}</p>
{% endif %}
</div>
@JakubKoralewski
JakubKoralewski / rust-book-pl.diff
Last active March 15, 2020 12:26
zrobiłem diff tego repo z commita [94308a2](https://github.com/paytchoo/book-pl/commit/94308a22e7bcd089a806e8e6eb11d9294667eb66) i [rust-lang/book 6fb3705e](https://github.com/rust-lang/book/commit/6fb3705e5230311b096d47f7e2c91f9ce24393d0) komendą `git diff --no-index --name-only book-original/src book-pl-en/src > diff-to-new.txt`. Wynik zamiesz…
diff --git a/book-original/src/SUMMARY.md b/book-pl-en/src/SUMMARY.md
index a9b8feb..4139eb0 100644
--- a/book-original/src/SUMMARY.md
+++ b/book-pl-en/src/SUMMARY.md
@@ -1,6 +1,5 @@
# The Rust Programming Language
-[The Rust Programming Language](title-page.md)
[Foreword](foreword.md)
[Introduction](ch00-00-introduction.md)
@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.
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_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 / 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 / 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)