Skip to content

Instantly share code, notes, and snippets.

View rbecher's full-sized avatar

Ronald Brachetti rbecher

  • Freelancer
  • Bremen, Germany
View GitHub Profile
block('goods')(
tag()('ul'),
content()(function() {
return this.ctx.goods.map(function(item){
return [
{
elem: 'item',
content: [
@rbecher
rbecher / WebAppInitializeer.java
Created May 30, 2014 09:57
How to utilize the Application class with the main method for the embedded tomcat
package com.x.y.z.config;
import com.x.y.z.Application;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.context.web.SpringBootServletInitializer;
public class WebAppInitializer extends SpringBootServletInitializer {
@Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
# Alternative to Git Submodules using Git Subtree: http://git-scm.com/book/en/Git-Tools-Subtree-Merging
# Remember to replace 'subtree-repo' with the repo name
# --prefix can be whatever you want to call your local copy
$ git remote add -f subtree-repo /path/to/subtree-repo
$ git merge -s ours --no-commit subtree-repo/master
$ git read-tree --prefix=subtree-repo/ -u subtree-repo/master
$ git commit -m "Merge subtree-repo as a subtree."
# Then to update the external subtree repo:
$ git pull -s subtree subtree-repo master
------------------------------------------------------------------------------------
-- Company: FSR Inf
-- Engineer: Becher, Clark, Rohrmoser
--
-- Create Date: 17:50:45 01/16/2008
-- Design Name: where s the nut, lebowski?
-- Module Name: rattenprocessing - Behavioral
-- Project Name: PTI Micromachines and stuff
-- Target Devices: Stupid Xilinx-Board
-- Tool versions:
@rbecher
rbecher / Statistical Monkey.java
Created October 21, 2010 21:34
My special hand coded cute little statistical monkey. Isn't he sweet?
package tdg;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Vector;
import org.apache.log4j.Logger;