Skip to content

Instantly share code, notes, and snippets.

View pszpetkowski's full-sized avatar
🦊
Little bit of everything

Piotr Szpetkowski pszpetkowski

🦊
Little bit of everything
  • PKO BP
  • Warsaw
View GitHub Profile
[tool.poetry]
name = "project"
version = "0.1.0"
description = ""
authors = ["Test"]
license = "MIT"
[tool.poetry.dependencies]
python = "^3.10"
orjson = "3.8.0"
robbyrussell/oh-my-zsh
robbyrussell/oh-my-zsh path:plugins/archlinux
robbyrussell/oh-my-zsh path:plugins/aws
robbyrussell/oh-my-zsh path:plugins/cargo
robbyrussell/oh-my-zsh path:plugins/colorize
robbyrussell/oh-my-zsh path:plugins/command-not-found
robbyrussell/oh-my-zsh path:plugins/docker
robbyrussell/oh-my-zsh path:plugins/git
robbyrussell/oh-my-zsh path:plugins/jsontools
robbyrussell/oh-my-zsh path:plugins/pip
import os
import pathlib
import sys
import dj_database_url
class SettingsBase(type):
"""Class-based settings meta class"""
@pszpetkowski
pszpetkowski / .zshrc
Last active February 8, 2019 18:49
My .zshrc config
autoload -Uz compinit promptinit
compinit
promptinit
if [ $TILIX_ID ] || [ $VTE_VERSION ]; then
source /etc/profile.d/vte.sh
fi
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
#!/usr/bin/env python
def recursive_arithmetic_exception(depth=0, max_depth=20):
raise_string = (
'%stry:\n'
'%sraise ArithmeticError\n'
'%sexcept ArithmeticError:\n'
% (' ' * depth * 4, ' ' * (depth * 4 + 4), ' ' * depth * 4))
if depth < max_depth: