Skip to content

Instantly share code, notes, and snippets.

View zwilias's full-sized avatar

Ilias Van Peer zwilias

View GitHub Profile
public class LinkedList {
private class ListElement {
private Object el1;
private ListElement el2;
public ListElement(Object el, ListElement nextElement) {
el1 = el;
el2 = nextElement;
}
@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);
<?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 / 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.
(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) {