Skip to content

Instantly share code, notes, and snippets.

View johnslavik's full-sized avatar

Bartosz Sławecki johnslavik

View GitHub Profile
@johnslavik
johnslavik / story.md
Last active August 3, 2024 09:11
A fun story about a recruitment

from twisted import story 🚀


Note

This story was generated with the help of AI and mine (in the Python parts). I just think it is a must to mention it.

Prologue: The Recruitment Gauntlet

Narrator: Before Alex could even sit across from Sam in this final interview, there was a journey—a gauntlet of recruitment stages that would test the mettle of even the most seasoned developer. Let’s take a quick look back.

import pandas as pd
x = pd.DataFrame()
@johnslavik
johnslavik / im_done.md
Last active July 21, 2024 20:05
100% is not enough

Acing a recruitment task? Get ready to be rejected!

I'm done, guys. In April, I sent an application for a Fullstack Python Developer internship at Samsung R&D.
After (allegedly) reviewing my CV, they decided to invite me to a test assessing my technical skills:

invitation to test

Great! I indeed got the e-mail with the invitation link soon after: test link

@johnslavik
johnslavik / english_is_beautiful.md
Last active March 27, 2024 20:48
Words and phrases I learned from jaraco
@johnslavik
johnslavik / jaraco_namespace.py
Last active February 6, 2024 18:58
jaraco.* projects
#!/usr/bin/env -S pip-run -v httpx tabulate pyarrow pandas pypistats
from __future__ import annotations
import re
import xmlrpc.client
from functools import cache
import pandas as pd
from httpx import HTTPStatusError, get
from pypistats import recent
@johnslavik
johnslavik / projects.txt
Last active February 2, 2024 13:28
jaraco.develop testing
/jaraco/jaraco.functools [fork] (python, stdlib, functools)
/pypa/setuptools [fork] (python, python packaging, packaging, setuptools)
mempip (python, pip, caching)
@johnslavik
johnslavik / terms.txt
Created December 18, 2023 14:28
Polish math terms
abak
abakus
aksjomat
aksjomat Euklidesa
aksjomaty planimetrii
aksjomatyczna teoria mnogości
alef zero
alternatywa
analiza matematyczna
arcus cosinus
from __future__ import annotations
import re
import xmlrpc.client
from functools import cache
from posixpath import basename
import pandas as pd
from httpx import HTTPStatusError, get
from pypistats import recent
@johnslavik
johnslavik / descriptor_source_check.py
Last active September 17, 2023 16:47
Check whether the descriptor was called from the owner's method or from somewhere else.
# (C) 2023, bswck
import inspect
from collections.abc import Callable
from types import MethodType
class Descriptor:
def __init__(
self,
stack_offset: int = 1,
@johnslavik
johnslavik / xss.jpg
Last active January 22, 2023 14:36
xss.svg
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" baseProfile="full" xmlns="http://www.w3.org/2000/svg">
<rect width="300" height="100" style="fill:rgb(0,0,255);stroke-width:3;stroke:rgb(0,0,0)" />
<script type="text/javascript">
alert("XSS");
</script>
</svg>