Skip to content

Instantly share code, notes, and snippets.

NANOTRASEN FORM IA-117

INCIDENT REPORT

FOR INTERNAL USE ONLY

Status: RESOLVED

@aikar
aikar / TaskChain.java
Last active February 11, 2017 21:08
TaskChain Java Flow Control System - This is an archaic v1. V3 is now released at https://taskchain.emc.gs
import org.bukkit.Bukkit;
import org.bukkit.plugin.Plugin;
import java.util.concurrent.ConcurrentLinkedQueue;
/**
* Facilitates Control Flow for the Bukkit Scheduler to easily jump between
* Async and Sync tasks without deeply nested callbacks, passing the response of the
* previous task to the next task to use.
*
##!/usr/bin/env python
# -*- coding: utf-8 -*-
"""yggdrasil.py
A tool for debugging and exploring yggdrasil, Minecraft's new
authentication system.
Usage:
yggdrasil.py login <username> [--password=<password>]
yggdrasil.py migrated <username>
@boukeversteegh
boukeversteegh / functionalprogramming.py
Last active December 17, 2015 02:09
How to do functional programming in Python
import inspect
# Callable class to wrap functions
class F:
def __init__(self, func, *args):
self.func = func
self.args = args
# Currying
#!/usr/bin/env python
# import the pygame module, so you can use it
import pygame
from pygame.locals import *
#Main class
class Main:
scale = 1
basewidth = 320