Skip to content

Instantly share code, notes, and snippets.

View burdoto's full-sized avatar
🤔
Thinking about another weird NullPointerException

Kaley burdoto

🤔
Thinking about another weird NullPointerException
View GitHub Profile
################################################################################
################# Arch Linux mirrorlist generated by Reflector #################
################################################################################
# With: reflector @/etc/xdg/reflector/reflector.conf
# When: 2023-05-22 02:09:02 UTC
# From: https://archlinux.org/mirrors/status/json/
# Retrieved: 2023-05-22 02:09:02 UTC
# Last Check: 2023-05-22 01:35:27 UTC
@burdoto
burdoto / DisjointLookup.java
Last active January 14, 2022 17:58
Disjoint String Lookup
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.IntStream;
import java.util.stream.Stream;
class DisjointLookupCase {
public final String target;
public final String string;
@burdoto
burdoto / flynne.java
Created August 11, 2021 10:25
Flynne Code Advert
public class FlynneAdvert {
public static Applicant YOU;
public static void main(String... args) {
YOU = Applicant.forName(args[0]);
if (!canStartApplication(YOU))
return;
var hq = FlynneHeadquarters.getInstance();
if (!YOU.moveTowards(hq) || (YOU.thinkingStyle & hq.requiredThinkStyle) != 1)
@burdoto
burdoto / entwicklerheld.java
Last active August 9, 2021 10:05
EntwicklerHeld Advert
public class CodeAdvert {
private final Developer dev;
private final Collection<CodeReward> rewards = new ArrayList<>();
private final Set<Job> jobs = new HashSet<>();
private CodeAdvert(Developer dev) {
if (!(this.dev = dev).canDecode(this))
throw new IllegalStateException();
}
(i'm going to tell you how to speak like gods)
(a- a- -am)
(so sha)
(ga-ba-lu-ge-ton)
(sha gi de di dop)
(Yeah)
(sha gi de di dop)
@burdoto
burdoto / HTTPCodes.java
Created September 4, 2019 15:37
All HTTP Status Codes [Java]
package de.kaleidox.util.rest;
import java.lang.reflect.Field;
import org.jetbrains.annotations.Nullable;
public final class HTTPCodes {
// 1xx - Informational
public static final int CONTINUE = 100;
public static final int SWITCH_PROTOCOL = 101;
@burdoto
burdoto / .gitignore
Created January 10, 2019 14:32
Rider C# GITIGNORE
# Common IntelliJ Platform excludes
# User specific
**/.idea/**/workspace.xml
**/.idea/**/tasks.xml
**/.idea/shelf/*
**/.idea/dictionaries
# Sensitive or high-churn files
**/.idea/**/dataSources/
@burdoto
burdoto / smartwhile.java
Last active December 22, 2018 11:53
Probably the smartest WHILE ever created.
int n = -1, o = 0;
while (n++ < nw.length)
if (n == ind) nw[n + o++ - 1] = insert;
else nw[n] = origin[n + o];
apply plugin: 'java-library'
project.version = '2.0.0'
sourceCompatibility = 1.7
targetCompatibility = 1.7
// if we are not on travis, use the publishing file
if (!isTravis()) {
apply from: 'gradle/publishing.gradle'
@burdoto
burdoto / gist:571d0e1b7a1a02d1a0f918a16b0a9989
Created November 11, 2018 19:11 — forked from hay/gist:1351230
Enterprisify your Java Class Names!
<!doctype html>
<html>
<head>
<title></title>
<style>
body {
background: white;
text-align: center;
padding: 20px;
font-family: Georgia, serif;