I hereby claim:
- I am eindiran on github.
- I am eindiran (https://keybase.io/eindiran) on keybase.
- I have a public key ASCeUhGOouJJHLdz5j6_6EAdj0vzQGZc5p7_AJy1w4eswgo
To claim this, I am signing this object:
| "--------------------------------------------------------------------- | |
| " | |
| " FILE: .alt-vimrc | |
| " DESCRIPTION: An alternate .vimrc intended to be extremely | |
| " light-weight. Loads no plugins, etc. | |
| " AUTHOR: Elliott Indiran | |
| " | |
| "--------------------------------------------------------------------- | |
| set number | |
| set tabstop=4 |
| #!/usr/bin/env python3 | |
| """ | |
| plot_series_convergence.py | |
| Plot Gregory's series and Madhava's series | |
| to demonstrate their convergence speed. | |
| Here we refer to Madhava's series as the rapidly converging series | |
| pi = sqrt(12) * (1 - 1/(3 * 3) + 1/(3 * 5^2) - 1/(3 * 7^3)) | |
| which is described here: |
| #!/usr/bin/env python3 | |
| # -*- coding: utf8 -*- | |
| """ | |
| Automatically post new articles (in the _posts directory for a Jekyll site) to | |
| a Mastodon instance. | |
| Elliott Indiran <[email protected]> | |
| """ | |
| from pathlib import Path | |
| from typing import Optional |
| #!/usr/bin/env python3 | |
| """ | |
| plot_series_convergence.py | |
| Plot Gregory's series and Madhava's series | |
| to demonstrate their convergence speed. | |
| Here we refer to Madhava's series as the rapidly converging series | |
| pi = sqrt(12) * (1 - 1/(3 * 3) + 1/(3 * 5^2) - 1/(3 * 7^3)) | |
| which is described here: |
| #!/usr/bin/env bash | |
| #=============================================================================== | |
| # | |
| # FILE: autohide_panel.sh | |
| # | |
| # USAGE: ./autohide_panel.sh -p <panelId> | |
| # | |
| # DESCRIPTION: Toggle the autohide and autohide behavior properties of an | |
| # XFCE panel, which control whether it is visible or not. | |
| # This script was inspired by the code snippet for autohiding |
I hereby claim:
To claim this, I am signing this object:
| """ | |
| pause_garbage_collection | |
| Creates a contextmanager to pause garbage collection. | |
| Garbage may still be collected explicitly via `gc.collect()` | |
| with pause_garbage_collection(): | |
| foo() | |
| bar() | |
| """ |
| extract () { | |
| # Extract the contents of a compressed file | |
| # Most common archive types are currently supported | |
| # Support for new types can be added using the "case" block below: | |
| if [ -f "$1" ] ; then | |
| # Check that a file actually exists at $1 | |
| echo "Trying to extract file '$1'..." | |
| case "$1" in | |
| *.tar.bz2) tar xvjf "$1" ;; | |
| *.tar.gz) tar xvzf "$1" ;; |