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
from micropython import const | |
from machine import Pin, RTC | |
from rp2 import bootsel_button | |
import network | |
import aiohttp | |
import asyncio | |
import logging | |
import sys | |
import ntptime | |
import socket |
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
#include <windows.h> | |
#include <cstdio> | |
#include <dsound.h> | |
typedef HRESULT(*tDirectSoundCaptureCreate)(LPCGUID lpcGUID, IDirectSoundCapture** ppDSC, IUnknown* pUnkOuter); | |
tDirectSoundCaptureCreate pDirectSoundCaptureCreate; | |
int main() | |
{ | |
HMODULE hModule; |
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
// pack.src | |
// NAME!BASE64 | |
shell = get_shell | |
computer = shell.host_computer | |
// start ../lib-src/libbase64.src | |
// libbase64.src | |
// based on https://github.com/iskolbin/lbase64 | |
// MIT License |
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
// ubuild.src | |
if params.len != 2 or params[0] == "-h" or params[0] == "--help" then exit("<b>Usage: "+program_path.split("/")[-1]+" [CODE] [OUT]</b>") | |
shell = get_shell | |
computer = shell.host_computer | |
// start ../lib-src/pathsep.src | |
PATHSEP = "/" | |
// end ../lib-src/pathsep.src |
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 random | |
min_val = 0 | |
max_val = 100 | |
max_list = list(range(min_val, max_val, 1)) | |
min_list = max_list[::-1] | |
random_list = [random.randrange(min_val, max_val) for x in range(len(max_list))] |
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 sys | |
if len(sys.argv) != 2: | |
print("calc.py [input]") | |
exit(1) | |
with open(sys.argv[1], "r") as fd: | |
data = fd.read() | |
MAX_SIZE = None |
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
from __future__ import annotations | |
class Page: | |
o = 0.5 | |
def __init__(self, iid): | |
self.id = iid | |
self.references = [] | |
self.referers = [] | |
self.rank = 1 |
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/env bash | |
export GAME="/home/sentry/Games/TF2/server" | |
export WINEPREFIX="${GAME}/pfx" | |
export WINEARCH="win64" | |
export WINEDEBUG="-all" | |
export DXVK_LOG_LEVEL="none" | |
export VKD3D_DEBUG="none" | |
export LIBGL_ALWAYS_SOFTWARE=1 | |
export GALLIUM_DRIVER=llvmpipe |
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
#include <stdio.h> | |
#include <dlfcn.h> | |
static void *nvml_handle; | |
typedef struct { | |
unsigned long long total; | |
unsigned long long free; | |
unsigned long long used; | |
} nvmlMemory_t; |
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/env bash | |
# https://cmake.org/cmake/help/latest/manual/cmake-policies.7.html | |
# https://cmake.org/cmake/help/latest/variable/CMAKE_POLICY_DEFAULT_CMPNNNN.html | |
POLICIES=(0017,0020) | |
export CC=cl | |
export CXX=cl | |
exec "cmake" \ |
NewerOlder