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 / set_up_virtualenv.sh
Last active July 5, 2022 13:08
Set up virtualenv
cd simplecalc
pyenv virtualenv 3.6.8 simplecalc
pyenv local simplecalc 3.6.8 3.7.3
# pyenv virtualenv [VERSION] [NAME]
# pyenv local [VERSION...]
# Note that you can use your venv in place of a "version"
@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 / gitrepo
Last active August 1, 2019 17:15
Clone simplecalc
git clone -b tool_usage_example https://github.com/adithyabsk/simplecalc.git
@adithyabsk
adithyabsk / installdeps
Last active July 31, 2019 20:33
Install dependencies
poetry install -E doc
@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