Skip to content

Instantly share code, notes, and snippets.

View Citymonstret's full-sized avatar
🏠
Working from home

Alexander Söderberg Citymonstret

🏠
Working from home
View GitHub Profile

Keybase proof

I hereby claim:

  • I am citymonstret on github.
  • I am citymonstret (https://keybase.io/citymonstret) on keybase.
  • I have a public key whose fingerprint is 9D7D 7AB3 29F7 8C17 A393 E780 5073 94F7 531D EC22

To claim this, I am signing this object:

package com.plotsquared.core.commands;
import cloud.commandframework.annotations.Argument;
import cloud.commandframework.annotations.CommandMethod;
import cloud.commandframework.annotations.CommandPermission;
import com.google.inject.Inject;
import com.plotsquared.core.commands.arguments.PlotMember;
import com.plotsquared.core.commands.requirements.Requirement;
import com.plotsquared.core.commands.requirements.RequirementType;
import com.plotsquared.core.configuration.Settings;
@Citymonstret
Citymonstret / ChunkCoordinator.java
Last active July 12, 2020 06:18
ChunkCoordinator for PlotSquared. This requires PaperLib 1.0.4 to make use of the isUrgent parameter
/*
* _____ _ _ _____ _
* | __ \| | | | / ____| | |
* | |__) | | ___ | |_| (___ __ _ _ _ __ _ _ __ ___ __| |
* | ___/| |/ _ \| __|\___ \ / _` | | | |/ _` | '__/ _ \/ _` |
* | | | | (_) | |_ ____) | (_| | |_| | (_| | | | __/ (_| |
* |_| |_|\___/ \__|_____/ \__, |\__,_|\__,_|_| \___|\__,_|
* | |
* |_|
* PlotSquared plot management system for Minecraft
set termguicolors
call plug#begin()
Plug 'Shougo/deoplete.nvim'
let g:deoplete#enable_at_startup = 1
Plug 'joshdick/onedark.vim'
Plug 'itchyny/lightline.vim'
"Plug 'autoload/onedark.vim'"
Plug 'zchee/deoplete-clang'
let g:deoplete#sources#clang#libclang_path = '/usr/lib/x86_64-linux-gnu/libclang-8.so.1'
@Citymonstret
Citymonstret / stack.py
Last active November 6, 2019 17:05
Stack implementation in python
class Stack(object):
"""Initialize a new stack
:param size the fixed stack size
"""
def __init__(self, size: int):
self.__size = size
self.__array = [None] * size
self.__cursor = 0
"""Push a value to the stack
int main()
{
// Oändlig slinga
for (;;)
{
}
}
function leviCivita(i, j, k) {
let d1 = i - j;
let d2 = j - k;
let d3 = k - i;
return (d1 * d2 * d3) / 2;
}
function cross(v1, v2) {
if (v1.length !== v2.length !== 3) {
return new Error("Only 3D vectors are supported");
{
"jenkins_base": "https://ci.athion.net/",
"targets": [
{
"identifier": "3",
"types": [
{
"job_name": "PlotSquared-Legacy",
"identifier": "dev",
"versions": [
- unmessified the API
- improvements to plot retrieval
- fixed the guest gamemode flag
- added a schematic listing command
- added 1.13 support
- added block buckets
- fixed plot item
- updated to WorldEdit 7
- updated schematic system
- allow for multiple block usage in all plot components
@Citymonstret
Citymonstret / CommandTarget.java
Created January 17, 2019 16:41
Minecraft command selector utilities
package org.incendo.plotessentials.commands;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
import org.bukkit.entity.Entity;
/**
* Command selector target
*/
@RequiredArgsConstructor public class CommandTarget {