Skip to content

Instantly share code, notes, and snippets.

#
ssh-keygen -t rsa -C "dpb6@duke.edu"
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_rsa
git config --global user.email "dpb6@duke.edu"
git config --global user.name "David Bradway"
@davidbradway
davidbradway / countries.json
Last active August 15, 2016 15:16
learning topojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@davidbradway
davidbradway / README.md
Created August 11, 2016 18:42 — forked from jasondavies/README.md
World Map

Based on Mike Bostock’s [World Map][0], modified to automatically colour countries such that no adjacent countries share the same colour.

This is done by extracting the topology via [TopoJSON][1] and greedily picking colours until the constraint is fulfilled.

See also: [Graph coloring][2] on Wikipedia.

Update: Greedily colouring is now performed in a single line, thanks to Mike Bostock!

@davidbradway
davidbradway / .block
Last active August 11, 2016 18:29 — forked from armollica/.block
HTML Annotation
height: 960
@davidbradway
davidbradway / LeapMotionPushoverShare.py
Created October 30, 2015 01:42
Python program to detect Leap Motion 'Screen Tap' events and pass them as messages via the Pushover web service.
#! python
################################################################################
# Copyright (C) 2012-2013 Leap Motion, Inc. All rights reserved. #
# Leap Motion proprietary and confidential. Not for distribution. #
# Use subject to the terms of the Leap Motion SDK Agreement available at #
# https://developer.leapmotion.com/sdk_agreement, or another agreement #
# between Leap Motion and you, your company or other organization. #
################################################################################
@davidbradway
davidbradway / LabLunch20150206.md
Last active August 29, 2015 14:14
Notes from Trahey Lab Lunch

Lab Lunch Notes

Announcements

  • Grants
    • Micro-E Not funded
    • Impact on Hiring - not recruiting new grad students
    • Write SSA grant
  • Facilities changes
    • BME Staff will move from Annex and Hudson to CIEMAS
  • New Faculty and students will be moved to Annex
@davidbradway
davidbradway / k_space lecture.md
Last active August 29, 2015 14:14
Lecture from K-Space Speckle Class

K-Space Lecture

2015/02/05

Ultrasound and laser light

  • Both are broadband coherent radiation sources
  • The more narrowband a laser, the more its image is like a speckle ultrasound image

Speckle Statistics

  • First-order Statistics
  • Mean speckle brightness and distribution
@davidbradway
davidbradway / markdown.md
Created January 25, 2015 23:52
Markdown Syntax Example from Mou

Mou

Mou icon

Overview

Mou, the missing Markdown editor for web developers.

Syntax

@davidbradway
davidbradway / stop_motion.md
Created January 25, 2015 23:47
Stop Motion Video in Ubuntu using Webcam

#Stop Motion

Did this using the Acer laptop webcam using Ubuntu

Install stuff we need

sudo apt-get install cheese streamer avconc

make a directory for the files

@davidbradway
davidbradway / rpi.md
Last active June 19, 2021 11:30
Raspberry Pi setup commands
startx
ifconfig
sudo nano /etc/network/interfaces 
sudo ifconfig
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install git

# Setup some Python stuff