Skip to content

Instantly share code, notes, and snippets.

View kylepls's full-sized avatar

Kyle kylepls

View GitHub Profile
@kylepls
kylepls / Random encoding-decoding
Created November 12, 2014 23:03
Encode crap I guess...
package useful.encryption;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
import java.util.Scanner;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.experimental.UtilityClass;
import org.apache.commons.lang3.RandomStringUtils;
import javax.crypto.Cipher;
import javax.crypto.spec.SecretKeySpec;
import java.nio.charset.Charset;
import java.security.Key;
import java.security.MessageDigest;
@kylepls
kylepls / SIUtils
Created March 22, 2017 19:54
Used for formatting SI units
package com.arcadianmc.skyblock.utils;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.experimental.UtilityClass;
/**
* Created by Kyle on 3/22/2017.
*/
@UtilityClass
@kylepls
kylepls / Spinner.java
Last active May 21, 2017 16:49
I made a fidget spinner
package loops;
import java.awt.*;
import java.util.Arrays;
import java.util.List;
/**
* Created by Kyle on 5/20/2017.
*/
public class Spinner {
@kylepls
kylepls / google.java
Last active July 18, 2017 05:49
Rewrote google in java. super ez.idk y they need 2 billion lines of code for this lmao
import java.util.Scanner;
class Main {
static String[] webpages =
new String[]{"google.com", "bing.com", "youtube.com", "youtube.biz", "spectonik.om"};
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.print("Entier search: ");
String s = scanner.nextLine();
@kylepls
kylepls / PsAndQs.java
Created July 18, 2017 05:38
Would rather use P's and Q's rather than binary
package in.kyle.api;
/**
* P = 0
* Q = 1
*/
public class PsAndQs {
private static final byte[] BIT_MASKS =
new byte[]{0b1000000, 0b1000000, 0b100000, 0b10000, 0b1000, 0b100, 0b10, 0b1};
package in.kyle.plotz2.util;
import in.kyle.plotz2.obj.player.PlotLocation;
import lombok.Data;
/**
* Created by Kyle on Jul 24, 2015
*/
public class PlotIdUtils {
package in.kyle.plotz2.obj.plot;
import in.kyle.plotz2.Plotz;
import in.kyle.plotz2.config.configs.PlotWorldConfig;
import in.kyle.plotz2.eum.PlotCorner;
import in.kyle.plotz2.obj.player.PlotLocation;
import in.kyle.plotz2.obj.player.PlotPlayer;
import in.kyle.plotz2.world.WorldAdapter;
import lombok.AllArgsConstructor;
package fuck.josh;
import java.util.HashMap;
import java.util.Map;
import rx.Observable;
import rx.subjects.PublishSubject;
public class NotificationLoop {
According to all known laws of aviation, there is no way that a bee should be able to fly. Its wings are too small to get its fat little body off the ground. The bee, of course, flies anyway. Because bees don’t care what humans think is impossible.”
SEQ. 75 - “INTRO TO BARRY” INT. BENSON HOUSE -
DAY
ANGLE ON: Sneakers on the ground.
Camera PANS UP to reveal
BARRY BENSON’S BEDROOM
ANGLE ON: Barry’s hand flipping through different sweaters in his closet.
BARRY Yellow black, yellow black, yellow black, yellow black, yellow black, yellow black...oohh, black and yellow...
ANGLE ON: Barry wearing the sweater he picked, looking in the mirror.
BARRY (CONT’D) Yeah, let’s shake it up a little. He picks the black and yellow one. He then goes to the sink, takes the top off a CONTAINER OF HONEY, and puts some honey into his hair. He squirts some in his mouth and gargles. Then he takes the lid off the bottle, and rolls some on like deodorant.