Skip to content

Instantly share code, notes, and snippets.

View wgroeneveld's full-sized avatar
🐈
Meow

Wouter wgroeneveld

🐈
Meow
View GitHub Profile
\documentclass[sigconf,anonymous=$anonymous$]{acmart}
\usepackage{booktabs}
\usepackage{caption} % http://mirror.easyname.at/ctan/macros/latex/contrib/caption/caption-eng.pdf
\usepackage{balance} % balancing bibstyles as per request in accepted submission
\usepackage{graphicx}
% We will generate all images so they have a width \maxwidth. This means
% that they will get their normal width if they fit onto the page, but
% are scaled down if they would overflow the margins.
"""
Pandoc filter using panflute: scientific 2column mode fixes
This filter does the following:
1) fixes longtables -> tabular
It's intended use is for scientific papers that require 2 columns in the template layotu.
"""
from panflute import *
from xml.etree import ElementTree as ET
from collections import OrderedDict
from appscript import *
import base64
import sys
import shutil
import os
class EvernoteProcessor:
@wgroeneveld
wgroeneveld / directives.js
Created May 29, 2013 11:22
angularjs jquery form plugin custom directive
'use strict';
angular.module('uploadComponentModule', [])
.directive('uploadComponent', ['Alert', function(Alert) {
return {
templateUrl: 'partials/component/uploadComponent.html',
restrict: 'A',
link: function(scope, element, attrs) {
element.closest("form")
.attr('enctype', 'multipart/form-data')
@wgroeneveld
wgroeneveld / gist:3870664
Created October 11, 2012 06:55
useplay script to switch versioning
export CLICOLOR=1
export LSCOLORS=ExFxCxDxBxegedabagacad
alias l="ls -la"
export SBT_OPTS="-XX:MaxPermSize=256m"
export BASE_PATH=$PATH
function useplay2 {
useplay "2.0.4"
}
@wgroeneveld
wgroeneveld / CollectionUtil.java
Created January 17, 2012 14:20
Java: counting collections by folding
public class CollectionUtil {
public static interface EnkelvoudigeTeller<TellerType> {
boolean magMeegeteldWorden(TellerType object);
}
public static interface MeervoudigeTeller<TellerType> {
int geefAantalMeegeteld(TellerType object);
}