Skip to content

Instantly share code, notes, and snippets.

View rcomer's full-sized avatar
🐇

Ruth Comer rcomer

🐇
View GitHub Profile
@bjlittle
bjlittle / vaccination.py
Created May 23, 2021 22:01
vaccination progress bar
import os
import sys
from time import sleep
from tqdm import trange
os.system("clear")
os.system("setterm -cursor off")
print("\n" * 12)
@spothapragada
spothapragada / matplotlibrc
Created December 1, 2019 05:26
Supermongo Style Matplotlib plots
# This is supermongo style matplotlib plots
# Increase the default DPI, and change the file type from png to pdf
savefig.dpi : 300
savefig.extension : pdf
# Simplify paths by removing "invisible" points, useful for reducing
# file size when plotting a large number of points
path.simplify : True
@matthewrmshin
matthewrmshin / mysleepypool.py
Created August 21, 2018 11:52
Quick Python concurrent multiprocessing.Process example
#!/usr/bin/env python
from multiprocessing import Process
import sys
from time import sleep
POLL_DURATION = 0.01
def worker(sleeptime, message):
@bskinn
bskinn / intersphinx_mappings.txt
Last active May 31, 2024 17:54
Various intersphinx mappings
# The entries in this file are checked regularly for validity via the Github Action
# sited at github.com/bskinn/intersphinx-gist.
# Please feel free to post an issue at that repo if any of these mappings don't work for you,
# or if you're having trouble constructing a mapping for a project not listed here.
Python 3 [latest]: ('https://docs.python.org/3/', None)
Python 3 [3.x]: ('https://docs.python.org/3.9/', None)
attrs [stable]: ('https://www.attrs.org/en/stable/', None)
Django [dev]: ('https://docs.djangoproject.com/en/dev/', 'https://docs.djangoproject.com/en/dev/_objects/')
Flask [2.2.x]: ('https://flask.palletsprojects.com/en/2.2.x/', None)
@ycopin
ycopin / taylorDiagram.py
Last active May 19, 2024 06:06
Taylor diagram for python/matplotlib [ 10.5281/zenodo.5548061 ]
#!/usr/bin/env python
# Copyright: This document has been placed in the public domain.
"""
Taylor diagram (Taylor, 2001) implementation.
Note: If you have found these software useful for your research, I would
appreciate an acknowledgment.
"""