This file contains 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 | |
# drop this in .git/hooks/, and chmod +x .git/hooks/pre-push | |
# store current branch | |
cur_branch=$(git rev-parse --abbrev-ref HEAD) | |
if [[ $cur_branch == "gh-pages" ]] | |
then | |
# bail out if we're trying to push the gh-pages branch (to prevent infinite loop) | |
exit 0 | |
else |
This file contains 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
--- | |
title: "You kids play nice now" | |
output: | |
html_document: | |
keep_md: true | |
md_extensions: +implicit_figures | |
pandoc_args: | |
- --filter | |
- pandoc-fignos | |
references: |
This file contains 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
;; reftex in markdown mode | |
;; if this isn't already set in your .emacs | |
(setq reftex-default-bibliography '("/path/to/library.bib")) | |
;; define markdown citation formats | |
(defvar markdown-cite-format) | |
(setq markdown-cite-format | |
'( | |
(?\C-m . "[@%l]") |
This file contains 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
- # Formulas for representing and working with linear-model-type expressions | |
- # Original by Harlan D. Harris. Later modifications by John Myles White | |
- # and Douglas M. Bates. | |
- | |
- ## Formulas are written as expressions and parsed by the Julia parser. | |
- ## For example :(y ~ a + b + log(c)) | |
- ## In Julia the & operator is used for an interaction. What would be written | |
- ## in R as y ~ a + b + a:b is written :(y ~ a + b + a&b) in Julia. | |
- ## The equivalent R expression, y ~ a*b, is the same in Julia | |
- |
This file contains 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
git clone --bare git@github.com:kleinschmidt/dotfiles.git $HOME/.cfg | |
function config { | |
/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME $@ | |
} | |
mkdir -p .config-backup | |
config checkout $* | |
if [ $? = 0 ]; then | |
echo "Checked out config."; | |
else | |
echo "Backing up pre-existing dot files."; |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
<?xml version="1.0" encoding="UTF-8"?> | |
<bcf:controlfile version="3.4" bltxversion="3.8" xmlns:bcf="https://sourceforge.net/projects/biblatex"> | |
<!-- BIBER OPTIONS --> | |
<bcf:options component="biber" type="global"> | |
<bcf:option type="singlevalued"> | |
<bcf:key>output_encoding</bcf:key> | |
<bcf:value>utf8</bcf:value> | |
</bcf:option> | |
<bcf:option type="singlevalued"> | |
<bcf:key>input_encoding</bcf:key> |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.