Skip to content

Instantly share code, notes, and snippets.

@SirEdvin
SirEdvin / DoubleToString.java
Created August 2, 2015 10:54
Simple lambdas serialization test
import java.io.Serializable;
/**
* Created by siredvin on 02.08.15.
*
* @author siredvin
*/
public interface DoubleToString extends Serializable {
public String get(double t);
}
@SirEdvin
SirEdvin / DoubleToString.java
Last active August 29, 2015 14:26
Lambda serialization sample
import java.io.Serializable;
/**
* Created by siredvin on 02.08.15.
*
* @author siredvin
*/
public interface DoubleToString extends Serializable {
public String get(double t);
}
@SirEdvin
SirEdvin / SimpleAnswer.java
Last active September 1, 2015 20:20
Palindrome task
import java.util.Optional;
/**
* Created by siredvin on 01.09.15.
*
* @author siredvin
*/
public class SimpleAnswer {
public static void main(String[] args) {
int max = 999*999;
@SirEdvin
SirEdvin / HardAnswer.java
Created September 1, 2015 17:15
Palindrome task (hm ...)
import io.github.siredvin.anji.log.Log;
import io.github.siredvin.math.util.ArrayUtil;
import javafx.scene.layout.VBox;
import sun.invoke.util.VerifyAccess;
import java.util.*;
import java.util.stream.IntStream;
import java.util.stream.Stream;
/**
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@SirEdvin
SirEdvin / AbstractCancellableEvent.java
Created October 26, 2015 15:27
Custom Events Gist
package io.github.siredvin.events;
import org.bukkit.event.Cancellable;
import org.bukkit.event.Event;
/**
* Created by siredvin on 24.10.15.
*
* @author siredvin
*/
@SirEdvin
SirEdvin / InteractionEventListener.java
Last active October 26, 2015 15:36
Custom Event usage
package siredvin.github.io;
import com.google.common.collect.Lists;
import com.sk89q.worldguard.bukkit.RegionQuery;
import com.sk89q.worldguard.bukkit.WorldGuardPlugin;
import com.sk89q.worldguard.domains.Association;
import com.sk89q.worldguard.protection.ApplicableRegionSet;
import com.sk89q.worldguard.protection.association.RegionOverlapAssociation;
import com.sk89q.worldguard.protection.regions.ProtectedRegion;
import io.github.siredvin.events.BlockBlockInteractionEvent;
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.