Skip to content

Instantly share code, notes, and snippets.

View yannicklamprecht's full-sized avatar
🏠
Working from home

Yannick Lamprecht yannicklamprecht

🏠
Working from home
  • Germany, Frankfurt
  • 14:54 (UTC +02:00)
View GitHub Profile
@yannicklamprecht
yannicklamprecht / CommandAPI-Bukkit
Created January 4, 2014 03:42
A description of my CommandAPI
package commands;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import lib.CustomCommand;
import lib.Factorizer;
public class ConfigReload extends CustomCommand{
import sys
import os
import math
import urllib2
import json
import time
import shutil
import uuid
from nbt import nbt # pip install nbt
@yannicklamprecht
yannicklamprecht / latex_beamer_thm
Created May 12, 2016 04:29 — forked from jonaswisplinghoff/latex_beamer_thm
LaTeX Beamer class example with the colors of Technische Hochschule Mittelhessen. Output: https://jonaswoc.rigel.uberspace.de/owncloud/index.php/s/1i4yqBj9ZOF7ts7
\documentclass{beamer}
\usepackage[ngerman]{babel}
\usepackage[latin1]{inputenc}
\definecolor{thm}{HTML}{8dc24e}
\definecolor{thm_grey}{HTML}{6B7982}
\definecolor{thm_dark}{HTML}{4A5D66}
@yannicklamprecht
yannicklamprecht / dynv6.sh
Last active August 29, 2016 00:02 — forked from corny/dynv6.sh
Update script for dynv6.com to set your IPv4 address and IPv6 prefix
#!/bin/sh -e
hostname=$1
device=$2
file=$HOME/.dynv6.addr6
[ -e $file ] && old=`cat $file`
if [ -z "$hostname" -o -z "$token" ]; then
echo "Usage: token=<your-authentication-token> [netmask=64] $0 your-name.dynv6.net [device]"
exit 1
fi
import net.minecraft.server.v1_10_R1.Block;
import net.minecraft.server.v1_10_R1.BlockPosition;
import net.minecraft.server.v1_10_R1.Blocks;
import net.minecraft.server.v1_10_R1.ChunkCoordIntPair;
import net.minecraft.server.v1_10_R1.DefinedStructure;
import net.minecraft.server.v1_10_R1.DefinedStructureInfo;
import net.minecraft.server.v1_10_R1.DefinedStructureManager;
import net.minecraft.server.v1_10_R1.EnumBlockMirror;
import net.minecraft.server.v1_10_R1.EnumBlockRotation;
import net.minecraft.server.v1_10_R1.MinecraftKey;
fileVersion: '3'
circuits:
- owner: 94cb88bc-42fd-460b-a267-4342eb644ac3
world: world
delay: 0
receiver:
- delay: 0
location_z: 264
location_x: 76
location_world: world
using System;
using System.Linq;
using System.Threading;
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Configs;
using BenchmarkDotNet.Extensions;
using BenchmarkDotNet.Jobs;
using BenchmarkDotNet.Loggers;
using BenchmarkDotNet.Reports;
using BenchmarkDotNet.Running;
### Keybase proof
I hereby claim:
* I am ysl3000 on github.
* I am ysl3000 (https://keybase.io/ysl3000) on keybase.
* I have a public key ASBdXp0p2PCGye-nlOfxSuC0pA_cGbxR4nAQstK1Tdslugo
To claim this, I am signing this object:
package org.bukkit.pathfinding.goals;
import org.bukkit.entity.Insentient;
import org.bukkit.pathfinding.PathfinderGoal;
import org.bukkit.Material;
import org.bukkit.entity.LivingEntity;
public class PathfinderGoalMoveToLocation implements PathfinderGoal {
@yannicklamprecht
yannicklamprecht / App.java
Created February 25, 2018 21:45 — forked from thomasdarimont/App.java
Secure REST API Example with Spring Security, Spring Session, Spring Boot
package demo;
import java.io.Serializable;
import java.security.Principal;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import java.util.UUID;