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
import json | |
import requests | |
import hashlib | |
import time | |
TMDB_BASE_URL = "https://api.themoviedb.org/3/" | |
TMDB_API_KEY = "<YOUR KEY HERE>" | |
GENRES = { | |
"genres": [ |
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
import json | |
import struct | |
class XwiParser: | |
def __init__(self, f): | |
self.f = f | |
res = self._parseHeader() | |
res["groups"] = [] | |
res["objects"] = [] | |
for i in range(res["num_fgs"]): |
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
import json | |
import struct | |
ANIMATION_COMMANDS = { | |
1: ('wait_for_click', []), | |
10: ('clear_text', []), | |
11: ('show_title', [('i', 'text_id')]), | |
12: ('show_main', [('i', 'text_id')]), | |
15: ('center_map', [('f', 'x'), ('f', 'y')]), | |
16: ('zoom_map', [('f', 'x'), ('f', 'y')]), |
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 org.rscheme.pillow.island; | |
import java.util.Random; | |
import java.util.List; | |
import java.util.Arrays; | |
import java.lang.Math; | |
import com.flowpowered.noise.Noise; | |
import com.flowpowered.noise.module.Module; | |
import org.bukkit.generator.ChunkGenerator; | |
import org.bukkit.generator.BlockPopulator; |