Skip to content

Instantly share code, notes, and snippets.

test_badges.py::test_badges <paragraph classes="tags"><inline>Tags: </inline><pending_xref classes="sd-sphinx-override sd-badge sd-bg-primary sd-bg-text-primary" refdoc="page_1" refdomain="" refexplicit="True" reftarget="_tags/tag-1" reftype="any" refwarn="True"><inline classes="xref any">tag-1</inline></pending_xref></paragraph>
<paragraph classes="tags"><inline>Tags: </inline><pending_xref classes="sd-sphinx-override sd-badge sd-bg-primary sd-bg-text-primary" refdoc="page_1" refdomain="" refexplicit="True" reftarget="_tags/tag-1" reftype="any" refwarn="True"><inline classes="xref any">tag-1</inline></pending_xref><inline> </inline><pending_xref classes="sd-sphinx-override sd-badge sd-bg-secondary sd-bg-text-secondary" refdoc="page_1" refdomain="" refexplicit="True" reftarget="_tags/tag-2" reftype="any" refwarn="True"><inline classes="xref any">tag-2</inline></pending_xref></paragraph>
<paragraph classes="tags"><inline>Tags: </inline><pending_xref classes="sd-sphinx-override sd-badge sd-bg-primary sd-bg-text
@story645
story645 / rcParams.md
Created October 19, 2023 20:49
validation functions for params
validator function # rcparams rcParams
0 validate_bool 71 backend_fallback, interactive, webagg.open_in_browser, lines.antialiased, lines.scale_dashes, pcolormesh.snap, patch.force_edgecolor, patch.antialiased, boxplot.notch, boxplot.vertical, boxplot.patchartist, boxplot.showmeans, boxplot.showcaps, boxplot.showbox, boxplot.showfliers, boxplot.meanline, text.usetex, text.antialiased, text.parse_math, image.resample, image.composite_image, contour.corner_mask, axes.spines.left, axes.spines.right, axes.spines.bottom, axes.spines.top, axes.grid, axes.formatter.use_locale, axes.formatter.use_mathtext, axes.formatter.useoffset, axes.unicode_minus, polaraxes.grid, axes3d.grid, axes3d.automargin, 'date.interval_multiples', legend.fancybox, legend.shadow, legend.frameon, xtick.top, xtick.bottom, xtick.labeltop, xtick.labelbottom, xtick.minor.visible, xtick.minor.top, xtick.minor.bottom, xtick.major.top, xtick.major.bottom, ytick.left, ytick.right, ytic
import matplotlib
import matplotlib.pyplot as plt
import matplotlib.patches as mpatches
matplotlib.rc('axes',edgecolor='gray', labelcolor='gray')
matplotlib.rc('xtick', labelcolor='gray', color='gray')
matplotlib.rc('ytick', labelcolor='gray', color='gray')
fig, axes = plt.subplots(nrows=7, ncols=2,
HTTP/1.1 200 OK
Accept-Ranges: bytes
Content-Length: 1415
X-GitHub-Request-Id: CF82:3736:92844B:184904F:5FA1C50C
X-Ratelimit-Limit: 60
X-Ratelimit-Remaining: 59
X-Ratelimit-Reset: 1604440860
X-Ratelimit-Used: 1
access-control-allow-origin: *
access-control-expose-headers: ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, Deprecation, Sunset
numpy
scipy
matplotlib
cartopy
netCDF4
xarray
pandas
geopandas
geoplot
scikit-image
def to24(time):
try:
hour, minute, local = time.split(":")
except (ValueError, AttributeError):
return time
h = int(hour)
m = int(minute)
if time.endswith('AM'):
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.ticker as mticker
fig, ax = plt.subplots()
s = ax.scatter([0, .5, 1], [1, .5, 0], c=[1,2,3],
edgecolor='k', s=1000, zorder=10)
im = ax.matshow([[1,1,1],[2,2,2],[3,3,3]], cmap='RdBu')
fig.colorbar(s)
fig.colorbar(im)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@story645
story645 / hw6_readme.md
Created May 23, 2019 20:03
Homework 6 Readme

Using the linked list class from homework 3, implement a queue class with the following methods:

  1. push
  2. pop
  3. front
  4. back

Then use that queue to solve the following problem:

Write a simulation program of the lines at a grocery store. The program will be similar to the car wash simulation, except that there