Skip to content

Instantly share code, notes, and snippets.

View pedmiston's full-sized avatar

Pierce Edmiston pedmiston

  • Madison, WI
View GitHub Profile

Keybase proof

I hereby claim:

  • I am pedmiston on github.
  • I am pedmiston (https://keybase.io/pedmiston) on keybase.
  • I have a public key ASBMxirxutrGd8yGiOzL-ANO20Hfn-wlg4QGIyfMjk_obQo

To claim this, I am signing this object:

@pedmiston
pedmiston / pandoc-formats.R
Last active August 20, 2017 21:38
A redesign of the pandoc diagram using ggraph
# A redesign of the pandoc diagram <http://pandoc.org/diagram.jpg>
# Pierce Edmiston
library(dplyr)
library(ggraph)
input_formats <- system("pandoc --list-input-formats", intern = TRUE)
output_formats <- system("pandoc --list-output-formats", intern = TRUE)
nodes <- data_frame(
@pedmiston
pedmiston / psychobreak.py
Last active December 3, 2016 18:12
Run a two part psychopy experiment with a browser visit in between. Sometimes it's necessary to bring up a webbrowser during an otherwise full screen psychopy experiment. Rather than trying to maintain a single window object across both parts, it sometimes works better to make the window once, shutting it down, and then remaking it when necessary.
#!/usr/bin/env python
"""Run a two part experiment with a webbrowser visit in between."""
from psychopy import visual, event, gui
import webbrowser
class Experiment(object):
def __init__(self):
"""Start the experiment for this subject.
@pedmiston
pedmiston / visualizing-lmer.Rmd
Created November 2, 2014 03:15
Visualizing lmer model random effects
---
title: "Visualizing lmer model random effects"
author: "Pierce Edmiston"
date: "November 1, 2014"
output: html_document
---
I'll be exploring the differences between these three models:
```{r, eval = FALSE}