Skip to content

Instantly share code, notes, and snippets.

View dflemstr's full-sized avatar

David Flemström dflemstr

View GitHub Profile
package name.dflemstr.vessel.docker;
import java.io.InputStream;
import java.net.URI;
import java.util.List;
import java.util.Map;
import javax.ws.rs.Consumes;
import javax.ws.rs.DELETE;
import javax.ws.rs.GET;
package name.dflemstr.vessel.docker;
import com.google.common.collect.Queues;
import com.google.common.io.ByteStreams;
import com.google.common.io.Closer;
import java.io.Closeable;
import java.io.EOFException;
import java.io.IOException;
import java.io.InputStream;
map.put('"', """);
map.put('\'', "'");
map.put('&', "&");
map.put('<', "&lt;");
map.put('>', "&gt;");
map.put('\u00A0', "&nbsp;");
map.put('\u00A1', "&iexcl;");
map.put('\u00A2', "&cent;");
map.put('\u00A3', "&pound;");
map.put('\u00A4', "&curren;");
20:37:26.782 [main] DEBUG s.c.processor.runner.ExecutionModel - require processor skadistats.clarity.processor.runner.SimpleRunner
20:37:26.785 [main] DEBUG s.c.processor.runner.ExecutionModel - require processor name.dflemstr.nightstalker.Main
20:37:26.794 [main] DEBUG s.c.processor.runner.ExecutionModel - require event listener interface skadistats.clarity.processor.entities.OnEntityCreated
20:37:26.801 [main] DEBUG skadistats.clarity.event.UsagePoints - provider found on ClassIndex: skadistats.clarity.processor.modifiers.Modifiers
20:37:26.808 [main] DEBUG skadistats.clarity.event.UsagePoints - provider found on ClassIndex: skadistats.clarity.processor.reader.InputSourceProcessor
20:37:26.813 [main] DEBUG skadistats.clarity.event.UsagePoints - provider found on ClassIndex: skadistats.clarity.processor.entities.Entities
20:37:26.819 [main] DEBUG skadistats.clarity.event.UsagePoints - provider found on ClassIndex: skadistats.clarity.processor.sendtables.DTClasses
20:37:26.819 [main] DEBUG skadistats.clarity.
<!DOCTYPE html><html><head><meta charset="UTF-8"/><link href="http://kevinburke.bitbucket.org/markdowncss/markdown.css" rel="stylesheet"></link></head><body><h1>Replay analysis: <em>EY</em> vs <em>MSFT</em></h1><h2>Radiant (EY)</h2>
<table>
<thead>
<tr>
<th>Player </th>
<th>Dotabuff </th>
<th>Hero </th>
</tr>
</thead>
class Main {
public static void main(String... args) {
class Main<A> {
<B> Main() {
}
<C> void main() {
System.out.println("Hello, World!");
}
}
new <Integer>Main<String>().<Boolean>main();
object SomeRandomPass extends Pass {
val title = "Stuff"
val description = "Stuff"
//Magie: dieser Code fügt zwei Methoden zur Klasse BufferedImage hinzu
//Tu dies in dein Pass herein unter "val description = ..." um es zu aktivieren
case class Color(a: Int, r: Int, g: Int, b: Int)
implicit def addColorAccessTo(img: BufferedImage) = new {
def apply(x: Int, y: Int) = {
package se.dflemstr.imgproc.passes
import java.awt.image.BufferedImage
import se.dflemstr.imgproc.graphics.Texture
object NearestNeighbor extends Pass {
val title = "Nearest Neighbor interpolation detection"
val description = "A pass that highlights duplicate pixels in an image."
package se.dflemstr.imgproc.passes
import java.awt.image.BufferedImage
import se.dflemstr.imgproc.graphics.Texture
object NearestNeighbor extends Pass {
val title = "Nearest Neighbor interpolation detection"
val description = "A pass that highlights duplicate pixels in an image."
#include "example.h"
Example::Example(int someInt, const std::string &someString)
: _someInt(someInt), //Assign _someInt
_someString(someString) //Copy the whole string to _someString
{
}
const std::string &Example::someString() const
{