Skip to content

Instantly share code, notes, and snippets.

@nucholab
nucholab / py4reticulate.sh
Created December 3, 2019 00:09
Make the pythons built with pyenv usable by the Reticulate R package
env PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install $VERSION
@nucholab
nucholab / srr-analyze.R
Created October 7, 2019 20:50
Plotting and Stats Calculations for 'Librarian Impact on Systematic Reviews' poster for MCMLA2019
# srr-analyze
#
# plots and stats after collecting SR-AMC data
#
# script is part of:
# A Bibliographic Analysis of librarian assistance on SRs at CUAnschutz
# (continuation of Craven/Palmer/Piper project)
# Initialize
library(tidyverse)
@nucholab
nucholab / srr-collect.R
Last active October 11, 2019 20:16
Data Wrangling for 'Librarian Impact on Systematic Reviews' poster for MCMLA2019
# srr-collect
#
# downloads and collects records for systematic and other reviews
# with authors from Anschutz from 2014-2018
#
# script is part of:
# A Bibliographic Analysis of librarian assistance on SRs at CUAnschutz
# (continuation of Craven/Palmer/Piper project)
@nucholab
nucholab / avi2mp4.sh
Last active September 7, 2019 00:27
Oneliner batch convert from AVI to MP4
#!/usr/bin/env bash
for f in *.avi; do ffmpeg -i "$f" -c:a aac -b:a 128k -c:v libx264 -crf 23 "${f%.avi}.mp4"; done

Keybase proof

I hereby claim:

  • I am bioinfowlad on github.
  • I am nucholab (https://keybase.io/nucholab) on keybase.
  • I have a public key ASAlMrWkO56GEGAWbRwOef_G8Rmfv0V4ROHjRlESb8E5mAo

To claim this, I am signing this object:

@nucholab
nucholab / Rmarkdown-setup.el
Last active September 3, 2019 19:10
emacs-lisp code to set up package mgmt and Rmarkdown editing with syntax highlighting and shortcuts
;; This code will do two things:
;; 1) Will set you up with use-package for emacs package management
;; 2) Will set your emacs for Rmarkdown editing with syntax highlighting and shortcuts
;; It assummes the following:
;; 1) You have a recent Emacs (>=24.4 or so) and have minimal customizations
;;
;; TODO: Add functions to knit and preview
;;
;; To use: copy the code below and add it to your .init.el file or equivalent