Skip to content

Instantly share code, notes, and snippets.

View zwilias's full-sized avatar

Ilias Van Peer zwilias

View GitHub Profile
(function () {
"use strict";
var entries = [], anchor, selectList, entryIndex = [], Entry = Class.create({
initialize: function (element, depth, parentEntry) {
this.childrenIndex = [];
this.children = [];
this.element = element;
this.parentEntry = parentEntry;
this.depth = depth;
if (element !== null) {
@zwilias
zwilias / Desaturate.java
Created May 27, 2012 19:07
Desaturate into a ByteProcessor
package khl.dip.assignment;
import ij.process.ByteProcessor;
import ij.process.ColorProcessor;
import ij.process.ImageProcessor;
public class Desaturate {
/*
* In this case, we apply it on a duplicate and return it instead of
* applying it in-place. Keep this in mind.
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:p="http://www.springframework.org/schema/p"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:tx="http://www.springframework.org/schema/tx"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd">
@zwilias
zwilias / assignment.java
Created October 19, 2012 16:33
Vector class
public class Assignments {
/**
* @param args
*/
public static void main(String[] args) {
// create the vector
Vector v = new Vector(200);
public class LinkedList {
private class ListElement {
private Object el1;
private ListElement el2;
public ListElement(Object el, ListElement nextElement) {
el1 = el;
el2 = nextElement;
}
public class LinkedList
{
private class ListElement
{
private Object el1;
private ListElement el2;
public ListElement(Object el, ListElement nextElement)
{
el1 = el;

#Interview avec Xavier Ruiz#

Stijn Willems et Ilias Van Peer
3TX3/4
10/12/2012

Stijn Willems: Nous sommes des étudiants de KHLeuven, de la dernière année, et pour le cours de français on doit parler avec un informaticien, une demi-heure, qu'est-ce qu'il fait, qu'est-ce qu'il a étudié, qu'est-ce que vous faites ici, et avant que vous avez commencé à travailler ici, ou des autres choses.

Xavier Ruiz:

Vergaderverslag dinsdag 21 mei 2013

Algemeen

Aanwezig:

  • Nancy Dierckx
  • Wouter Mouton
  • Jarrik Nys
  • Rens Oosterbos

De vergadering heeft om en bij de 60 minuten in beslag genomen van de geplande 30 à 60 minuten.

@zwilias
zwilias / wget.js
Created May 30, 2013 10:30
A wget wrapper for mongo-shell
function wget(url){
var tmp = "/tmp",
id = new ObjectId(),
outFile= tmp + "/wget" + id,
logFile= tmp + "/wgetLog",
p = run("wget", "--output-file=" + logFile, "--output-document=" + outFile, url),
result = "";
if (p==0){
result = cat(outFile);
function fbGraph(user, item, params) {
item = item || "";
user = user || "me";
var url = "https://graph.facebook.com/" + user + "/" + item + "?access_token=" + token;
if (params) {
for (key in params) {
url += "&amp;" + encodeURIComponent(key) + "=" + encodeURIComponent(params[key]);
}