Skip to content

Instantly share code, notes, and snippets.

View zmoon's full-sized avatar

Zachary Moon zmoon

View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@zmoon
zmoon / moving-data-var-to-dim.ipynb
Last active August 18, 2022 20:56
Moving xarray data variable to dimension coordinate
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
name: gaussian-plume-voila
channels:
- conda-forge
dependencies:
- jupyterlab>=3,<4
- voila
- ipywidgets
- ipympl
- matplotlib
- numpy
@zmoon
zmoon / pluto-textlatex-test.jl
Created November 14, 2020 02:43
pluto text/latex
### A Pluto.jl notebook ###
# v0.12.10
using Markdown
using InteractiveUtils
# ╔═╡ 5b1616f2-260c-11eb-2c7f-8dfbf877c6c0
using Markdown, LaTeXStrings, SymPy, JuMP
# ╔═╡ ae52c8bc-2611-11eb-3669-df2759d2fad8
@zmoon
zmoon / elePyant_round-bin_optim.ipynb
Created August 22, 2020 16:46
elePyant_round-bin_optim
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@zmoon
zmoon / elePyant_rounder_profiling.ipynb
Last active August 21, 2020 19:03
elePyant_rounder_profiling
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@zmoon
zmoon / elePyant_rounders_test.ipynb
Last active August 11, 2020 16:10
elePyant_rounders_test
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@zmoon
zmoon / test_proplot_tight_options.ipynb
Last active August 4, 2020 01:47
test_proplot_tight_options
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@zmoon
zmoon / daily-note-date-header.py
Created June 30, 2020 02:34
Date progress bars using Python Standard Library
"""
Create a new daily note file.
py36 required
"""
import calendar
import datetime
from pathlib import Path
#!/bin/bash
#
# snippet taken from:
# https://gist.github.com/nanpi/de75bdb73c99b4d241517456c973be20
HTOP_VERSION=2.2.0
INSTALL_DIR=/storage/home/$USER/sw/htop/$HTOP_VERSION
mkdir -p $INSTALL_DIR/local $INSTALL_DIR/tmp