Skip to content

Instantly share code, notes, and snippets.

View mbstacy's full-sized avatar

Mark Stacy mbstacy

  • Harvard University
  • Boston, MA
  • 23:30 (UTC -05:00)
View GitHub Profile
@mbstacy
mbstacy / attains_styles.css
Last active December 17, 2015 03:18
Load EPA impaired waters scraped tables in dashboard
#content a.metadata
{
color:#006699;
cursor:help;
}
#content a.description
{
color:#006699;
cursor:help;
<html>
<head>
<script type="text/javascript" src="http://static.cybercommons.org/js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="http://static.cybercommons.org/js/jquery.flot.js"></script>
<script type="text/javascript" src="http://static.cybercommons.org/js/jquery.flot.time.js"></script>
</head>
<style>
.placeholder{
width:800px;
height:540px;
@mbstacy
mbstacy / fread.py
Created June 8, 2012 14:47
DDA code for TECO
import sys
from numpy import *
def readobs(filename,headlen=1):
"Read the observational file for the TECO model"
obs=loadtxt(filename,skiprows=headlen)
return obs
def readinit(filename,headlen=0):
"Read initial conditions for TECO model"
initcon=loadtxt(filename,skiprows=headlen)