This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* MCSignOnDoor rewrite in D by jkcclemens <[email protected]> | |
* | |
* This program is free software: you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation, either version 3 of the License, or | |
* (at your option) any later version. | |
* | |
* This program is distributed in the hope that it will be useful, | |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"/> | |
<title>Time to Class Up</title> | |
<link rel="stylesheet" type="text/css" href="https://netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css"/> | |
<style> | |
iframe { | |
width: 100%; | |
height: 450px; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// h() is every tick | |
// Default Minecraft h() method | |
public void h() { | |
boolean flag = this.burnTime > 0; | |
boolean flag1 = false; | |
int elapsedTicks = MinecraftServer.currentTick - this.lastTick; | |
this.lastTick = MinecraftServer.currentTick; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package net.minecraft.server.v1_7_R1; | |
import org.bukkit.craftbukkit.v1_7_R1.entity.CraftHumanEntity; | |
import org.bukkit.craftbukkit.v1_7_R1.inventory.CraftItemStack; | |
import org.bukkit.entity.HumanEntity; | |
import org.bukkit.event.inventory.FurnaceBurnEvent; | |
import org.bukkit.event.inventory.FurnaceSmeltEvent; | |
import java.util.ArrayList; | |
import java.util.List; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@EventHandler(priority = EventPriority.HIGH) | |
public void zombieIsMasterRace(CreatureSpawnEvent e) { | |
if (e.getEntityType() == EntityType.ZOMBIE) { // convert ALL zombies in ALL worlds | |
if (ZombieSpawner.getSurvivorsZombie((Zombie) e.getEntity()) == null) { | |
e.setCancelled(true); | |
ZombieSpawner.spawnLeveledZombie(e.getLocation()); | |
} | |
return; | |
} | |
final Entity entity = e.getEntity(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from json import loads | |
from urllib.request import urlopen | |
from statistics import mean, median, mode, stdev, variance | |
def getPointsList(transactions): | |
points = [] | |
for transaction in transactions: | |
points.append(transaction["amount"]) | |
return points |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from os import listdir | |
from urllib2 import urlopen | |
from sys import argv | |
from subprocess import call | |
if len(argv) < 2: | |
quit() | |
words = argv[1:] | |
for word in words: | |
files = listdir(".") | |
if ("%s.mp3" % word) in files: continue |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* ZNC Push Module | |
* | |
* Allows the user to enter a Push user and API token, and sends | |
* channel highlights and personal messages to Push. | |
* | |
* Copyright (c) 2011 John Reese | |
* Licensed under the MIT license | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// --- Expected behavior --- | |
// FROM PLAYER : | |
// /kh : Show kick history of self (first) | |
// /kh 2 : Show kick history of self (second) | |
// /kh person : Show kick history of person (first) | |
// /kh person 2 : Show kick history of person (second) | |
// FROM CONSOLE : | |
// /kh : Usage | |
// /kh 2 : Usage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private class Pair<T, U> { | |
private final T first; | |
private final U second; | |
private Pair(T first, U second) { | |
this.first = first; | |
this.second = second; | |
} | |
public T getFirst() { |
OlderNewer