Skip to content

Instantly share code, notes, and snippets.

View cgranade's full-sized avatar

Cassandra Granade cgranade

View GitHub Profile
@cgranade
cgranade / x
Created November 13, 2008 21:16
Basic first attempt at a command to run programs on the shell.
/* This is a template command */
CmdUtils.CreateCommand({
name: "shell",
icon: "http://example.com/example.png",
homepage: "http://sites.google.com/site/cgranade/",
author: { name: "Christopher Granade", email: "cgranade@gmail.com"},
license: "GPL",
description: "A short description of your command",
#!/usr/bin/python
##
# overlay.py: small daemon for showing web pages in an overlay
##
# (c) 2010 Christopher E. Granade (cgranade@gmail.com).
# Licensed under GPL v3.
##
# WARNING: This is still a proof of concept. Do not use it
# without improving it first, unless you plan on filing bug
@cgranade
cgranade / storyyield.py
Created November 2, 2011 04:47
Proof of concept for story scripting in Python with coroutines.
#!/usr/bin/python
##
# storyyield.py: Proof of concept for story scripting in Python with coroutines.
##
# (c) 2011 Christopher E. Granade (cgranade@cgranade.com).
# Licensed under GPL v3.
##
from __future__ import print_function
#!/usr/bin/env mpiexec -n 4 python
# -*- coding: utf-8 -*-
##
# ssp.py: Demonstration of stupid simple pooling using mpi4py.
##
# By Christopher E. Granade, 2013.
# Commited to the public domain except where otherwise noted.
##
## IMPORTS #####################################################################
@cgranade
cgranade / log_calls.py
Created August 13, 2013 02:34
This module demonstrates a basic application of the Python Standard Library's logging module by using logging to implement a decorator that logs all calls to a function, method or property.
#!/usr/bin/python
# -*- coding: utf-8 -*-
##
# log_calls.py: Decorator for logging calls to a function.
##
# © 2013 Christopher E. Granade (cgranade@gmail.com).
#
# Licensed under the AGPL version 3.
##
# This program is free software: you can redistribute it and/or modify
@cgranade
cgranade / Animations.ipynb
Last active January 16, 2016 04:37
Practical Bayesian Tomography: Supplementary Material
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@cgranade
cgranade / dnorm-known-cases-qu-matlab.ipynb
Created March 17, 2016 06:45
Known Cases for the Diamond Norm
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@cgranade
cgranade / conf.py
Created March 21, 2016 06:24
Bug in IPython.sphinxext.ipython_directive.
# -*- coding: utf-8 -*-
#
# IPython Bug Report documentation build configuration file, created by
# sphinx-quickstart on Mon Mar 21 17:17:53 2016.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.