This file contains hidden or 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
| import math | |
| import numpy as np | |
| import matplotlib.pyplot as plt | |
| LN2 = math.log(2.0) | |
| LN10 = math.log(10.0) | |
| def ln(x: float) -> float: | |
| return math.log(x) |
This file contains hidden or 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
| import heapq | |
| import itertools | |
| from dataclasses import dataclass | |
| from typing import Optional | |
| import matplotlib.pyplot as plt | |
| import networkx as nx | |
| # ------------------------------- |
This file contains hidden or 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
| { | |
| "11": { | |
| "province": "تهران", | |
| "cities": { | |
| "ب": "تهران بزرگ", | |
| "ج": "تهران بزرگ", | |
| "د": "تهران بزرگ", | |
| "س": "تهران بزرگ", | |
| "ص": "تهران بزرگ", | |
| "ط": "تهران بزرگ", |
This file contains hidden or 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
| { | |
| "16": { "province": "قم", "city": "قم" }, | |
| "54": { "province": "یزد", "city": "یزد" }, | |
| "64": { "province": "یزد", "city": "یزد" }, | |
| "21": { "province": "البرز", "city": "کرج" }, | |
| "38": { "province": "البرز", "city": "کرج" }, | |
| "68": { "province": "البرز", "city": "کرج" }, | |
| "78": { "province": "البرز", "city": "کرج" }, | |
| "11": { "province": "تهران", "city": "تهران" }, | |
| "22": { "province": "تهران", "city": "تهران" }, |
This file contains hidden or 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
| { | |
| "آذربایجان شرقی": [ | |
| { | |
| "city": "آذرشهر", | |
| "codes": [ | |
| "169" | |
| ] | |
| }, | |
| { | |
| "city": "اسکو", |
This file contains hidden or 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
| # pip install pillow | |
| # pip install pytesseract --break-system-packages | |
| # pip install pillow | |
| import re | |
| import pytesseract | |
| from PIL import Image | |
| def parse_passport_holder_name(*, image): | |
| try: |
This file contains hidden or 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
| { | |
| "unit": "km", | |
| "destinations": [ | |
| "یزد", | |
| "یاسوج", | |
| "همدان", | |
| "نوردوز", | |
| "میر جاوه", | |
| "مهاباد", | |
| "مشهد", |
This file contains hidden or 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
| url : http://natas0.natas.labs.overthewire.org | |
| username : natas0 | |
| password : natas0 | |
| url : http://natas1.natas.labs.overthewire.org | |
| username : natas1 | |
| password : gtVrDuiDfck831PqWsLEZy5gyDz1clto | |
| url : http://natas2.natas.labs.overthewire.org | |
| username : natas2 |