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 requests | |
from time import sleep | |
CHANNEL_ID = "channel id here" | |
channel_req = requests.get(f"https://archive.vine.co/profiles/_/{CHANNEL_ID}.json") | |
if channel_req.status_code != 200: | |
print("failed getting channel data") | |
quit(-1) |
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
class GenLimiter: | |
"""A decorator used to limit the amount of iterations possible from a generator""" | |
def __init__(self, func): | |
self.func = func | |
def __call__(self, *args, **kwargs): | |
self.limit = kwargs.pop("limit", -1) | |
self.gen = self.func(*args, **kwargs) | |
return self |
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
const mineflayer = require('mineflayer') | |
const autoeat = require("mineflayer-auto-eat") | |
const pathfinder = require('mineflayer-pathfinder').pathfinder | |
const Movements = require('mineflayer-pathfinder').Movements | |
const { GoalNear } = require('mineflayer-pathfinder').goals | |
//where to afk | |
const afk_cords = [39794, 201, -39182] | |
//within how many blocks of afk spot to get | |
const afk_range = 2 |
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 requests | |
def get_current_milliseconds(): | |
dt = datetime.now(timezone.utc).replace(tzinfo=timezone.utc) | |
return dt.timestamp() / 1000 | |
class Spotify: | |
def __init__(self): | |
self.access_token = "" | |
self.access_token_expiration = 0 |
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 PIL import Image | |
import os | |
left_margin = 2 | |
top_margin = 2 | |
width = 165 | |
height = 236 | |
right_padding = 4 | |
bottom_patting = 4 |
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 PIL import Image | |
import os | |
# path to file with map pieces | |
directory = "C:/Users/.../MinedMap-1.15.1.Win64/MinedMap-1.15.1.Win64/map/map/0" | |
# [1 - 100] modify this value to change the quality of the output image | |
quality = 95 | |
# [True/False] downscale image |