Skip to content

Instantly share code, notes, and snippets.

View marcphilipp's full-sized avatar

Marc Philipp marcphilipp

View GitHub Profile
@marcphilipp
marcphilipp / MathTheories.java
Created November 5, 2010 22:24
Simple JUnit theory using junit-quickcheck
package de.xpdays.junit;
import static org.junit.Assert.assertEquals;
import static org.junit.Assume.assumeTrue;
import org.junit.experimental.theories.Theories;
import org.junit.experimental.theories.Theory;
import org.junit.runner.RunWith;
import com.pholser.junit.parameters.ForAll;
@marcphilipp
marcphilipp / junit-export.xml
Created May 30, 2011 18:25
Error Message when Running FitNesse Tests using JsSlim
!style_error(Unknown construction message:) sun.org.mozilla.javascript.internal.EvaluatorException: illegal character (#107) in at line number 107
<!DOCTYPE html>
<html>
<head>
<title>Sum Up Tasks</title>
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.0a4.1/jquery.mobile-1.0a4.1.min.css" />
<script type="text/javascript" src="http://code.jquery.com/jquery-1.5.2.min.js"></script>
<script type="text/javascript" src="http://code.jquery.com/ui/1.8.13/jquery-ui.min.js"></script>
<script type="text/javascript" src="http://code.jquery.com/mobile/1.0a4.1/jquery.mobile-1.0a4.1.min.js"></script>
<style>
#sum-bar h4 {
@marcphilipp
marcphilipp / Eintrag.java
Created September 18, 2011 12:07
SWT Tree Drag and Drop
package de.marcphilipp.dnd.model;
public class Eintrag {
private final String description;
private Gruppe gruppe;
public Eintrag(String description) {
this.description = description;
}
@marcphilipp
marcphilipp / XmlDatabaseTest.java
Created February 22, 2012 19:51
Database Tests With DbUnit
package de.marcphilipp.dbunit.example;
import static org.h2.engine.Constants.UTF8;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.CoreMatchers.nullValue;
import static org.junit.Assert.assertThat;
import java.io.File;
import javax.sql.DataSource;
@marcphilipp
marcphilipp / WebHome
Created April 18, 2012 21:11
Three-column Foswiki WebHome
---+!! Header
<sticky>
Allgemeiner Einleitungstext…
<div style="clear:both"></div>
<div style="margin-top:-1em;">
<div style="float:left;width:310px;padding-right:20px;margin-right:20px;">
@marcphilipp
marcphilipp / StackTrace01.txt
Created May 11, 2012 09:06
BugReg-Stacktraces für Entwicklertag 2012
!ENTRY org.eclipse.ui.workbench 4 0 2012-05-11 10:24:25.368
!MESSAGE An unexpected exception was thrown.
!STACK 0
java.util.ConcurrentModificationException
at java.util.LinkedList$ListItr.checkForComodification(LinkedList.java:953)
at java.util.LinkedList$ListItr.next(LinkedList.java:886)
at de.andrena.golf.course.model.GolfCourse.anyHoleIsDirty(GolfCourse.java:235)
at de.andrena.golf.course.model.GolfCourse.isDirty(GolfCourse.java:141)
at de.andrena.golf.course.client.ui.internal.editcourses.CourseEditor.isDirty(CourseEditor.java:254)
at org.eclipse.ui.internal.SaveAction.updateState(SaveAction.java:98)
@marcphilipp
marcphilipp / PrimeFactorsTests.h
Created August 5, 2012 10:11
Objective-C Intro @ SoCraTes 2012 (by Johannes Seitz)
//
// primefactorsTests.h
// primefactorsTests
//
// Created by Marc Philipp on 04.08.12.
// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//
#import <SenTestingKit/SenTestingKit.h>
@marcphilipp
marcphilipp / style.css
Last active January 1, 2016 03:49
Twenty Twelve Child Fix
/*
Theme Name: Twenty Twelve Child by PabstWP
Theme URI: http://pabstwp.de/
Author: Matthias Pabst
Author URI: http://pabstwp.de/
Description: Child Theme for WordPress Standard Theme Twenty Twelve with additional menus and footer widget areas.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: light, gray, white, one-column, two-columns, right-sidebar, flexible-width, custom-background, custom-header, custom-menu, editor-style, featured-images, flexible-header, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready, footer-sidebar