Skip to content

Instantly share code, notes, and snippets.

View Pixelsuft's full-sized avatar
:octocat:

pixelsuft‮ Pixelsuft

:octocat:
View GitHub Profile
@Pixelsuft
Pixelsuft / nodejs_text_screen.js
Last active August 3, 2022 12:36
v86 nodejs text screen example
#!/usr/bin/env node
"use strict";
var fs = require("fs");
var V86Starter = require("../build/libv86.js").V86Starter;
function readfile(path)
{
return new Uint8Array(fs.readFileSync(path)).buffer;
}
@Pixelsuft
Pixelsuft / ng_downloader.py
Created October 20, 2021 07:29
Newgrounds Music Downloader
import os
import sys
import requests
def parse_song(song_id: int) -> bytes:
url = f'https://www.newgrounds.com/audio/listen/{song_id}'
resp = requests.get(url)
cur_line = ''
for line in resp.text.split('\n'):
@Pixelsuft
Pixelsuft / backward_midi.py
Created October 12, 2021 10:29
MIDI Backward
from mido import MidiFile
fn = input('Enter file name: ').replace('"', '')
ext = fn.split('.')[-1].strip()
no_ext = '.'.join(fn.split('.')[:-1])
cv1 = MidiFile(fn, clip=True)
@Pixelsuft
Pixelsuft / pip_hooker.py
Last active September 29, 2021 09:28
Running pip without creating process
'''
MIT License
Copyright (c) 2021 Pixelsuft
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
@Pixelsuft
Pixelsuft / unsplitter.py
Created September 27, 2021 09:04
Unity assents unsplitter
'''
MIT License
Copyright (c) 2021 Pixelsuft
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
@Pixelsuft
Pixelsuft / permissions.py
Created July 10, 2021 00:42
Python For Android Permissions
['ACCEPT_HANDOVER', 'ACCESS_COARSE_LOCATION', 'ACCESS_FINE_LOCATION', 'ACCESS_LOCATION_EXTRA_COMMANDS', 'ACCESS_NETWORK_STATE', 'ACCESS_NOTIFICATION_POLICY', 'ACCESS_WIFI_STATE', 'ADD_VOICEMAIL', 'ANSWER_PHONE_CALLS', 'BATTERY_STATS', 'BIND_ACCESSIBILITY_SERVICE', 'BIND_AUTOFILL_SERVICE', 'BIND_CARRIER_MESSAGING_SERVICE', 'BIND_CARRIER_SERVICES', 'BIND_CHOOSER_TARGET_SERVICE', 'BIND_CONDITION_PROVIDER_SERVICE', 'BIND_DEVICE_ADMIN', 'BIND_DREAM_SERVICE', 'BIND_INCALL_SERVICE', 'BIND_INPUT_METHOD', 'BIND_MIDI_DEVICE_SERVICE', 'BIND_NFC_SERVICE', 'BIND_NOTIFICATION_LISTENER_SERVICE', 'BIND_PRINT_SERVICE', 'BIND_QUICK_SETTINGS_TILE', 'BIND_REMOTEVIEWS', 'BIND_SCREENING_SERVICE', 'BIND_TELECOM_CONNECTION_SERVICE', 'BIND_TEXT_SERVICE', 'BIND_TV_INPUT', 'BIND_VISUAL_VOICEMAIL_SERVICE', 'BIND_VOICE_INTERACTION', 'BIND_VPN_SERVICE', 'BIND_VR_LISTENER_SERVICE', 'BIND_WALLPAPER', 'BLUETOOTH', 'BLUETOOTH_ADMIN', 'BODY_SENSORS', 'BROADCAST_PACKAGE_REMOVED', 'BROADCAST_STICKY', 'CALL_PHONE', 'CALL_PRIVILEGED', 'CAMERA', 'C