Skip to content

Instantly share code, notes, and snippets.

Avatar

Jody Klymak jklymak

View GitHub Profile
View MITgcm_chaining.md

Chaining multiple MITgcm jobs

These were done for AbHillInter, on the machine koehr.

runAll.sh

#!/bin/sh -l
todo=Iso1kmlowU10Amp305f141B059Wall

one=$(qsub -N $todo -v "start=0, stop=259300, dt=50" runModelRestarts.sh)
two=$(qsub -N $todo -v "start=259200, stop=518500, dt=50" -W depend=afterok:$one runModelRestarts.sh)
View Untitled.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rabernat
rabernat / writeable_mds_store.py
Last active Mar 9, 2018
writable MDS store for dask
View writeable_mds_store.py
class writable_mds_store:
def __init__(self, prefix, iters, suffix='data', dtype='>f4'):
self.prefix = prefix
self.iters = iters
self.suffix = suffix
self.dtype = dtype
def __setitem__(self, idx, data):
# first slice should be the time index
@cleverdevil
cleverdevil / markdown-to-email
Created Jan 4, 2014
markdown-to-email A simple script to send beautifully formatted emails that you write in Markdown. The email will have an HTML payload and a plain-text alternative, so you'll make everyone happy, including yourself.
View markdown-to-email
#!/usr/bin/env python
'''
Send an multipart email with HTML and plain text alternatives. The message
should be constructed as a plain-text file of the following format:
From: Your Name <your@email.com>
To: Recipient One <recipient@to.com>
Subject: Your subject line
---