- graph representation - https://stackoverflow.com/questions/55505389/how-to-build-this-graph-in-python/55517614#55517614
- detection of anomalous values within a signal, hence a series of values - https://stackoverflow.com/questions/53895442/finding-anomalous-values-from-sinusoidal-data/53900407#53900407
- binary/byte low level operations - https://stackoverflow.com/questions/55523234/efficient-way-to-append-bytes-to-a-word-and-reverse-them/55523858#55523858
- large text processing - https://stackoverflow.com/questions/53795266/iterate-over-huge-text-file-read-chunks-between-two-reoccurring-patterns-using/53795333#53795333
- multiprocessing of large datasets - https://stackoverflow.com/questions/53894014/how-to-efficiently-perform-row-wise-operations-using-pandas/53897491#53897491
- search algorithm within time-complexity bounds - https://stackoverflow.com/questions/55405236/search-in-rotated-sorted-array-in-olog-n-time/55406388#55406388
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
import secrets | |
def generate_django_secret_key(length=50): | |
allowed_chars=( | |
'abcdefghijklmnopqrstuvwxyz' | |
'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789' | |
) | |
return ''.join(secrets.choice(allowed_chars) for i in range(length)) |
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
# Docker | |
# dummy docker containers | |
docker create --name ubuntu_can ubuntu /bin/bash -c "sleep infinity" | |
docker create --name alpine_box alpine /bin/sh -c "sleep infinity" | |
# Image conversion | |
find . -name "*.jpg" -print0 | xargs -0 -I xx convert xx -resize 1920 -quality 85 xx | |
find . -type f -name "*.png" | xargs -I xx basename -s .png xx | xargs -I xx convert xx.png -resize 960 -quality 90 output/xx.jpg |
OlderNewer