7 commits, 29 files changed — +399 / -227 lines
go.moddirective upgraded from Go 1.17 → 1.26.1;toolchaindirective added.tools.gobuild tag migrated from//+buildto//go:buildsyntax.
| from collections import defaultdict | |
| from decimal import Decimal, ROUND_HALF_UP | |
| # ----------------------------- | |
| # Configuration | |
| # ----------------------------- | |
| PEOPLE = ["Buro", "Tablu", "Shreshtha", "Meghna", "Sayani"] | |
| # All expenses: (amount, paid_by) |
Backend Engineer | Golang | Python | Cloud | Distributed Systems
A skilled backend engineer with over 8 years of experience in designing, developing, and maintaining backend/platform services, infrastructure, and tooling. Proficient in Golang, Python, Postgres, Kafka, AWS, GCP, and Linux. Loves contributing to open-source over the weekends.
This is a utility script that generates md5 hash and sha1 hash of all files present in a directory/subdirectory and outputs the same in txt files.
Run the following command to execute the utility script.
PS C:\Users\debapriya.das\Desktop> python .\hashcode_muncher.py
usage: hashcode_muncher.py [-h] dir_path
hashcode_muncher.py: error: the following arguments are required: dir_path
| somevalue = True | |
| while (somevalue): | |
| # do whatever shit you are doing | |
| if input == 0: | |
| # if this is a switch case, put this inside a switch statement | |
| # python does not have a switch statement | |
| somevalue = False |
| somevalue = True | |
| while (somevalue): | |
| # do whatever shit you are doing | |
| if input == 0: | |
| # if this is a switch case, put this inside a switch statement | |
| # python does not have a switch statement | |
| somevalue == False |
| def timeit(method): | |
| def timed(*args, **kw): | |
| ts = time.time() | |
| result = method(*args, **kw) | |
| te = time.time() | |
| if 'log_time' in kw: | |
| name = kw.get('log_name', method.__name__.upper()) | |
| kw['log_time'][name] = int((te - ts) * 1000) | |
| else: | |
| print '%r %2.2f ms' % \ |
| Have a python3 setup ready! | |
| Install docx from pip | |
| ~/Desktop/awesome-performance-test-framework master ✗ 6h8m ✖ ⚑ ◒ | |
| ▶ pip install --pre python-docx | |
| Collecting python-docx | |
| Downloading https://files.pythonhosted.org/packages/e4/83/c66a1934ed5ed8ab1dbb9931f1779079f8bca0f6bbc5793c06c4b5e7d671/python-docx-0.8.10.tar.gz (5.5MB) | |
| |████████████████████████████████| 5.5MB 9.2MB/s | |
| Requirement already satisfied: lxml>=2.3.2 in ./venv/lib/python3.7/site-packages (from python-docx) (4.4.2) |
| 968c1d4e3784a9c5e7180cf7959edb708d8222192c633d0c707b117fa8fd962e77b4003f87b8459d9583cd4dd8deaf357cbb13b583e913a2eb8eca3a486399e0 |