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 pw.ske.quadtree; | |
import com.badlogic.gdx.math.Rectangle; | |
import com.badlogic.gdx.utils.Array; | |
import java.util.Iterator; | |
/** | |
* A basic quad tree. | |
* <p> |
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 com.badlogic.gdx.math.MathUtils; | |
public class SpringingContext1D { | |
public float value; | |
public float target; | |
public float velocity; | |
public float damping; | |
public float frequency; |
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 | |
import json | |
import pyudev | |
import socket | |
vm_id = 100 | |
def send_monitor_command(command, **kwargs): | |
with socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) as sock: | |
sock.connect("/var/run/qemu-server/{}.qmp".format(vm_id)) |
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 asyncio | |
import aiohttp | |
import aiofiles | |
import re | |
import urllib.parse as urlparse | |
sess = None | |
output_file = None | |
token = "PUT YOUR SESSION TOKEN HERE (log in, devtools, find cookie 'connect.sid')" |
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 base64 | |
import datetime | |
import hashlib | |
import json | |
import random | |
import re | |
import requests | |
import secrets | |
import string | |
import sys |