Skip to content

Instantly share code, notes, and snippets.

View tail-call's full-sized avatar
🐚
Conch in the Shell

Maria tail-call

🐚
Conch in the Shell
View GitHub Profile
@tail-call
tail-call / turing.txt
Created October 19, 2025 05:08
Turing machine in lambda calculus
; Church encodings for booleans, pairs, and lists
TRUE = λx.λy.x
FALSE = λx.λy.y
PAIR = λx.λy.λf.f x y
FST = λp.p TRUE
SND = λp.p FALSE
NIL = λc.λn.n
CONS = λh.λt.λc.λn.c h (t c n)
HEAD = λl.l (λh.λt.h) NIL

This has been transcribed from a youtube video I can no longer find.


85 Characteristics

40. Hypersensitive to disrespect

a) Shame is born in an environment where the child is treated as if they aren't important (at least not as important as those in authority), or a burden, or a mistake, or a failure. It is an environment where they aren't respected

@tail-call
tail-call / Brewfile
Created September 28, 2025 08:23
A brewfile I made when migrating to ARM64
tap "austinliuigi/brew-neovim-nightly", "https://github.com/austinliuigi/brew-neovim-nightly.git"
tap "browsh-org/browsh"
tap "heroku/brew"
tap "homebrew/services"
tap "mongodb/brew"
brew "glib"
brew "cairo"
brew "gdk-pixbuf"
brew "icu4c@77"
brew "harfbuzz"
@tail-call
tail-call / LangchainSammoWrapper.py
Created August 19, 2025 08:13
LSW.py and Friends
import json
import warnings
from typing import Any
from sammo.runners.base import BaseRunner
from sammo.base import LLMResult, Costs
from sammo.schemas import JsonSchema
from sammo.utils import serialize_json
from langchain_core.language_models.base import BaseLanguageModel
@tail-call
tail-call / GradientChecker.py
Created June 26, 2025 08:20
A bunch of files I deleted from CGT4NN repository, archiving here just in case
from cgtnnlib.LearningTask import LearningTask
from cgtnnlib.nn.AugmentedReLUNetwork import AugmentedReLUNetwork
from cgtnnlib.training import train_model
from cgtnnlib.datasets import datasets
import torch.optim as optim
p = 0.5
dataset = datasets[0]
model = AugmentedReLUNetwork(
@tail-call
tail-call / Theorems.csv
Created April 27, 2025 05:48
100 Greatest Theorems
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
Position;Theorem;Author;Collective;Comment;Date Lower;Date Upper;Uncertain Date
1;The Irrationality of the Square Root of 2;Pythagoras and his school;;;-500;;
2;Fundamental Theorem of Algebra;Karl Frederich Gauss;;;1799;;
3;The Denumerability of the Rational Numbers;Georg Cantor;;;1867;;
4;Pythagorean Theorem;Pythagoras and his school;;;-500;;
5;Prime Number Theorem;Jacques Hadamard;;;1896;;
5;Prime Number Theorem;Charles-Jean de la Vallee Poussin;;;1896;;
6;Godel’s Incompleteness Theorem;Kurt Godel;;;1931;;
7;Law of Quadratic Reciprocity;Karl Frederich Gauss;;;1801;;
8;The Impossibility of Trisecting the Angle and Doubling the Cube;Pierre Wantzel;;;1837;;
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
// Структура для аргументов (предположим, что она уже определена)
typedef struct {
int s;
} arguments;
@tail-call
tail-call / utils.py
Created December 16, 2024 08:02
This is the Python Function to Solve the Universe Problem of All Times, and I share it with you, but you must not tell anyone that the Universe Problem of All Times is finally solved
import torch
def dabs_mean_std(
tensor1: torch.Tensor,
tensor2: torch.Tensor
):
dabs: torch.Tensor = torch.abs(tensor2 - tensor1)
mean = torch.mean(dabs)
std = torch.std(dabs)
@tail-call
tail-call / cons.lua
Last active August 11, 2025 09:36
This amazing gist compares performance of using multiple return values in Lua as a data structure compared to tables, tables turn out performing better
---@generic A, D
---@param head A
---@param tail D
---@return fun(): A, D
local function cons(head, tail)
return function ()
return head, tail
end
end
@tail-call
tail-call / claqz3.f
Created December 7, 2024 16:19
Beautiful Fortran Code
*> \brief \b CLAQZ3
*
* =========== DOCUMENTATION ===========
*
* Online html documentation available at
* http://www.netlib.org/lapack/explore-html/
*
*> \htmlonly
*> Download CLAQZ3 + dependencies
*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.tgz?format=tgz&filename=/lapack/lapack_routine/CLAQZ3.f">