This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.awt.*; | |
public class GeneticPlayer { | |
public static Point startPoint = new Point(0,0); | |
private double fitness = 0; | |
//target fitness = 1 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import javax.net.ssl.HttpsURLConnection; | |
import java.io.*; | |
import java.net.*; | |
public class Main { | |
public static void main(String args[]) throws Exception { | |
/* create byte arrays to hold our send and response data */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import lights.LightType; | |
import lights.WemoSocket; | |
import management.Group; | |
import java.awt.*; | |
import java.io.File; | |
import java.util.ArrayList; | |
import java.util.List; | |
import java.util.Scanner; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package io.minelights; | |
import io.minelights.lights.ColorMode; | |
import io.minelights.lights.LightEvent; | |
import io.netty.buffer.ByteBuf; | |
import io.netty.buffer.ByteBufUtil; | |
import net.minecraft.server.v1_12_R1.NBTCompressedStreamTools; | |
import net.minecraft.server.v1_12_R1.NBTTagCompound; | |
import net.minecraft.server.v1_12_R1.PacketDataSerializer; | |
import org.bukkit.Bukkit; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import javax.imageio.ImageIO; | |
import java.awt.*; | |
import java.awt.image.BufferedImage; | |
import java.io.File; | |
public class Main { | |
public static void main(String[] args) throws Exception{ | |
BufferedImage img = createImageWithID(255*3*3); | |
System.out.println(getImageID(img)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import javax.swing.*; | |
import java.awt.*; | |
import java.awt.image.BufferedImage; | |
public class ImageDisplay extends JFrame { | |
private BufferedImage image; | |
public ImageDisplay(BufferedImage image){ | |
this.image = image; | |
setTitle("Image Display"); | |
setBounds(0,0,image.getWidth(),image.getHeight()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package net.Andrewcpu.morph; | |
import net.Andrewcpu.morph.graphics.GPanel; | |
import net.Andrewcpu.morph.logic.elements.*; | |
import net.Andrewcpu.morph.logic.World; | |
import net.Andrewcpu.morph.logic.input.Controller; | |
import net.Andrewcpu.morph.utils.Location; | |
import javax.swing.*; | |
import java.util.concurrent.Executors; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<project version="4"> | |
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_9" default="true" project-jdk-name="9" project-jdk-type="JavaSDK"> | |
<output url="file://$PROJECT_DIR$/out" /> | |
</component> | |
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package net.andrewcpu.worldstar; | |
import org.apache.commons.io.FileUtils; | |
import org.bukkit.*; | |
import org.bukkit.entity.Player; | |
import org.bukkit.event.EventHandler; | |
import org.bukkit.event.Listener; | |
import org.bukkit.event.entity.EntityDamageEvent; | |
import org.bukkit.event.entity.PlayerDeathEvent; | |
import org.bukkit.plugin.java.JavaPlugin; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package net.andrewcpu.script.tokenizer.grammar; | |
import net.andrewcpu.script.tokenizer.Token; | |
import net.andrewcpu.script.tokenizer.TokenType; | |
import net.andrewcpu.script.tokenizer.grammar.structures.*; | |
import java.util.ArrayList; | |
import java.util.List; | |
import java.util.stream.Collectors; |
OlderNewer