Skip to content

Instantly share code, notes, and snippets.

View mxm's full-sized avatar

Maximilian Michels mxm

View GitHub Profile
@mxm
mxm / checkstyle.xml
Last active December 23, 2022 17:32
Google Java Checkstyle modified using tabs (mapped to 2 spaces) and 120 line length
<?xml version="1.0"?>
<!DOCTYPE module PUBLIC
"-//Puppy Crawl//DTD Check Configuration 1.3//EN"
"http://www.puppycrawl.com/dtds/configuration_1_3.dtd">
<!--
Checkstyle configuration that checks the Google coding conventions from:
- Google Java Style
https://google-styleguide.googlecode.com/svn-history/r130/trunk/javaguide.html
Checkstyle is very configurable. Be sure to read the documentation at
@mxm
mxm / burgerbot.rb
Created October 7, 2015 12:41 — forked from daxadax/burgerbot.rb
burgerbot
#!/usr/bin/env ruby
# modified from https://gist.github.com/pbock/3ab260f3862c350e6b5f #
require 'watir-webdriver'
class BurgerBot
def initialize
@attempt_count = 0
@mxm
mxm / shade.xml
Created September 2, 2015 10:01
Invalid signature file digest for Manifest main attributes
<configuration>
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>META-INF/*.SF</exclude>
<exclude>META-INF/*.DSA</exclude>
<exclude>META-INF/*.RSA</exclude>
</excludes>
</filter>
@mxm
mxm / LeftOuterJoinExample.java
Last active June 25, 2020 09:10
Example for a LEFT OUTER JOIN in Apache Flink
package org.myorg.quickstart;
import org.apache.flink.api.common.functions.CoGroupFunction;
import org.apache.flink.api.common.functions.MapFunction;
import org.apache.flink.api.java.DataSet;
import org.apache.flink.api.java.ExecutionEnvironment;
import org.apache.flink.api.java.operators.DataSource;
import org.apache.flink.api.java.tuple.Tuple2;
import org.apache.flink.util.Collector;
@mxm
mxm / CustomSerializer.java
Created February 24, 2015 17:09
Custom Flink Serializer
package org.apache.flink.mytests.customserializer;
import org.apache.flink.api.common.functions.MapFunction;
import org.apache.flink.api.java.DataSet;
import org.apache.flink.api.java.ExecutionEnvironment;
import org.apache.flink.core.memory.DataInputView;
import org.apache.flink.core.memory.DataOutputView;
import org.apache.flink.types.Value;
import java.io.IOException;
@mxm
mxm / pre-push
Last active August 29, 2015 14:13
pre-push hook for Flink commiters
#!/bin/bash
####
##
## Pre-push hook which protects a remote branch
## by running a verify command before pushing.
##
## Should be place in .git/hooks/pre-push
##
## protected_remote can be a substring
@mxm
mxm / feed.patch
Created January 15, 2015 17:24
Patch for adding an RSS feed to the Flink website
Index: _config.yml
===================================================================
--- _config.yml (revision 1652149)
+++ _config.yml (working copy)
@@ -5,6 +5,8 @@
# {{ site.CONFIG_KEY }}
#------------------------------------------------------------------------------
+url: http://flink.apache.org
+
@mxm
mxm / heaps.erl
Created April 24, 2014 21:01 — forked from larsmans/heaps.erl
% Copyright (c) 2010-2014, Lars Buitinck
% May be used, redistributed and modified under the terms of the
% GNU Lesser General Public License (LGPL), version 2.1 or later
% Heaps/priority queues in Erlang
% Heaps are data structures that return the entries inserted into them in
% sorted order. This makes them the data structure of choice for implementing
% priority queues, a central element of algorithms such as best-first/A*
% search and Kruskal's minimum-spanning-tree algorithm.