Skip to content

Instantly share code, notes, and snippets.

View dai's full-sized avatar
:octocat:
still Catch it Up.

dai dai

:octocat:
still Catch it Up.
View GitHub Profile
@intellectronica
intellectronica / pydantic-xml-structured-inputs.ipynb
Created July 16, 2025 08:47
pydantic-xml-structured-inputs.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dgl
dgl / check-decdhl.sh
Last active June 24, 2025 16:17
Check for DECDHL support (DEC double-height lines)
#!/usr/bin/env bash
# © David Leadbeater, 2025 <http://©.st/dgl>
# SPDX-License-Identifier: 0BSD
#
# Detect whether terminals support DECDHL (DEC double-height lines). This is
# not perfect, as terminals are a mess, to put it mildly.
#
# If you want see the output in your terminal, try: curl -i ip.wtf
#
# Usage:
@torvalds
torvalds / gist:6faadce34c56d53b2d5352da0c3cd093
Last active September 23, 2025 09:14
Not involved with any fishy crypto fishy business
I'm told that there are people claiming to "tokenize" my git repositories with my approval.
I just want to clarify that that is not the case. I do not believe in monetizing my repositories.
If you believe crypto-currencies are anything but a scam, I have a bridge to sell you.
But I'm not selling source code.
@martinsaposnic
martinsaposnic / spiral-grant-proposal-martin-saposnic.txt
Created April 15, 2025 18:35
Grant proposal - Spiral - Martin Saposnic
Hi Spiral Team,
I hope you’re well. I’m Martin Saposnic, a professional developer
with over 11 years of experience based in Buenos Aires, Argentina.
Growing up in a country where economic instability and stringent
financial policies are a way of life, I learned early on that
traditional financial systems have inherent limits. This background
shaped my understanding of Bitcoin’s potential, not merely as an
alternative, but as a vital tool for promoting financial autonomy on
a global scale. I’ve been fascinated with Bitcoin for over 8 years,

A Journey Though Elixir's Syntax

This was written in response to this Reddit post. Which asked:

defmodule User do
  @enforce_keys [:name]
  defstruct [:name, age: 0, email: nil]
end
@awestley
awestley / speed.py
Last active April 8, 2025 17:06
speed.py
import ollama
import time
import re
from transformers import AutoTokenizer
MODEL = "r1-1776-500:671b"
QUESTIONS = [
"Explain how a rocket engine works in simple terms.",
"Can you tell me how fuel combustion happens inside the engine?",
@attilatorda
attilatorda / Add_Explorer_Context_Menus.bat
Created April 3, 2025 22:48
Windows Explorer Right-Click Tools
@echo off
SETLOCAL EnableDelayedExpansion
:: Check if running as admin (required for registry edits)
net session >nul 2>&1
if %errorLevel% neq 0 (
echo This script requires administrator privileges.
echo Please right-click and "Run as administrator".
pause
exit /b
@neiser
neiser / conventional-commit-regex-for-gitlab.yml
Last active March 27, 2025 13:58
Conventional Commit Regex for GitLab Push Rule
# The regex is split into a YAML sequence for better commenting
# Use
# yq 'join("")' conventional-commit-regex.yml
# to get the actual regex string!
# Test changes using
# https://regex101.com/r/tl6h3n/6 (please update this if you make some changes below)
# See also https://docs.gitlab.com/user/project/repository/push_rules/#validate-commit-messages
# In particular, note that GitLab uses multiline mode by default, so use \A, \z instead of ^ or $
@leehanchung
leehanchung / cli.mjs
Last active August 5, 2025 09:35
formatted claude code cli.mjs
This file has been truncated, but you can view the full file.
#!/usr/bin/env -S node --no-warnings=ExperimentalWarning --enable-source-maps
// Claude Code is a Beta product per Anthropic's Commercial Terms of Service.
// By using Claude Code, you agree that all code acceptance or rejection decisions you make,
// and the associated conversations in context, constitute Feedback under Anthropic's Commercial Terms,
// and may be used to improve Anthropic's products, including training models.
// You are responsible for reviewing any code suggestions before use.
// (c) Anthropic PBC. All rights reserved. Use is subject to Anthropic's Commercial Terms of Service (https://www.anthropic.com/legal/commercial-terms).

Understanding and Preparing for an AI Future

The Gospel According to Chris Barber


This guide synthesises Chris Barber’s AI Prep Notes, a series of conversations and interviews with leading thinkers on advanced AI (chrisbarber.co/AI+Prep+Notes | @chrisbarber). Generated by ChatGPT (o1, 4o canvas). Copied, pasted, prompted, and lightly edited by Eleanor Berger (intellectronica.net).