Skip to content

Instantly share code, notes, and snippets.

Avatar
🐈
Meow

Wouter Groeneveld wgroeneveld

🐈
Meow
View GitHub Profile
View scientific-twocolumn-tables.py
"""
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
\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.
View evernoter.py
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
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) {
element.closest("form")
.attr('enctype', 'multipart/form-data')
@wgroeneveld
wgroeneveld / gist:3870664
Created Oct 11, 2012
useplay script to switch versioning
View gist:3870664
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 Jan 17, 2012
Java: counting collections by folding
View CollectionUtil.java
public class CollectionUtil {
public static interface EnkelvoudigeTeller<TellerType> {
boolean magMeegeteldWorden(TellerType object);
}
public static interface MeervoudigeTeller<TellerType> {
int geefAantalMeegeteld(TellerType object);
}