This file contains hidden or 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
| from contextlib import contextmanager | |
| from typing import Optional, Generator, Any | |
| from pond import Pond, PooledObjectFactory, PooledObject | |
| @contextmanager | |
| def skim(pond: Pond, | |
| factory: Optional[PooledObjectFactory] = None, | |
| name: Optional[str] = None |
This file contains hidden or 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
| #!/usr/bin/bash | |
| # | |
| # Based off: | |
| # https://www.baeldung.com/linux/command-line-progress-bar | |
| # https://ss64.com/bash/tput.html | |
| # | |
| BAR_CHARS=" ▏▎▍▌▋▊▉█" | |
| BAR_SCALE=2 |
This file contains hidden or 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 java.util.ArrayList; | |
| import java.util.HashMap; | |
| import java.util.List; | |
| import java.util.Map; | |
| import java.util.Objects; | |
| import java.util.concurrent.AbstractExecutorService; | |
| import java.util.concurrent.Callable; | |
| import java.util.concurrent.ExecutorService; | |
| import java.util.concurrent.Future; | |
| import java.util.concurrent.FutureTask; |