Skip to content

Instantly share code, notes, and snippets.

View bswck's full-sized avatar

Bartosz Sławecki bswck

View GitHub Profile
@bswck
bswck / breakpoints.sh
Last active February 16, 2025 15:22
Breakpoints from regex
#!/usr/bin/env bash
set -Eeuxo pipefail
rg $1 -no --no-heading -r '' | sed 's/:$//' | xargs -l echo break > $2.gdb
from collections.abc import Iterator, Sequence
from datetime import date, timedelta
from functools import partial
from itertools import batched
work_time = timedelta(hours=7, minutes=15)
year = 2025
(
@bswck
bswck / make-http-constants.py
Last active December 16, 2024 21:42
HTTP constant literals for typeshed
import ast
import sys
import textwrap
from pathlib import Path
from typing import NamedTuple
from typeshed_client import get_search_context, get_stub_ast
try:
typeshed_root = Path(sys.argv[1])
@bswck
bswck / 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()
@bswck
bswck / 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

@bswck
bswck / english_is_beautiful.md
Last active March 27, 2024 20:48
Words and phrases I learned from jaraco
@bswck
bswck / 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
@bswck
bswck / 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)
@bswck
bswck / 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