Skip to content

Instantly share code, notes, and snippets.

View Luxter77's full-sized avatar
💭
In the process of imploding

Lucas Daniel Velazquez M. Luxter77

💭
In the process of imploding
View GitHub Profile
while globals().get("c", True): print((lambda F: F[F[8][7]](F[F[8][4]])[F[F[8][6]](F[F[8][3]](F[F[8][2]], F[F[8][1]]))](F[F[8][5]](F[F[8][3]], F[F[8][0]])))([(lambda j: [(lambda f: j + str((x := f())[0] + x[1])), (lambda f: j + str((x := f())[0] - x[1])), (lambda f: j + str((x := f())[0] * x[1])), (lambda f: ("Math: can't divide by zero"if (x := f())[1] == 0else (j + str((x[0] / x[1]))))), (lambda f: j + str((x := f())[0] ** x[1])), (lambda f: ("Math: there is no zero'th root"if (x := f())[1] == 0else (j + str((x[0] ** (1 / x[1])))))), (lambda _: globals().update({"c": False}) or "Ending Program")]), (lambda i: max(-1, min(i, 6))), (lambda f, t: (lambda: ((f("First Number: ", t) or "6"), (f("Second Number: ", t) or "6")))), "The result is: ", (lambda q, t: t(input(q))), "calc:\n\t0: sum\n\t1: sub\n\t2: mult\n\t3: div\n\t4: pow\n\t5: root\n\t6: end program\nop: ", int, float, [7, 6, 5, 4, 3, 2, 1, 0]]))
void mainImage(out vec4 fragColor, in vec2 fragCoord) {
float pi2 = 6.28318530718;
float S = 15.0;
float logS = log(S);
vec2 uv = fragCoord / iResolution.xy;
vec2 tile_coords = uv * 1.0;
#define BOXEL_SIZE 0.1 + 0.0073 * sin(iTime * 0.155)
#define MAX_STEPS 100000
#define MAX_DIST 200.0
#define SURF_DIST \
0.00027 + (cos(iTime * 0.01) * 0.00001) + 0.00011 * cos(iTime * 0.01) + \
0.001 * abs(sin(iTime * 0.0001))
vec3 transform(vec3 p) {
float t = iTime * 0.1;
float s = 1.0 + sin(p.y + t);
# Configuration
$Model = "granite3-dense:2b"
$OllamaExe = "ollama"
# Define Prompts of varying lengths to test memory ranges
$TestPrompts = [ordered]@{
"Short" = "What is the capital of France?"
"Medium" = "Explain the theory of relativity in simple terms."
"Long" = "Summarize the following text: " + ("The quick brown fox jumps over the lazy dog. " * 300)
}
<#
.SYNOPSIS
Enumerates Vulkan physical devices directly via the Vulkan API.
.DESCRIPTION
This script uses P/Invoke to load 'vulkan-1.dll' (part of standard display drivers)
and query the Vulkan loader for available physical devices (GPUs/CPUs).
It returns a list of devices with their corresponding API index, name, and hardware type.
This is useful for determining the correct device index for environment variables
without relying on external tools like 'vulkaninfo' or the Vulkan SDK.
@Luxter77
Luxter77 / build.ps1
Created January 21, 2026 16:14
micropython build+upload code buildtask
param([switch]$Upload, [switch]$Clean)
$ErrorActionPreference = "Stop"
$src = ".\src"
$dest = ".\mirror"
$port = "COM5"
# --- CLEAN STEP (Delete .mpy files from device) ---
if ($Clean) {
@Luxter77
Luxter77 / filter.lua
Created January 12, 2026 09:07
MAN Pages to Lorebook
-- filter.lua
local skip_titles = {["SEE ALSO"] = true, ["COMPATIBILITY"] = true}
local skipping = false
function Header(el)
local header_text = pandoc.utils.stringify(el.content)
if skip_titles[header_text] then
skipping = true
return {}
@Luxter77
Luxter77 / src_collisions.gml
Created September 2, 2025 19:33
fn_doCollide GML2
/**
* @function fn_doCollide
*
* @param {Id.Instance}.
* @param {Id.Asset.GMLObject} [collider=obj_collider].
*
* @returns {undefined}
*/
function fn_doCollide(subject, collider = obj_collider.object_index){
if (subject.vspeed != 0) {
Clear-Host
function Chunk-Objects {
param(
[Parameter(Mandatory = $true, ValueFromPipeline = $true)]
[psobject]$InputObject,
[ValidateRange(1, 100000)]
[int]$ChunkSize = 255
)
function Chunk-Objects {
param(
[Parameter(Mandatory = $true, ValueFromPipeline = $true)]
[psobject]$InputObject,
[ValidateRange(1, 100000)]
[int]$ChunkSize = 255
)
begin {