Skip to content

Instantly share code, notes, and snippets.

@bdarcus
bdarcus / saxon
Created June 5, 2020 15:42 — forked from dirkk/saxon
Saxon bash script
#!/usr/bin/env bash
SAXON="/opt/saxon"
# Core and library classes
# CP="$SAXON/saxon9he.jar"
CP="$CP$(for JAR in "$SAXON"/*.jar; do echo -n ":$JAR"; done)"
# Options for virtual machine
VM=-Xmx512m
@bdarcus
bdarcus / arch.sh
Last active March 3, 2020 00:59 — forked from burningTyger/arch.sh
Install Arch
# This guide is based on https://wiki.archlinux.org/index.php/User:Altercation/Bullet_Proof_Arch_Install
# compare for more details on each step. It's a great guide and seems to get frequent updates.
# This guide has a few changes that helped me to get thew bootloader running
# create an ENV variable for your drive and hostname.
# You need to edit this line!!!
DRIVE=/dev/sda
HOST=myhost
DESKTOP=gnome

Converting my bibliography file to roam format

[2020-02-18 Tue]

I use this function to create a note file from a bibtex entry (the point is on the bibtex entry).

;;** Open notes from bibtex entry
;;;###autoload
(defun aah/org-ref-open-bibtex-notes ()
  "From a bibtex entry, open the notes if they exist.
@bdarcus
bdarcus / dreem_csv_to_oscar_zeo.py
Last active January 8, 2020 11:47 — forked from jeremyblow/dreem_csv_to_oscar_zeo.py
Convert Dreem CSV to OSCAR-friendly Zeo CSV
from pytz import timezone
from datetime import datetime
from io import open
from sys import argv, version_info
# Dreem is timezone-aware, but neither the Zeo CSV format nor OSCAR are. So we set a default
# timezone, so we can adjust deviations accordingly. Set to the timezone you're machine time
# is set for.
# Q: what about DST?
@bdarcus
bdarcus / github-pandoc.css
Created September 9, 2016 15:05 — forked from dashed/github-pandoc.css
GitHub-like CSS for pandoc standalone HTML files (perfect for HTML5 output). Based on Marked.app's GitHub CSS. Added normalize.css (v2.1.3) in the prior to GitHub css.
/*! normalize.css v2.1.3 | MIT License | git.io/normalize */
/* ==========================================================================
HTML5 display definitions
========================================================================== */
/**
* Correct `block` display not defined in IE 8/9.
*/
@bdarcus
bdarcus / .gitconfig
Last active August 29, 2015 14:12 — forked from ShabbyX/.gitconfig
[user]
name = XXX XXX
email = XXX@XXX.XXX
[color]
ui = always
status = always
[alias]
s = status
co = checkout
ls = ls-files
# Produce PDFs from all Markdown files in a directory
# Lincoln Mullen | http://lincolnmullen.com | lincoln@lincolnmullen.com
# List files to be made by finding all *.md files and appending .pdf
PDFS := $(patsubst %.md,%.md.pdf,$(wildcard *.md))
# The all rule makes all the PDF files listed
all : $(PDFS)
# This generic rule accepts PDF targets with corresponding Markdown
@bdarcus
bdarcus / jekyll.hs
Created July 8, 2012 12:49 — forked from jaspervdj/jekyll.hs
Jekyll-like hakyll config. Haven't actually tested it, I need sleep.
{-# LANGUAGE OverloadedStrings #-}
{-# OPTIONS_GHC -fno-warn-unused-do-bind #-}
import Hakyll
import Control.Arrow ((>>>))
main :: IO ()
main = hakyll $ do
-- Favicon
match "favicon.ico" copy
@bdarcus
bdarcus / .gitignore
Created December 20, 2011 16:57 — forked from gauteh/.gitignore
python script for starring and liking google reader items from exported json (used to migrate starred and liked items)
*.json
*.xml
token*
oauth*
NEW
``disambiguate-add-year-suffix`` [Step (4)]
If set to "true" ("false" is the default), an alphabetic year-suffix is
added to ambiguous cites (e.g. "Doe 2007, Doe 2007" becomes "Doe 2007a, Doe
2007b") and to their corresponding bibliographic entries. The assignment of
the year-suffixes follows the order of the bibliographies entries, and
additional letters are used once "z" is reached ("z", "aa", "ab", ..., "az",
"ba", etc.). By default the year-suffix is appended to the cite, and to the
first year rendered through ``cs:date`` in the bibliographic entry, but its