$2a$11$Etq2KcFhOlv2.k4t7YI/sOTVkqIm7R14AWG8hIrZZwDIuhXiLOWcy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Po długich miesiącach marazmu, wyprzedaży prywatnych rzeczy i długotrwałym braku ognia w działaniach jednoosobowej działalności gospodarczej, czyli sklepie Róbmy Dobrze, stało się to, co było nieuniknione. W amerykański Dzień Niepodległości Michał Nowakowski, prowadzący RD, ogłosił upadek. Istniejący od 2021 roku przybytek miał całkiem solidny początek, ale im dłużej trwał jego żywot, tym więcej pojawiało się problemów, związanych nie tylko z zewnętrznymi czynnikami, jak wyższe podatki, niskie marże, sprawna konkurencja itp. To że małe biznesy mają w naszym kraju mocno pod górkę, to historia znana i raczej nikt nie będzie z tym dyskutował (szczególnie w ostatnich latach). Natomiast pomimo tych zewnętrznych trudności, sposób prowadzenia biznesu przez Michała dolewał oliwy do ognia i komplikował mu biznesową sytuację. Właśnie tym działaniom chciałbym głównie poświęcić ten wpis - trochę jako podsumowanie żywota tego interesującego pod wieloma względami komiksowego bytu, a trochę jako przestroga/nauka dla już ist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Finding roots of polynomials in p-adic integers using Hensel's lemma | |
from padic import * | |
from poly import * | |
def roots(p, poly): | |
'Yield all roots of polynomial in the given p-adic integers.' | |
for root in xrange(p): | |
try: | |
yield PAdicPoly(p, poly, root) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// XPath CheatSheet | |
// To test XPath in your Chrome Debugger: $x('/html/body') | |
// http://www.jittuu.com/2012/2/14/Testing-XPath-In-Chrome/ | |
// 0. XPath Examples. | |
// More: http://xpath.alephzarro.com/content/cheatsheet.html | |
'//hr[@class="edge" and position()=1]' // every first hr of 'edge' class |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Traceback (most recent call last): | |
File "/usr/local/lib/python3.8/site-packages/kombu/utils/objects.py", line 42, in __get__ | |
return obj.__dict__[self.__name__] | |
During handling of the above exception ('backend'), another exception occurred: | |
File "/usr/local/lib/python3.8/site-packages/django/core/handlers/exception.py", line 34, in inner | |
response = get_response(request) | |
File "/usr/local/lib/python3.8/site-packages/django/core/handlers/base.py", line 115, in _get_response | |
response = self.process_exception_by_middleware(e, request) | |
File "/usr/local/lib/python3.8/site-packages/django/core/handlers/base.py", line 113, in _get_response |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[tool.poetry] | |
name = "mygdbproject" | |
version = "0.1.0" | |
description = "My graphdb project" | |
authors = ["Dominik Kozaczko <[email protected]>"] | |
[tool.poetry.dependencies] | |
python = "^3.8" | |
django = "^3.0.8" | |
django-storages = {extras = ["boto3"], version = "^1.9.1", optional = true} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Use this script to test if a given TCP host/port are available | |
# The MIT License (MIT) | |
# Copyright (c) 2016 Giles Hall | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy of | |
# this software and associated documentation files (the "Software"), to deal in | |
# the Software without restriction, including without limitation the rights to |
- E - eShop only (to my knowledge)
- p - physical pending
- P - physical available
- Celeste (E)
- Don't Starve (E)
- The Binding of Isaac: Afterbirth+ (P)
- Flinthook (p)
- Super Meat Boy (E)
This list is to remind me which projects libraries and apps I consider the most awesome :) It is somewhat based on awesome-python and awesome-django
- cookiecutter - general tool for project templating
- django-cookiecutter - the best template for Django projects; integrated Docker, Celery, MailHog and more
- pipenv - python package management done right
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from models import * | |
c1 = Customer(email="[email protected]") | |
c2 = Customer(email="[email protected]") | |
o1 = Order(customer=c1) | |
o10 = Order(customer=c1) | |
o12 = Order(customer=c1) | |
o11 = Order(customer=c1) | |
o13 = Order(customer=c1) | |
o2 = Order(customer=c1) |
NewerOlder