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
#!/bin/env python3 | |
import argparse | |
import os | |
import shutil | |
import subprocess | |
def map_playlist(m3u8: str, folder: str): | |
counter = 0 | |
for line in m3u8.split('\n'): |
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
#!/usr/bin/python3 | |
# usage: schemachecker.py urls... | |
# requires: python 3, beautiful soup 4, requests library | |
from bs4 import BeautifulSoup | |
import requests | |
import sys | |
def checkUrl(url): | |
r = requests.get(url, headers={'user-agent': 'Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:10.0) Gecko/20100101 Firefox/10.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
Integer extend [ | |
bencode: stream [ | |
stream nextPutAll: 'i'. | |
stream nextPutAll: (self storeString). | |
stream nextPutAll: 'e'. | |
] | |
] | |
OrderedCollection extend [ | |
bencode: stream [ |
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 <iostream> | |
#include <chrono> | |
#include <cstdlib> | |
#include <gmpxx.h> | |
using namespace std; | |
static gmp_randclass rand0 (gmp_randinit_default); | |
static volatile bool _noopt; |
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
#define isupper(c) ((c > 0x40) && (c < 0x5B)) | |
#define islower(c) ((c > 0x60) && (c < 0x7B)) | |
#define iscntrl(c) ((c < 0x20) || (c == 0x7F)) | |
#define isdigit(c) ((c >= 0x30) && (c <= 0x39)) | |
#define isspace(c) ((c == ' ') || (c == '\n') || (c == '\r') || (c == '\t')) | |
#define isprint(c) ((c >= 0x20) && (c <= 0x7E)) | |
#define isgraph(c) (isprint(c) && !isspace(c)) | |
#define isalpha(c) (isupper(c) && islower(c)) | |
#define isalnum(c) (isalpha(c) || isdigit(c)) | |
#define isxdigit(c) (isnum(c) || ((c > 0x40) && (c <= 0x47)) || ((c > 0x60) && (c <= 0x66))) |
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 me.dunnousername.mpvm; | |
import com.google.common.util.concurrent.SimpleTimeLimiter; | |
import java.util.concurrent.Callable; | |
import java.util.concurrent.TimeUnit; | |
/** | |
* Created by dunnousername on 3/16/17. | |
*/ |