This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Script to create Emacs.app that will be placed in Applications folder. | |
# This is cobbled together from two sources. All credit to them, unless it | |
# doesn't work, in which case, errors are my fault: | |
# | |
# (1) https://github.com/railwaycat/homebrew-emacsmacport/blob/master/docs/emacs-start-helpers.md | |
# (2) https://mathiasbynens.be/notes/shell-script-mac-apps | |
# You may need to make the script executable on your machine. In terminal |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; $DOOMDIR/config.el -*- lexical-binding: t; -*- | |
;; -- GENERAL SETTINGS --------------------------------------------------------- | |
;; theme | |
(setq doom-theme 'doom-zenburn) | |
;; yes to line numbers | |
(setq display-line-numbers-type t) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# 1. Save script as mkv2mp4.sh | |
# 2. chown +x mkv2mp4.sh | |
# 3. Use to convert default OBS *.mkv files to *.mp4 files that work with Canvas LMS | |
usage() | |
{ | |
cat <<EOF | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ------- | |
# .bashrc | |
# ------- | |
# fix colors | |
export TERM=xterm-256color | |
# add to path | |
export PATH="/usr/local/opt:/usr/local/opt/ruby/bin:$PATH" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# --------- | |
# .Renviron | |
# --------- | |
PKG_CONFIG_PATH=/opt/X11/lib/pkgconfig |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -------- | |
# Makevars | |
# -------- | |
# Homebrew bin / opt / lib locations | |
HB=/usr/local/bin | |
HO=/usr/local/opt | |
HL=/usr/local/lib | |
# ccache |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################################################################ | |
## | |
## <PROJ> Add variable / value labels to IPEDS data in R | |
## <FILE> label_ipeds.r | |
## <AUTH> Benjamin Skinner @btskinner | |
## <INIT> 12 July 2018 | |
## | |
################################################################################ | |
## USAGE ----------------------------------------------------------------------- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# make_data.R | |
Rscript make_data.R | |
# analysis.do | |
stata -b analysis.do | |
# graphics.R | |
Rscript graphics.R |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(dplyr) | |
library(tidyr) | |
## make wide toy data | |
df <- data.frame(schid = c('A','B','C','D'), | |
year = 2013, | |
var_x = 1:4, | |
var_y = 5:8, | |
var_z = 9:12, | |
stringsAsFactors = FALSE) %>% |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# PURPOSE | |
# | |
# To fix {{...}} used by BibDesk that don't play well with Jekyll scholar. | |
# Replaces {{...}} with "{...}". This respects capitalization and corporation | |
# names in the author field, but doesn't break Jekyll scholar. | |
# | |
# USAGE | |
# |
NewerOlder