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 pygame | |
| import clr | |
| import sys | |
| import ctypes | |
| from ctypes import POINTER, WINFUNCTYPE, windll | |
| from ctypes.wintypes import BOOL, HWND, RECT, UINT, LPARAM, WPARAM | |
| from threading import Thread | |
| clr.AddReference('System.Windows.Forms') | |
| clr.AddReference('System.Drawing') | |
| from System.Windows.Forms import Form, Application, TextBox, DockStyle, FormBorderStyle |
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 subprocess | |
| import numpy | |
| x=subprocess.Popen(["ffmpeg","-re","-f","rawvideo","-s","250x250","-pix_fmt","rgb24","-i","-", | |
| "-vcodec", "libx264", | |
| "-acodec", "aac", "-b:a", "192k", | |
| "-f", "flv", | |
| "rtmp://live-push.bilivideo.com/live-bvc/?streamname=************"],stdin=subprocess.PIPE,stderr=subprocess.PIPE) |
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,math | |
| import syntax_sugar | |
| def down(url,cp=40): | |
| ls=int((requests.get(url,headers={"range":"bytes=0-0"}).headers["Content-Range"]).split("/")[1]) | |
| lp=math.ceil(ls/cp) | |
| print(len(range(0,ls,lp))) |
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
| def f(): | |
| import marshal | |
| tuplis=[] | |
| def ltot(inpl): | |
| if id(inpl) in tuplis: | |
| return b"r"+tuplis.index(id(inpl)).to_bytes(4,"little") | |
| else: | |
| tuplis.append(id(inpl)) | |
| ret=b"\xa9"+len(inpl).to_bytes(1,"little") | |
| for i in inpl: |
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
| class ignore(): | |
| def __init__(s,*e): | |
| s.e=e | |
| def __enter__(s): | |
| pass | |
| def __exit__(s,c,e,t): | |
| try: | |
| raise e | |
| except s.e: | |
| return 1 |