Skip to content

Instantly share code, notes, and snippets.

View christophergeiger3's full-sized avatar

Christopher Geiger christophergeiger3

View GitHub Profile
@christophergeiger3
christophergeiger3 / build_cesm2.sh
Last active May 7, 2020 21:13
Build cesm2 easily
#!/bin/bash
[[ "$1" = "-h" ]] && printf "Usage: $0 [VERSION]\nDefaults to cesm2.1.1\n" && exit
[[ -z "$1" ]] && version=2.1.1 || version="$1"
dirname="cesm${version}"
git clone -b "release-cesm${version}" https://github.com/ESCOMP/CESM.git "$dirname"
cd "$dirname" && ./manage_externals/checkout_externals
:syntax on
:let html_use_css=0
:set bg=light
:set number
:TOhtml
:wq %
:q
@christophergeiger3
christophergeiger3 / HTML_Tagger.py
Last active July 12, 2018 15:42
A quick tool that can be used to generate HTML strings in Python3
# Let me know if you found this helpful!
class tag:
""" Class to help speed up/clarify HTML tagging """
""" See usage example: https://gist.github.com/christophergeiger3/f472685a70d09a174be6b04a75c5ac4c """
def __init__(self):
self.stack = []
self.indent = 0
self.ret = []
self.indent_size = "\t"