brew install direnvecho 'eval "$(direnv hook bash)"' >> ~/.bashrc# and restart terminaldirenv version
python3 -m venv .venv# python or python3 should already be installedecho 'source .venv/bin/activate' > .envrc
Over a period of time, I started collecting technical papers that I would, given time and energy, like to implement an open source version of it. I use this to collect some such papers with the status of implementation for each. These papers have only one constraint and that is they should be simplistic enough to be able to implement within < 5000 LOC. I have also captured whether a paper has been implemented or not and if yes then in which language.
| Papers | Implemented ? | Language | Repo |
|---|---|---|---|
| Automatic Keyword Extraction from Individual Documents by Rose et.al. | Yes | Java | https://github.com/beyonddream/JRAKE |
| #!/usr/bin/env python3 | |
| from typing import List | |
| def binary_search(arr: List[int], target: int) -> int: | |
| """ | |
| >>> arr = [3, 6, 12, 18] | |
| >>> target = 12 | |
| >>> binary_search(arr, target) | |
| """ |
| #!/usr/bin/env python3 | |
| # Tested with python 3.8.5 | |
| # Dependency: | |
| # | |
| # pip install PyGithub | |
| # | |
| # Usage: | |
| # | |
| # chmod +x bulk_move_forks.py |
$ virtualenv -p python3 venv
$ source venv/bin/activate
$ deactivate
https://www.bitecode.dev/p/relieving-your-python-packaging-pain
| macos - pbcopy | |
| linux - xclip -selection clipboard |
| # needed below dependencies to be installed (cmake, libcurses) | |
| sudo apt-get install cmake libncurses5-dev libncursesw5-dev | |
| # from https://github.com/Valloric/YouCompleteMe/wiki/Building-Vim-from-source | |
| # make | |
| git clone https://github.com/vim/vim.git | |
| cd vim | |
| ./configure --with-features=huge \ | |
| --enable-multibyte \ |