Right Left Center Default
12 12 12 12
123 123 123 123
1 1 1 1
{ | |
"editMode": false, | |
"hardcore": false, | |
"defLives": 3, | |
"maxLives": 10, | |
"questDatabase": [ | |
{ | |
"questID": 0, | |
"name": "Builder\u0027s Best Friend", | |
"description": "Building wand and destruction wand can manuplate the world efficently. Angel blocks doesn\u0027t need a block to be placed against.", |
#!/usr/bin/env python3 | |
"""Usage: ... | pipe-throttle.py [NUMBER] | |
Read and write 1 byte, then sleep for NUMBER seconds. | |
Keep doing this until cannot read anything. | |
If NUMBER is not provided, sleep for 1 second instead. | |
-h, --help display this help and exit | |
""" |
import os | |
import sys | |
import time | |
from functools import cached_property | |
from multiprocessing import Pool | |
from PyQt5.QtCore import QObject, pyqtSignal, QThread | |
from PyQt5.QtWidgets import QApplication, QVBoxLayout, QWidget | |
from PyQt5.QtWidgets import QPushButton |
from multiprocessing import Process, Queue | |
from queue import Empty | |
from PyQt5.QtWidgets import * | |
from PyQt5.QtCore import QTimer | |
def calc(q): | |
q.put(sum(i**i for i in range(10000))) | |
import numpy as np | |
from numpy import matmul | |
from numpy.linalg import inv | |
class V2_697506(dict): | |
def __missing__(self, key): | |
x, y = key | |
if y == 0: # rule 1 | |
self[x, y] = 0 |
# Usage: . /path/to/auto-ssh-agent | |
# Check if exists ssh-agent in current session | |
if env | grep -q '^SSH'; then | |
echo Agent pid $SSH_AGENT_PID; | |
else | |
# Cached ssh-agent info is user-specified | |
_SOURCE_DIR="~/.local/run" | |
_SOURCE_FILE="${_SOURCE_DIR}/ssh-agent" |
# WTFPL | |
import requests | |
from collections import defaultdict | |
from itertools import count | |
from pprint import pprint | |
session = requests.Session() | |
session.proxies = { | |
'http': 'http://localhost:1081', |
import random | |
from decimal import * | |
from fractions import * | |
from typing import * | |
PRECISION = Decimal('0.0001') | |
def create_randoms(size: int = 30) -> List[int]: | |
return [random.randrange(1, 100) for _ in range(size)] |
# WTFPL | |
import functools | |
class Defers: | |
def __init__(self): | |
self._defereds = [] | |
def add_defer(self, defer_func): | |
self._defereds.append(defer_func) |