Skip to content

Instantly share code, notes, and snippets.

View GrantRVD's full-sized avatar

Grant R. Vousden-Dishington GrantRVD

View GitHub Profile

Keybase proof

I hereby claim:

  • I am grantrvd on github.
  • I am grantrvd (https://keybase.io/grantrvd) on keybase.
  • I have a public key ASBn-obTbOAfhNsYsxZdaaPEIGrhK1oHGZ4YEy7SLyewdgo

To claim this, I am signing this object:

@GrantRVD
GrantRVD / AIGrant.md
Created May 14, 2017 04:15
Application for 2017 AIGrant

AIGrant Application

Hi, I'm Nat! I'm giving away five $5,000 grants to people doing open source work in AI. For more information, see the announcement at aigrant.org. Deadline is April 30th @ 12pm Pacific.

Full Name

Grant R. Vousden-Dishington

Email

GMail - GrantRVD

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
# Databricks notebook source exported at Wed, 22 Jul 2015 00:59:51 UTC
# MAGIC %md
# MAGIC ![ML Logo](http://spark-mooc.github.io/web-assets/images/CS190.1x_Banner_300.png)
# MAGIC # **Principal Component Analysis Lab**
# MAGIC #### This lab delves into exploratory analysis of neuroscience data, specifically using principal component analysis (PCA) and feature-based aggregation. We will use a dataset of light-sheet imaging recorded by the [Ahrens Lab](http://www.janelia.org/lab/ahrens-lab) at Janelia Research Campus, and hosted on the CodeNeuro [data repository](http://datasets.codeneuro.org).
# MAGIC #### Our dataset is generated by studying the movement of a larval [zebrafish](http://en.wikipedia.org/wiki/Zebrafish), an animal that is especially useful in neuroscience because it is transparent, making it possible to record activity over its entire brain using a technique called [light-sheet microscopy](http://en.wikipedia.org/wiki/Light_sheet_fluorescence_microscopy). Specifically, we'll work with time-va
@GrantRVD
GrantRVD / BinauralBeatsExperimentalPower
Created July 19, 2015 18:01
Shows the distribution of power v. sample size for several effect sizes with a two-sided paired t-test
library(pwr)
# Set variables
p <- seq(.2, .9, .01)
np <- length(p)
d <- seq(.4, 2.0, .2)
nd <- length(d)
samsize <- array(numeric(np*nd), dim=c(np, nd))
@GrantRVD
GrantRVD / gist:83d10437289b72d052ce
Created May 3, 2015 04:21
OpenBCI onboard modification
/*
*
* >>>> THIS CODE DESIGNED FOR OBCI_8bit board <<<<
*
* This code is written to target an ATmega328P with UNO bootloader.
* Adjust as needed if you are testing on different hardware.
*
*
* Made by Joel Murphy, Luke Travis, Conor Russomanno Summer, 2014.
* SDcard code is based on RawWrite example in SDFat library
@GrantRVD
GrantRVD / makeMaze.m
Last active August 29, 2015 13:58
Function to generate mazes from an old class.
function mz = makeMaze(n)
showProgress = false;
colormap([1,1,1;1,1,1;0,0,0]);
set(gcf,'color','w');
NoWALL = 0;
WALL = 2;
NotVISITED = -1;
VISITED = -2;