Skip to content

Instantly share code, notes, and snippets.

View JDevlieghere's full-sized avatar

Jonas Devlieghere JDevlieghere

View GitHub Profile
partition([],_,[]).
partition(List,Size,[Team|Teams]):-
team(List,Size,Team),
findall(X,(member(X,List),\+member(X,Team)),Overige),
partition(Overige,Size,Teams).
team(_,0,[]).
team(List,Size,[R|Team]):-
Size > 0,
T is Size - 1,
@JDevlieghere
JDevlieghere / Markdown.css
Last active February 15, 2019 14:19
Markdown Markup
@import url(http://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic,700italic|Open+Sans:400italic,700italic,400,700);
/* Reset */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
\documentclass[11pt,a4paper,oneside]{article}
% Essential
\usepackage[english]{babel}
\usepackage{fancyhdr}
\usepackage{titling}
% Optional
\usepackage{hyperref}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{listings}
@JDevlieghere
JDevlieghere / .gitignore
Created July 23, 2013 12:50
Java Gitingore
*.class
# Package Files
*.jar
*.war
*.ear
# Eclipse
.classpath
.project
@JDevlieghere
JDevlieghere / gist:6869578
Created October 7, 2013 15:10
Build file for compiling C program in Sublime 3 with GCC (Mac) or LCC (Windows)
{
"cmd" : ["C:\\lcc\\bin\\lcc.exe", "$file_name", "-o", "${file_base_name}.exe"],
"selector" : "source.c",
"shell":true,
"working_dir" : "$file_path"
}
{
"cmd" : ["gcc", "$file_name", "-o", "${file_base_name}"],
"selector" : "source.c",
/**
* @author Jonas Devlieghere <info@jonasdevlieghere.com>
* @version 1.0
*
* The Kabsch algorithm calculates the optimal rotation matrix that minimizes
* the RMSD (root mean squared deviation) between two paired sets of points.
*
* The algorithm solves the equation Q = P*R + T where R is the rotation and
* T the translation in order to align data sets P and Q as best as possible.
*
@JDevlieghere
JDevlieghere / gist:7083884
Created October 21, 2013 13:28
Sublime 3 Build System for Latex using Miktex
{
"selector": "text.tex.latex",
"cmd": ["texify","$file_name", "-b", "-p", "-c", "-q", "--tex-option=\"--synctex=1\"", "--run-viewer"],
}
@JDevlieghere
JDevlieghere / configPreferences.sublime-settings
Created November 15, 2013 23:32
Sublime 3 Configuration Preferences
{
"ignored_packages":
[
"Vintage"
],
"rulers":
[
80
],
"scroll_speed": 0,
@JDevlieghere
JDevlieghere / .bash_aliases
Created November 15, 2013 23:38
Bash Aliases
# Shortcuts
alias la="ls -A --color"
alias cl="clear"
alias mk="make"
# Applications
alias intellij="/opt/intellij/bin/idea.sh"
/**
* Title: Time-independent Pacman game
* Authors: Dieter Castel (r0256149) & Jonas Devlieghere (r0256709)
*/
vocabulary PacmanVoc{
/* We guarantee you that dir, Left, Right, Up, Down
* will always be correctly interpreted in structures.
* You should not check this!