Skip to content

Instantly share code, notes, and snippets.


Wouter wgroeneveld

View GitHub Profile
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 *
View acm-pandoc-conf.tex
\usepackage{caption} %
\usepackage{balance} % balancing bibstyles as per request in accepted submission
% 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.
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 / directives.js
Created May 29, 2013 11:22
angularjs jquery form plugin custom directive
View directives.js
'use strict';
angular.module('uploadComponentModule', [])
.directive('uploadComponent', ['Alert', function(Alert) {
return {
templateUrl: 'partials/component/uploadComponent.html',
restrict: 'A',
link: function(scope, element, attrs) {
.attr('enctype', 'multipart/form-data')
wgroeneveld / gist:3870664
Created October 11, 2012 06:55
useplay script to switch versioning
View gist:3870664
export CLICOLOR=1
export LSCOLORS=ExFxCxDxBxegedabagacad
alias l="ls -la"
export SBT_OPTS="-XX:MaxPermSize=256m"
function useplay2 {
useplay "2.0.4"
wgroeneveld /
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);