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 sys | |
import ujson as json | |
from multiprocessing import Process, Queue | |
from random import randint | |
# To measure performance | |
# pv galaxy.json.gz | pigz -d -p 2 | python3 systems_names.py | pv 2>/dev/pts/2 > /dev/null | |
# Without measuring performance | |
# cat galaxy.json.gz | pigz -d -p 2 | python3 systems_names.py |
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
from typing import Iterable | |
import numbers | |
def finite_difference(data: Iterable[numbers.Number]) -> list[Iterable[numbers.Number]]: | |
"""A function to calculate finite difference of given sequence of numbers""" | |
to_iterate = [data] | |
while len(to_iterate[-1]) != 1: | |
to_iterate.append([]) |
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
SiiNunit | |
{ | |
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # | |
# Version: 1.3 | |
# Version game: 1.41.1.25.s | |
# Created by beigbeider | |
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # | |
live_stream_def : .live_streams { |
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 | |
from time import sleep | |
# from time import time | |
""" | |
This script bruteforce applock (aka Privacy Protection) feature in MIUI. | |
! NO ROOT NEEDED ! | |
It can be useful if you forgot password |
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
#!/usr/bin/env python | |
#modified 21.05.2020 by norohind: replaced deprecated in python 3.8 methods and now it has no deprecation warning | |
# -*- coding: utf-8 -*- | |
# Copyright 2012-2018 Matt Martz | |
# All Rights Reserved. | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); you may | |
# not use this file except in compliance with the License. You may obtain | |
# a copy of the License at | |
# |