Skip to content

Instantly share code, notes, and snippets.

View wd15's full-sized avatar

Daniel Wheeler wd15

View GitHub Profile
@wd15
wd15 / one_record.txt
Last active August 29, 2015 14:15
A sample JSON records export from Sumatra
## This record is from https://drive.google.com/file/d/0B4101gT3tHveSEVyQVRFVHNhbUU/view?usp=sharing
{u'datastore': {u'parameters': {u'root': u'./Data/4e6d840d9723'},
u'type': u'FileSystemDataStore'},
u'dependencies': [{u'diff': u'',
u'module': u'python',
u'name': u'Cython',
u'path': u'/users/wd15/.virtualenvs/fipy/lib/python2.6/site-packages/Cython',
u'source': u'attribute',
u'version': u'0.17.2'},
@wd15
wd15 / script.py
Created February 9, 2015 18:50
sumatra test script
"""
Usage: script.py [<jsonfile>]
Script for testing Sumatra
To set up environment.
$ git init
$ git add script.py
$ git ci -m "First commit."
@wd15
wd15 / d3test.coffee
Last active February 23, 2016 16:05
Trivial D3 example using coffeescript - see https://rawgit.com/wd15/e24ae41d07d5354bd8d7/raw/
theData = [ 1, 2, 3 ]
d3.select("body").selectAll("p")
.data(theData)
.enter()
.append("p")
.text((d) -> d)
@wd15
wd15 / Makefile
Last active August 29, 2015 14:16
Using precompiled Handlebars and Coffeescript with D3
TEMPLATE_DIR = .
TEMPLATES = $(wildcard $(TEMPLATE_DIR)/*.handlebars)
TEMPLATE_JS = ./template.js
.PHONY: handlebars clean
all: handlebars
clean:
rm -rf $(TEMPLATE_JS)
@wd15
wd15 / abstract.md
Last active August 29, 2015 14:17
Abstract for Scipy 2015

A [Cloud Service][sumatra-cloud] to Record Simulation Metadata

[Daniel Wheeler][daniel-wheeler] and Yannick Congo

Thermodynamics and Kinetics Group
Materials Science and Engineering Division
National Institute of Standards and Technology
Gaithersburg, MD

Brief Description

display:
- template: :d3templates.gist-list
gist-list:
- append: $div.row
- selectAll: div.col
- requests:
gist.json: https://api.github.com/users/wd15/gists
call:
- data: :d3.requests.gist
@wd15
wd15 / abstract.md
Last active August 29, 2015 14:18
Angel Investor Competition

A Web Service for Data Driven Simulation Management

[Daniel Wheeler][daniel-wheeler] and Yannick Congo

Thermodynamics and Kinetics Group
Materials Science and Engineering Division
National Institute of Standards and Technology
Gaithersburg, MD

Description

# Daniel Wheeler Projects/Interests
- Name: Data Driven Simulation Mangement (DDSM)
Repositories:
- https://github.com/data-driven-science/ddsm-db
- https://github.com/data-driven-science/ddsm-view
- https://github.com/data-driven-science/ddsm-api
- https://github.com/data-driven-science/ddsm-cloud
- https://github.com/open-research/sumatra
Participants:
;;; git-commit.el --- Major mode for editing git commit messages
;; This software is Copyright (c) 2010 by Florian Ragwitz.
;;
;; This is free software, licensed under:
;; The GNU General Public License, Version 2, June 1991
;; Author: Florian Ragwitz <[email protected]>
;; Version: 0.1
;; Keywords: convenience git
@wd15
wd15 / README.md
Last active March 23, 2016 13:57
Generate a SVG image for SWC Python function documentation

Python Function SVG Image for SWC

Instructions

To generate the image use

$ pygmentize -f svg -O style=colorful -l python -o test.svg code.py

to generate colorized code and then use draw.io to annotate the code. The HTML can be opened in draw.io and edited, see