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 urllib3 | |
import json | |
def get_data(embed_url: str) -> dict: | |
http = urllib3.PoolManager() | |
response = http.request("GET", embed_url) | |
return json.loads(response.data.decode("utf-8")) | |
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 pygame as py | |
import socket as sk | |
import threading as th | |
class Client: | |
__slots__ = ( | |
"__host", | |
"__port", | |
"__s", |
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 tkinter as tk | |
class Application(tk.Frame): | |
def __init__(self, master=None): | |
super().__init__(master) | |
self.winfo_toplevel().title('MacroMimo') | |
self.winfo_toplevel().resizable(False, False) | |
self.sequences = [ | |
{ | |
'id': 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
''' | |
BeautifulOutput is a module for managing the terminal output of the program including colors and formatting. | |
The colors are defined in the COLORS dictionary, you can change it to whatever you want. | |
You can also add more colors, just add them to the dictionary colors. | |
To use it, just import it and call BeautifulOutput.init() before using it. | |
Then you can call BeautifulOutput(str) to print a string with the formatting. | |
Script by: Manuel Cabral (github: manucabral) | |
All rights reserved. |
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 required modules for parse csv file | |
pkg load io | |
# load csv files | |
boxes_data = csv2cell("boxes.csv"); | |
units_data = csv2cell("units.csv"); | |
# target column for multiply | |
target_column = 3; |
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
''' | |
SNSS Session File Parser for PyBrinf | |
This module parses SNSS files and returns a list of current tabs. | |
Script made by Manuel Cabral | |
''' | |
import os, struct | |
from io import StringIO, BytesIO | |
from enum import Enum, EnumMeta |
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 win32api as api | |
import win32con as con | |
# recording velocity in seconds | |
VELOCITY = 0.1 | |
# keys definition | |
KEY_F1 = 0x70 | |
KEY_F2 = 0x71 | |
KEY_F3 = 0x72 |
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
# Universal Gravitational Constant | |
G = 6.67408e-11 | |
def get_force(**kwargs): | |
""" | |
Calculate the gravitational force between two objects using the Newton's law of gravitation. | |
Params: |
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
#include "math.h" | |
float add(float a, float b) | |
{ | |
return a + b; | |
} | |
float sub(float a, float b) | |
{ | |
return a - b; |
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
""" | |
Discord Status Changer by ne0de | |
Needs a file called status.txt | |
Does not support emojis | |
This is not allowed by the Discord ToS | |
""" | |
from requests import get, patch | |
from time import sleep |
NewerOlder