This file contains hidden or 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
import random | |
wins = [(0,1,2),(3,4,5),(6,7,8),(0,3,6),(1,4,7),(2,5,8),(0,4,8),(6,4,2),] | |
def checkwin(board): | |
for win in wins: | |
if board[win[0]] == board [win[1]] == board[win[2]] is not None: | |
return board[win[0]] | |
return None if None in board else .5 | |
def maximize(board, target, index): |
This file contains hidden or 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
import itertools | |
from decimal import Decimal | |
class Runtime: | |
def __init__(self, proc, start, end): | |
self.proc = proc | |
self.start = start | |
self.end = end |
This file contains hidden or 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
import requests | |
from cStringIO import StringIO | |
import string | |
import random | |
import re | |
def randstring(size=24, chars=string.ascii_uppercase + string.digits): | |
return ''.join(random.choice(chars) for x in range(size)) | |
headers = { |
This file contains hidden or 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 org.zonedabone.chesttest; | |
import org.bukkit.command.Command; | |
import org.bukkit.command.CommandSender; | |
import org.bukkit.entity.Player; | |
import org.bukkit.event.inventory.InventoryType; | |
import org.bukkit.inventory.Inventory; | |
import org.bukkit.inventory.InventoryHolder; | |
import org.bukkit.plugin.java.JavaPlugin; |
This file contains hidden or 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
[17:32:47] [INFO] ------------------------------------------ | |
[17:32:47] [INFO] Spoutcraft Launcher is starting.... | |
[17:32:47] [INFO] Spoutcraft Launcher Build: -1 | |
[17:34:27] [INFO] Starting download of http://s3.amazonaws.com/MinecraftDownload/minecraft.jar?user=zonedabone&ticket=deprecated, with 3 tries remaining | |
[17:34:40] [INFO] Starting download of http://www.minedev.net/spout/lwjgl/jinput.jar, with 3 tries remaining | |
[17:34:42] [INFO] Starting download of http://www.minedev.net/spout/lwjgl/lwjgl.jar, with 3 tries remaining | |
[17:34:49] [INFO] Starting download of http://www.minedev.net/spout/lwjgl/lwjgl_util.jar, with 3 tries remaining | |
[17:34:50] [INFO] Starting download of http://www.minedev.net/spout/lwjgl/windows_natives.zip, with 3 tries remaining | |
[17:34:56] [INFO] Using mirror: http://spout.mmo.me.uk/Spoutcraft/657/spoutcraft-dev-SNAPSHOT.zip | |
[17:34:56] [INFO] Starting download of http://spout.mmo.me.uk/Spoutcraft/657/spoutcraft-dev-SNAPSHOT.zip, with 3 tries remaining |
This file contains hidden or 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 zonedabone.battlelog; | |
import java.util.ArrayList; | |
import java.util.List; | |
import javax.persistence.PersistenceException; | |
import org.bukkit.command.CommandSender; | |
import org.bukkit.entity.Player; | |
import org.bukkit.plugin.Plugin; |
This file contains hidden or 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 zonedabone.SpoutTest; | |
import org.getspout.spoutapi.event.inventory.InventoryCloseEvent; | |
import org.getspout.spoutapi.event.inventory.InventoryListener; | |
import org.getspout.spoutapi.event.inventory.InventoryOpenEvent; | |
public class IL extends InventoryListener { | |
SpoutTest plugin; | |