Skip to content

Instantly share code, notes, and snippets.

View naupaka's full-sized avatar

Naupaka Zimmerman naupaka

View GitHub Profile
List of microbial ecology talks at the 2014 ESA meeting in Sacramento
Feel free to add your favorite talks
Workshops of Interest
| Day | Time | Session | Organizer |
|----------|---------------|------------------------------------------------------------|----------------------------|
|Sunday | 8-5 | Env Seq Approaches and Comp Tools for Ecologists | Holly Bik |
|Monday | 11:30-1:15 | Viz w/ Radioisotopes for Plant/Microbe Metabolite Transfer | Chantal D. Reid |
Sessions of Interest

Keybase proof

I hereby claim:

  • I am naupaka on github.
  • I am naupaka (https://keybase.io/naupaka) on keybase.
  • I have a public key whose fingerprint is 0484 054E D8DF FEEB 058C 51D5 2AA5 418D EF75 9091

To claim this, I am signing this object:

@naupaka
naupaka / reimbursement-template.org
Last active September 4, 2015 17:34
Org-mode reimbursement template for emacs. If you have org-mode installed, C-c C-c on the formula updates the table calculation to sum the expenses column. C-c C-e l o to generate the TeX and pdf and open it in your pdf viewer app.

Reimbursement Request

Expenses (receipts or other documentation attached):

Cost ($)Item(s)
@naupaka
naupaka / add_date.sh
Created September 15, 2015 06:00
zsh script to pull a date string from a parent directory and write it into an image file's EXIF metadata
#!/bin/zsh
# Script to add back in missing EXIF creation data metadata using
# exiftool, based on parent folder (which contains date information)
# Naupaka Zimmerman
# naupaka at gmail.com
# September 14, 2015
# Code is licensed CC-0
# Set file incrementer
@naupaka
naupaka / Chirp Arduino example
Created June 9, 2016 23:39 — forked from Miceuz/Chirp Arduino example
Chirp Arduino example
/*
Chirp - arduino example
Connection
Chirp pin 1 - no connection
Chirp pin 2 - Arduino VCC
Chirp pin 3 - Arduino A5
Chirp pin 4 - Arduino A4
Chirp pin 5 - Arduino pin 2
Chirp pin 6 - Arduino GND
@naupaka
naupaka / upgrade_packages.R
Created April 24, 2017 15:52 — forked from bearloga/upgrade_packages.R
The script can be used to re-install packages after upgrading R (on Linux or Mac), since libraries cannot be reused between different minor versions (e.g. when upgrading 3.2.3 to 3.3.2). It detects when a package was installed from CRAN vs GitHub/Git and re-installs it using the appropriate func. Usage: `Rscript upgrade_packages.R`
# WMF only:
if (file.exists("/etc/wikimedia-cluster")) {
message('Detected that this script is being run on a WMF machine ("', Sys.info()["nodename"], '"). Setting proxies...')
Sys.setenv("http_proxy" = "http://webproxy.eqiad.wmnet:8080")
Sys.setenv("https_proxy" = "http://webproxy.eqiad.wmnet:8080")
}
# General use:
message("Checking for a personal library...")
if (!dir.exists(Sys.getenv("R_LIBS_USER"))) {
@naupaka
naupaka / find_local_tweeps.R
Created September 11, 2017 07:27 — forked from noamross/find_local_tweeps.R
A visit to Durham
library(rtweet) #rtweet API creds should already be set up
library(stringi)
library(dplyr)
friends = get_friends(user="noamross")
followers = get_followers("noamross")
tweeps_id = distinct(bind_rows(friends, followers))
tweeps_info = lookup_users(tweeps_id$user_id)
# A regex for a visit to Durham
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@naupaka
naupaka / BEtoOPML.scpt
Created December 29, 2017 20:34 — forked from iandol/BEtoOPML.scpt
Bookends to OPML Exporter — Applescript by Dave83 with some further tweaks; see https://www.sonnysoftware.com/phpBB3/viewtopic.php?f=6&t=3882
--Script to Export Bookends Notes to OPML file v1.15
--Written by Dave Glogowski (modified by iandol)
--07 August 2017
--
--This script converts Bookends references and associated notes into an OPML structured file which can then be imported into Scrivener's research folder.
--Each reference is a top level card which contains the Title, Author, Date, Type, Publisher, Abstract, and Bookends citation key
--If there are notes associated with a reference, each note creates its own subordinate note card with the Page number (if any), note header, quotes,
--comments, and keywoards (tags). This allows you to individually review each comment and change its status (label) within Scrivener.
--
--The script does some error checking as follows:
#!/usr/bin/env Rscript
json_in <- file('stdin', 'r')
lat_newp <- '{"t":"RawBlock","c":["latex","\\\\newpage"]}'
doc_newp <- '{"t":"RawBlock","c":["openxml","<w:p><w:r><w:br w:type=\\"page\\"/></w:r></w:p>"]}'
ast <- paste(readLines(json_in, warn=FALSE), collapse="\n")