Skip to content

Instantly share code, notes, and snippets.

View Sxtanna's full-sized avatar
🕶️
Living.

Sxtanna Sxtanna

🕶️
Living.
View GitHub Profile
@Sxtanna
Sxtanna / Replace.java
Last active February 7, 2021 09:15
Placeholder Plugin Wrapper
import org.jetbrains.annotations.Contract;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import org.bukkit.Bukkit;
import org.bukkit.OfflinePlayer;
import java.util.ArrayList;
import java.util.List;
import java.util.function.BiFunction;
@Sxtanna
Sxtanna / Economy.java
Last active February 10, 2021 21:47
Vault Economy Wrapper
import org.jetbrains.annotations.Contract;
import org.jetbrains.annotations.NotNull;
import org.bukkit.Bukkit;
import org.bukkit.OfflinePlayer;
import org.bukkit.plugin.RegisteredServiceProvider;
import java.math.BigDecimal;
import java.util.Optional;
import java.util.function.Consumer;
@LambdAurora
LambdAurora / optifine_alternatives_fabric.md
Last active July 25, 2024 00:41
Recommended OptiFine alternatives on Fabric

The list is moving out!

If you share this list, please use this link instead: https://lambdaurora.dev/optifine_alternatives

It may still be only a redirection link, but it will have a better web display of the list soon. And the list being on GitHub/GitHub pages improves load times.

The gist version of this list will stop being updated.

Why?

@Andre601
Andre601 / MC_1.10.yml
Last active July 17, 2024 22:34
Minecraft Soundnames
#
# Sounds that play in the enviroment, like thunder sound effect.
#
Ambience:
AMBIENT_CAVE
WEATHER_RAIN
WEATHER_RAIN_ABOVE
#
# Sounds that blocks make when interacting with them.
@timvisee
timvisee / falsehoods-programming-time-list.md
Last active July 27, 2024 18:55
Falsehoods programmers believe about time, in a single list

Falsehoods programmers believe about time

This is a compiled list of falsehoods programmers tend to believe about working with time.

Don't re-invent a date time library yourself. If you think you understand everything about time, you're probably doing it wrong.

Falsehoods

  • There are always 24 hours in a day.
  • February is always 28 days long.
  • Any 24-hour period will always begin and end in the same day (or week, or month).
@0xjac
0xjac / private_fork.md
Last active July 27, 2024 07:07
Create a private fork of a public repository

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare git@github.com:usi-systems/easytrace.git

@psayre23
psayre23 / gist:c30a821239f4818b0709
Last active June 27, 2024 17:48
Runtime Complexity of Java Collections
Below are the Big O performance of common functions of different Java Collections.
List | Add | Remove | Get | Contains | Next | Data Structure
---------------------|------|--------|------|----------|------|---------------
ArrayList | O(1) | O(n) | O(1) | O(n) | O(1) | Array
LinkedList | O(1) | O(1) | O(n) | O(n) | O(1) | Linked List
CopyOnWriteArrayList | O(n) | O(n) | O(1) | O(n) | O(1) | Array