Skip to content

Instantly share code, notes, and snippets.

View ntodd's full-sized avatar

Nate Todd ntodd

  • Pixel Authority
View GitHub Profile
@s-macke
s-macke / gpt-4-tokens.txt
Last active March 29, 2026 20:59
All 100k GPT-4 Tokens. New lines are replaced with \n and carriage returns with \r. The index of the token is (index=line-1). The list is extracted using https://github.com/openai/tiktoken
!
"
#
$
%
&
'
(
)
*
@SteffenDE
SteffenDE / ortex_mpnet.livemd
Created July 25, 2023 16:05
Running the all-mpnet-base-v2 sentence transformer in Elixir using Ortex

Ortex MPNet Sentence Transformer

Mix.install([
  {:ortex, github: "elixir-nx/ortex", ref: "9e384971d1904ba91e5bfa49594d742a1d06cb4c"},
  {:tokenizers,
   github: "elixir-nx/tokenizers", override: true, ref: "20295cfdf9b6342d723b405481791ec87afa203c"},
  {:exla,
   github: "elixir-nx/nx",
   sparse: "exla",
@transitive-bullshit
transitive-bullshit / claude-code-prompts.js
Last active May 24, 2026 09:54
Unminified prompts and tool definitions for Claude Code
// 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).
// Version: 0.2.9
@polvalente
polvalente / gist:bd0eb1aa8b2a1fa01734019a60b27ca5
Last active December 5, 2025 09:25
Example Python-Nx runtime bridge

Untitled notebook

Mix.install [
  {:exla, github: "elixir-nx/nx", sparse: "exla"},
  {:nx, github: "elixir-nx/nx", sparse: "nx", override: true},
  {:pythonx, "~> 0.4.7"}
]