$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
# 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 <dominik@kozaczko.info>"] | |
[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="1@1.com") | |
c2 = Customer(email="2@1.com") | |
o1 = Order(customer=c1) | |
o10 = Order(customer=c1) | |
o12 = Order(customer=c1) | |
o11 = Order(customer=c1) | |
o13 = Order(customer=c1) | |
o2 = Order(customer=c1) |
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
minder@mindstorm ~/projekty/own/ahes | |
$ tree | |
. | |
├── mojaapka | |
│ ├── __init__.py | |
│ └── moj_modul.py | |
└── skrypt.py | |
1 directory, 3 files | |
minder@mindstorm ~/projekty/own/ahes |
NewerOlder