It's on the Play Store, this needs no further explanation lmao
In the Termux notification, click Acquire wakelock
. This prevents Android from putting Termux to sleep,
and results in MUCH better performance when your phone's display is off.
import os | |
import subprocess | |
import json | |
import urllib | |
import urllib.request | |
import urllib.parse | |
API_HOST = "hk4e-api-os.hoyoverse.com" | |
def get_wish_urls(): |
const ENTRYPOINTS = ['extra/gc.c', 'include/gc.h'] | |
const fs = require('fs') | |
const path = require('path') | |
const search_dirs = ['.', 'extra', 'include', 'include/private', 'include/extra'] | |
function find(file) { | |
file = file.substring(file.lastIndexOf('/') + 1) | |
for (const dir of search_dirs) { | |
if (fs.readdirSync(dir).includes(file)) return path.join(dir, file) |
import net.http | |
import x.json2 | |
const ( | |
secret = 'your_porkbun_api_secret' | |
key = 'your_porkbun_api_key' | |
api_url = 'http://porkbun.com/api/json/v3/dns' | |
// i.e. `your_subdomain.your_domain.com` | |
domain = 'your_domain.com' |
import midi | |
fn my_cb(buf []byte, timestamp f64, data voidptr) { | |
println('EVENT @ $timestamp: $buf.hex()') | |
} | |
fn main() { | |
for i in 0 .. midi.port_count() { | |
println(midi.port_info(i)) | |
} |
import rand | |
import time | |
import term.ui as tui | |
const ( | |
block_size = 1 // pixels | |
field_height = 20 // # of blocks | |
field_width = 10 | |
tetro_size = 4 | |
timer_period = 250 // ms |
import os | |
os.system('stty -icanon') | |
os.system('stty -echo') | |
println('\x1b[?1003h\x1b[?1015h\x1b[?1006h') | |
for signal in 0 .. 64 { | |
os.signal(signal, fn() { | |
os.system('stty icanon') | |
os.system('stty echo') |
if p.mod == 'main' { | |
println('-1 | ${p.prev_tok:-20} | 0 | ${p.tok:-20} | 1 | ${p.peek_tok:-20} | 2 | ${p.peek_tok2:-20} | 3 | ${p.peek_tok3}') | |
} |
It's on the Play Store, this needs no further explanation lmao
In the Termux notification, click Acquire wakelock
. This prevents Android from putting Termux to sleep,
and results in MUCH better performance when your phone's display is off.