Skip to content

Instantly share code, notes, and snippets.

View famuvie's full-sized avatar

Facundo Muñoz famuvie

View GitHub Profile
@famuvie
famuvie / post-commit
Last active April 11, 2019 14:39 — forked from rmflight/post-commit
useful commit hooks for R package dev
#!/usr/bin/env Rscript
# License: CC0 (just be nice and point others to where you got this)
# Author: Robert M Flight <rflight79@gmail.com>, github.com/rmflight
#
# This is a post-commit hook that after a successful commit subsequently increments the package version in DESCRIPTION
# and commits that. Analogous to the pre-commit at https://gist.github.com/rmflight/8863882, but useful if you only have
# good reasons for not doing it on the pre-commit.
#
# To install it, simply copy this into the ".git/hooks/post-commit" file of your git repo, change /path/2/Rscript, and make
#!/bin/bash
TODAY=`date +%Y-%m-%d`
TODAY_MD=`date +%B\ %d,\ %Y`
YEAR=`date +%Y`
PROJECT=$1
##
## CHANGE ME!!!
@famuvie
famuvie / Makefile
Last active February 22, 2021 08:51 — forked from dogukancagatay/Makefile
generic Makefile using latexmk and/or pandoc
# (c) 2018 Facundo Muñoz
# Latex Makefile using latexmk
# Modified by Dogukan Cagatay <dcagatay@gmail.com>
# Originally from : http://tex.stackexchange.com/a/40759
# Modified for compilation of Markdown files with ideas from
# http://plain-text.co/pull-it-together.html
## What extension (e.g. md, markdown, mdown) is being used
## for markdown files MEXT = md
MEXT = md
$if(abstract)$
%TC:envir abstract [] ignore
$endif$
$if(arara)$
$for(arara)$
% arara: $arara$
$endfor$
$endif$
\RequirePackage{fixltx2e}
\documentclass[$if(fontsize)$$fontsize$,$endif$$if(papersize)$$papersize$$else$a4paper,$endif$$for(classoption)$$classoption$$sep$,$endfor$]{$documentclass$}