Skip to content

Instantly share code, notes, and snippets.

View msund's full-sized avatar
🦾

Matthew Sundquist msund

🦾
View GitHub Profile
@msund
msund / MPL
Last active June 14, 2022 03:20
Final version
{
"metadata": {
"name": "Three new matplotlib plots"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
Phase, Impact Area, Possible Behavior Modification, Goal Impacted,
All, BRC waste and greywater, No single-use disposable items,
One, two, BRC waste and greywater, Water only in reusable containers,
One, BRC waste and greywater, Cafe cups as BYO only,
Two, three, BRC waste and greywater, Gasification and incineration,
Two, three, BRC waste and greywater, Compost and treat water at Fly Ranch,
All, BRC waste and greywater, Spur innovation with event theme,
All, BRC materials, Incentivize FSC-certified wood,
All, BRC materials, Source used materials,
All, BRC materials, Use alternatives to replace firewood,
@msund
msund / Plots!
Last active October 10, 2019 23:10
Data Science Demo
{
"metadata": {
"name": "Reproducible figures"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@msund
msund / Ggplots
Created April 16, 2014 07:02
Ggplots
Make your ggplots shareable, collaborative, and with D3
========================================================
[Ggplotly](https://github.com/ropensci/plotly) and [Plotly's R API](https://plot.ly/api/r) let you make ggplot2 plots, add `py$ggplotly()`, and make your plots interactive, online, and drawn with D3. Let's make some.
```{r echo=FALSE}
options(bitmapType="cairo")
#see: http://cran.r-project.org/web/packages/opencpu/NEWS
library(knitr)
@msund
msund / Graphing
Last active June 6, 2016 12:08
All of 'em
{
"metadata": {
"name": "Three new matplotlib plots"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@msund
msund / petition_card_embed
Created April 25, 2016 18:20
Petition card HTML for embeddable widgets
<div class="box box-basic mvn pan embedded-card">
<div class="arrange arrange-middle mvs phm">
<div class="arrange-fit">
<div style="width:34px;">
<div class="flex-embed box box-basic pan mvn">
<div class="flex-embed-ratio"></div>
<div class="flex-embed-content">
<img src="./embedded-petition_files/jZrzAduviWUWJUK-128x128-noPad.jpg">
</div>
</div>
{
"metadata": {
"name": "Gaza-Israel crisis 2012"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
#plot.ly Example
#
#This example plot
#https://plot.ly/~GermanJimenez/0/
import plotly
import os
def collatzDropTime(n):
c = 0
{
"metadata": {
"name": "Plotly and IPython - Multiple Axes, Subplots, and Insets"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
{
"cells": [
{
"cell_type": "markdown",
"metadata": {
"collapsed": false
},
"source": [
"# IPython Notebook Tutorial"
]