Skip to content

Instantly share code, notes, and snippets.

@adithyabsk
adithyabsk / 250ChunkSizeResults.txt
Last active July 1, 2018 21:31
Benchmarking multiprocessing w/ initialization w/out initialization w/partial
python3.6 test_pool_map.py without_initializer
aux_data 1,000 ints : 0.126059 secs per iteration 9999000
aux_data 10,000 ints : 0.134954 secs per iteration 9999000
aux_data 100,000 ints : 0.144767 secs per iteration 9999000
aux_data 1,000,000 ints : 0.238309 secs per iteration 9999000
aux_data 10,000,000 ints : 1.329838 secs per iteration 9999000
python3.6 test_pool_map.py with_partial
aux_data 1,000 ints : 0.134125 secs per iteration 9999000
aux_data 10,000 ints : 0.144146 secs per iteration 9999000
aux_data 100,000 ints : 0.145000 secs per iteration 9999000
@adithyabsk
adithyabsk / install_pyenv.sh
Last active June 21, 2019 18:04
Install Pyenv
curl https://pyenv.run | bash
pyenv install 3.6.8
pyenv install 3.7.3
pyenv global 3.6.8
@adithyabsk
adithyabsk / install_poetry.sh
Created June 21, 2019 18:05
Install Poetry
pyenv shell system
curl -sSL https://raw.githubusercontent.com/sdispater/poetry/master/get-poetry.py | python
pyenv shell --unset
@adithyabsk
adithyabsk / poetry_crash.txt
Created June 25, 2019 22:56
Poetry Crashes
##[section]Starting: Install all packages
==============================================================================
Task : Command line
Description : Run a command line script using Bash on Linux and macOS and cmd.exe on Windows
Version : 2.151.1
Author : Microsoft Corporation
Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/command-line
==============================================================================
Generating script.
Script contents:
@adithyabsk
adithyabsk / towncrier
Created July 25, 2019 06:05
Run Towncrier
poetry run towncrier --draft
poetry run towncrier
@adithyabsk
adithyabsk / pypi_publish.sh
Created July 25, 2019 19:24
Publish to pypi
poetry publish
@adithyabsk
adithyabsk / sphinx_setup
Created July 25, 2019 21:36
Setup sphinx
mkdir doc
cd doc
sphinx-quickstart # follow the instructions
# If you would like a fully configured example run the below command
# curl https://raw.githubusercontent.com/adithyabsk/simplecalc/master/doc/conf.py -o conf_simplecalc.py
@adithyabsk
adithyabsk / build_docs
Created July 25, 2019 22:54
Build Sphinx Docs
cd doc
make html
open _build/html/index.html # Opens in browsers on macOS
@adithyabsk
adithyabsk / switch_branch.sh
Last active July 31, 2019 19:26
Switch Branch
git checkout tool_useage_example
# Switched to branch 'tool_useage_example'
# Your branch is up to date with 'origin/tool_useage_example'.
@adithyabsk
adithyabsk / commit.sh
Last active July 31, 2019 19:33
Commit changes
git commit -m "Fix errors"
# seed isort known_third_party.............................................Passed
# isort....................................................................Passed
# black....................................................................Passed
# Flake8...................................................................Passed