Skip to content

Instantly share code, notes, and snippets.

@torcado194
torcado194 / cleanEdge-shadertoy.glsl
Last active March 15, 2026 02:42
cleanEdge, a pixel art upscaling algorithm for clean rotations
/*** MIT LICENSE
Copyright (c) 2022 torcado
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
"""
The most atomic way to train and run inference for a GPT in pure, dependency-free Python.
This file is the complete algorithm.
Everything else is just efficiency.
@karpathy
"""
import os # os.path.exists
import math # math.log, math.exp
@EmilienDupont
EmilienDupont / LICENSE
Last active March 15, 2026 02:19
Optimization Algorithms Visualization
The MIT License (MIT)
Copyright (c) 2016 Emilien Dupont
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:
@florindumitru
florindumitru / sha256.js
Created January 21, 2014 09:54
Sha256 javascript function
var x = SHA256("message");
console.log(x);
function SHA256(s){
var chrsz = 8;
var hexcase = 0;
function safe_add (x, y) {
var lsw = (x & 0xFFFF) + (y & 0xFFFF);
@hangim
hangim / 河南电信IPTV.m3u
Last active March 15, 2026 01:36
河南电信IPTV直播源,仅包含高清源,不包含市级台。EPG适用http://epg.51zmt.top:8000/cc.xml
#EXTM3U
#EXTINF:-1 tvg-id="1" tvg-name="CCTV1" tvg-logo="http://epg.51zmt.top:8000/tb1/CCTV/CCTV1.png" group-title="央视", CCTV-1综合
http://219.150.217.47:6610/PLTV1/40/index.m3u8?icpid=dxrm1
#EXTINF:-1 tvg-id="2" tvg-name="CCTV2" tvg-logo="http://epg.51zmt.top:8000/tb1/CCTV/CCTV2.png" group-title="央视", CCTV-2财经
http://219.150.217.47:6610/PLTV1/60/index.m3u8?icpid=dxrm1
#EXTINF:-1 tvg-id="3" tvg-name="CCTV3" tvg-logo="http://epg.51zmt.top:8000/tb1/CCTV/CCTV3.png" group-title="央视", CCTV-3综艺
http://219.150.217.47:6610/PLTV1/80/index.m3u8?icpid=dxrm1
#EXTINF:-1 tvg-id="4" tvg-name="CCTV4" tvg-logo="http://epg.51zmt.top:8000/tb1/CCTV/CCTV4.png" group-title="央视", CCTV-4中文国际
http://219.150.217.47:6610/PLTV1/100/index.m3u8?icpid=dxrm1
#EXTINF:-1 tvg-id="5" tvg-name="CCTV5" tvg-logo="http://epg.51zmt.top:8000/tb1/CCTV/CCTV5.png" group-title="央视", CCTV-5体育
@skozz
skozz / prompt-builder-template.md
Last active March 15, 2026 01:34
Prompt builder to force IAs to help you improve your own prompts before starting

What is this?

It is a simple MD to force LLMs to help you build your own prompts following Anthropic'sinternal prompt engineering template Inspired by https://www.reddit.com/r/PromptEngineering/comments/1n08dpp/anthropic_just_revealed_their_internal_prompt/

How to use

  • Add this file to your proyect
  • Invoke this MD in the LLM context
  • Ask to model: "help me write a prompt following this process" + draft of your prompt

Then the model is goign to ask you the template questions to help you build the final prompt based on the template.

Qwen 3.5 (0.8B) + OpenClaw + Ollama: Full Setup Guide


Before You Start

If you're thinking of running OpenClaw on your main PC, I'd strongly suggest using a VPS instead. Anything you can do on your PC, OpenClaw will be able to do on your PC, which is extremely risky if you have personal info on it.

A VPS is essentially just a fresh virtual PC. That way you're not risking any of your personal data and the VPS runs 24/7 so you'll have access to the bot whenever you want. It's also much cheaper than spending hundreds of dollars on a dedicated device like a Mac Mini.

@alcidesrivera
alcidesrivera / firma_electronica.py
Last active March 15, 2026 00:56
Firma Electrónica SRI Ecuador
# -*- coding: utf-8 -*-
##############################################################################
#
# E-Invoice Module - Ecuador
# Copyright (C) 2014 VIRTUALSAMI CIA. LTDA. All Rights Reserved
# alcides@virtualsami.com.ec
# $Id$
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@Medium1992
Medium1992 / AWG_1.5_script_RouterOS.md
Last active March 15, 2026 00:53
Script for Restoring Native WireGuard Functionality in MikroTik RouterOS / Скрипт для восстановления работоспособности нативного WireGuard в MikroTik RouterOS

📄 Description / Описание

🇷🇺 Русский

Предлагаю для тестирования скрипт, предназначенный для восстановления работоспособности нативного WireGuard.

Описание переменных:

  • Jc — количество рандомных пакетов
  • Jmin — минимальный размер рандомного пакета