Skip to content

Instantly share code, notes, and snippets.

View derjust's full-sized avatar

Sebastian J. derjust

  • Comcast
  • New York City
View GitHub Profile
@derjust
derjust / 01-reveal-md-plantuml.md
Created June 13, 2022 18:43 — forked from kekru/01-reveal-md-plantuml.md
reveal-md integrate plantuml

Integrate plantuml in reveal-md

This is how to integrate plantuml scripts in you reveal-md presentations.

Download the preproc.js from below to your project and replace the plantuml server url with your plantuml server.
Also replace the plantumlDir with your target dir for the generated png files.
Run reveal-md with the preproc.js:

reveal-md slides.md --preprocessor preproc.js
@derjust
derjust / main.rs
Created June 3, 2022 19:14
Hello World in Rust 🦀
fn main() {
println!("Hello World!");
}
@derjust
derjust / Test.java
Last active December 6, 2019 21:34
package de.zeeman.welp;
import java.util.List;
import com.google.common.collect.ImmutableList;
import org.apache.flink.api.common.functions.ReduceFunction;
import org.apache.flink.fs.s3base.shaded.org.joda.time.DateTime;
import org.apache.flink.streaming.api.datastream.DataStream;
import org.apache.flink.streaming.api.datastream.SingleOutputStreamOperator;
import org.apache.flink.streaming.api.environment.StreamExecutionEnvironment;
@derjust
derjust / ActiveDirectoryDecoratorFilter.java
Created April 17, 2019 20:29 — forked from dblock/ActiveDirectoryDecoratorFilter.java
Obtain additional user information from ActiveDirectory using Com4J
//
// from http://waffle.codeplex.com/workitem/10034
//
package waffle.servlet.spi;
import java.io.IOException;
import java.security.Principal;
import java.util.Date;
import java.util.Enumeration;
package patty;
import java.util.Iterator;
import java.util.Vector;
public class HugeInteger {
private boolean sign;
//TODO Vector is a super-outdated class..
private Vector<Integer> vector;
package assignment2;
public class ParkingMeter {
private int maxParkingInMinutes;
/** rate as in minutes per quarter */
private int rate;
private int time;
public ParkingMeter(int pMaxParkingInMinutes, int pRate) {
@derjust
derjust / keybase.md
Last active September 2, 2016 14:50
keybase.md

Keybase proof

I hereby claim:

  • I am derjust on github.
  • I am zeeman (https://keybase.io/zeeman) on keybase.
  • I have a public key ASAQKeiBHBRefp2uwanE5uxQNRwopmf5TFJ5Jb_tNw-ANgo

To claim this, I am signing this object:

@derjust
derjust / LoggingPipeline.java
Last active September 23, 2015 19:27
Logging in Dataflow with various Logging libraries/bindings
package com.sungard.advtech;
import com.google.cloud.dataflow.sdk.Pipeline;
import com.google.cloud.dataflow.sdk.options.PipelineOptions;
import com.google.cloud.dataflow.sdk.options.PipelineOptionsFactory;
import com.google.cloud.dataflow.sdk.transforms.Create;
import com.google.cloud.dataflow.sdk.transforms.DoFn;
import com.google.cloud.dataflow.sdk.transforms.ParDo;
public class LoggingPipeline {
/*
* Copyright 2015 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@derjust
derjust / gist:3fe190f4507ceb9a0c34
Created September 13, 2015 14:40
Simple side output
Pipeline p = Pipeline.create(options);
final TupleTag<String> output1 = new TupleTag<String>(){};
final TupleTag<String> output2 = new TupleTag<String>(){};
PCollectionTuple tuples = p.apply(TextIO.Read.from("gs://dataflow-samples/shakespeare/*"))
.apply(ParDo
.withOutputTags(output1, TupleTagList.of(output2))
.named("ExtractWords").of(new DoFn<String, String>() {
private static final long serialVersionUID = 0;