Skip to content

Instantly share code, notes, and snippets.

View ejmg's full-sized avatar
💾

ejmg ejmg

💾
View GitHub Profile
@ejmg
ejmg / org-to-latex-with-biber.md
Created January 23, 2017 07:15
How to use biber with orgmode --> latex

I may be wrong, but to my knowledge org-mode does not natively play well with biber for bibliography/reference purposes. Until I figure out a work around, here's what I've figured out along with what the internet has shown me.

Given that you are using biblatex with biber as your bibliography system, the file is test.org, and you have the necessary configurations (packages, .bib file, etc) you must:

  1. Export orgmode as latex with org-latex-export-to-latex

  2. Then via terminal:

pdflatex test.tex
@ejmg
ejmg / two-figures.tex
Created October 19, 2017 23:37
how to put two figures, side by side proportionally, in a latex file
\usepackage{multirow,array}
\usepackage{floatrow}
% in combination with floatrow for properly adjusted figures, placeins ensures said figures appear
% where they are declared within the latex code, i.e. in subsection Part I of this paper. For proper
% usage with subsections, MUST use \FloatBarrier command after done with a figure
\usepackage[section]{placeins}
% ensures captions are properly centered under their respective figures
\usepackage[justification=centering]{caption}
% special command for table captions
\newfloatcommand{capbtabbox}{table}[][\FBwidth]
pay no attention to this
@ejmg
ejmg / how-to-manage-dot-files-with-only-git-atlassian.md
Created October 13, 2018 18:40
"The best way to store your dotfiles: A bare Git repository" tutorial ripped directly from https://developer.atlassian.com/blog/2016/02/best-way-to-store-dotfiles-git-bare-repo for posterity and because I haven't documented it my org file yet and I don't want to lose it.
Error in user YAML: (<unknown>): mapping values are not allowed in this context at line 2 column 43
---
link: null
title: The best way to store your dotfiles: A bare Git repository
description: Recently I read about this amazing technique in an Hacker News thread on people's solutions to store their dotfiles. User StreakyCobra showed his elegant setup and ... It made so much sense! I am in the process of switching my own system to the same technique. The only pre-requisite is to install Git.
keywords: null
author: null
date: null
publisher: Atlassian Developers
stats: paragraph=37 sentences=63, words=860
---
@ejmg
ejmg / bash-BNF-grammar.txt
Last active October 28, 2018 21:46
don't ask
<letter> ::= a|b|c|d|e|f|g|h|i|j|k|l|m|n|o|p|q|r|s|t|u|v|w|x|y|z|
A|B|C|D|E|F|G|H|I|J|K|L|M|N|O|P|Q|R|S|T|U|V|W|X|Y|Z
<digit> ::= 0|1|2|3|4|5|6|7|8|9
<number> ::= <digit>
| <number> <digit>
<word> ::= <letter>
| <word> <letter>
@ejmg
ejmg / footnotes.md
Last active September 12, 2018 06:02
how to hack nice footnotes into github flavored markdown using manual html superscripts and github's built in hyperlinks for backreferences.

wutang clan ain't nothing to frick with1

[1]:suuuuuuuu

@ejmg
ejmg / a2dp.py
Created April 29, 2018 04:39 — forked from pylover/a2dp.py
Fixing bluetooth stereo headphone/headset problem in ubuntu 16.04, 16.10 and also debian jessie, with bluez5.
#! /usr/bin/env python3.5
"""
Fixing bluetooth stereo headphone/headset problem in ubuntu 16.04 and also debian jessie, with bluez5.
Workaround for bug: https://bugs.launchpad.net/ubuntu/+source/indicator-sound/+bug/1577197
Run it with python3.5 or higher after pairing/connecting the bluetooth stereo headphone.
This will be only fixes the bluez5 problem mentioned above .
@ejmg
ejmg / unfavorite.js
Created April 11, 2018 03:13 — forked from ashander/unfavorite.js
Delete all your favorites (unfavorite or unlike every tweet) on twitter.com (thx to @JamieMason and @b44rd for inspiring this)
// 1. Go to https://twitter.com/i/likes
// 2. Keep scrolling to the bottom repeatedly until all your favs are loaded.
// 3. Run this in your console (open in chrome by View > Developer > JavaScript Console)
// Notes: this may take a while if you have a lot of favs/likes
// you can only access your most recent ~2000 likes.
// inspired by https://gist.github.com/JamieMason/7580315
$('.ProfileTweet-actionButtonUndo').click()
@ejmg
ejmg / R-Wiki.md
Last active March 11, 2018 01:48
My wiki submission for CS441: Programming Languages