Instantly share code, notes, and snippets.
👋
Searching for AGI
My heart is open source 💕 Formerly@amzn,@microsoft
- Brooklyn, NY
- https://transitivebullsh.it
- @transitive_bs
transitive-bullshit /claude-code-prompts.js
Last activeApril 14, 2025 13:14
Unminified prompts and tool definitions for Claude Code This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
// 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
importdecircularfrom'decircular' | |
importisObjectfrom'is-obj' | |
importsortKeysfrom'sort-keys' | |
import{typeLiteralUnion}from'type-fest' | |
exporttypeEncoding='hex'|'base64'|'buffer' | |
exporttypeAlgorithm=LiteralUnion<'sha1'|'sha256'|'sha512',string> | |
exporttypeOptions={ | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
import{CodeInterpreter,typeProcessMessage}from'@e2b/code-interpreter' | |
import{z}from'zod' | |
import{createAIFunction}from'../create-ai-function.js' | |
import{getEnv}from'../utils.js' | |
exportconste2b=createAIFunction( | |
{ | |
name:'execute_python', | |
description: ` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
import defaultKy, { type KyInstance } from 'ky'; | |
import { z } from 'zod'; | |
import { getEnv } from '../../utils/helpers.js'; | |
export namespace serper { | |
export const BASE_URL = 'https://google.serper.dev'; | |
export const SearchParamsSchema = z.object({ | |
q: z.string().describe('search query'), | |
autocorrect: z.boolean().default(true).optional(), |
transitive-bullshit /dexa-vegas-sphere.glsl
CreatedDecember 1, 2023 09:22
Dexa logo superimposed onto the Las Vegas Sphere This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
// paste this into https://whenistheweekend.com/theSphere.html | |
// shadertoy source: https://www.shadertoy.com/view/cldBz2 | |
uniformfloat time; | |
varyingvec2 vUv; | |
varyingvec3 vNormal; | |
void mainImage(outvec4 fragColor,invec2 fragCoord ) | |
{ | |
vec2 center=vec2(0.25,0.55); |
transitive-bullshit /splade.py
Last activeNovember 6, 2023 02:40 — forked fromrileytomasek/splade.py
SPLADE on Modal This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
fromfastapi.responsesimportJSONResponse | |
frommodalimportImage,Mount,NetworkFileSystem,Secret,Stub,method,web_endpoint | |
frompydanticimportBaseModel | |
# This is copied from: https://github.com/pinecone-io/examples/blob/2f51ddfd12a08f2963cc2849661fab51afdeedc6/learn/search/semantic-search/sparse/splade/splade-vector-generation.ipynb#L10 | |
# Which is recommended here: https://docs.pinecone.io/docs/hybrid-search | |
stub=Stub("splade") | |
image=Image.debian_slim().pip_install("torch","transformers") | |
volume=NetworkFileSystem.persisted("splade-model-cache-vol-gcp",cloud="gcp") |
transitive-bullshit /.bashrc
CreatedApril 2, 2022 20:07
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
alias ..='cd ..;ls' | |
alias ...='cd ../..;ls' | |
alias ....='cd ../../..;ls' | |
alias .....='cd ../../../..;ls' | |
alias ......='cd ../../../../..;ls' | |
alias .......='cd ../../../../../..;ls' | |
alias ........='cd ../../../../../../..;ls' | |
alias .........='cd ../../../../../../../..;ls' | |
alias ..........='cd ../../../../../../../../..;ls' |
transitive-bullshit /gist:615fdc8c81a19da94017566c16c4d064
CreatedMarch 27, 2020 19:52
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
GRPC_TRACE=all GRPC_VERBOSITY=DEBUG node benchmark-multiple-gets.js | |
using gRPC via @google-cloud/firestore | |
2020-03-27T19:51:39.594Z | resolving_load_balancer | firestore.googleapis.com:443 IDLE -> IDLE | |
2020-03-27T19:51:39.594Z | connectivity_state | firestore.googleapis.com:443 IDLE -> IDLE | |
2020-03-27T19:51:39.595Z | dns_resolver | Resolver constructed for target firestore.googleapis.com:443 | |
2020-03-27T19:51:39.598Z | channel | firestore.googleapis.com:443 createCall [0] method="/google.firestore.v1.Firestore/BatchGetDocuments", deadline=Fri Mar 27 2020 15:56:39 GMT-0400 (Eastern Daylight Time) | |
2020-03-27T19:51:39.599Z | call_stream | [0] Sending metadata | |
2020-03-27T19:51:39.599Z | channel | Pick result: QUEUE subchannel: undefined status: undefined undefined | |
2020-03-27T19:51:39.600Z | call_stream | [0] write() called with message of length 117 | |
2020-03-27T19:51:39.601Z | call_stream | [0] end() called |
transitive-bullshit /gist:d37cb5885f36b6ec0a166742af646cfd
CreatedMarch 27, 2020 19:31
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
master* in ~/dev/saasify/temp/gcp-test $ yarn why @grpc/grpc-js | |
yarn why v1.22.0 | |
[1/4] 🤔 Why do we have the module "@grpc/grpc-js"...? | |
[2/4] 🚚 Initialising dependency graph... | |
[3/4] 🔍 Finding dependency... | |
[4/4] 🚡 Calculating file sizes... | |
=> Found "@grpc/grpc-js@0.7.4" | |
info Has been hoisted to "@grpc/grpc-js" | |
info This module exists because it's specified in "dependencies". |
transitive-bullshit /wordcloud.openapi.json
CreatedMarch 27, 2020 06:22
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
{ | |
"openapi":"3.0.2", | |
"info": { | |
"title":"Fast API", | |
"version":"0.1.0" | |
}, | |
"paths": { | |
"/stylecloud": { | |
"post": { | |
"responses": { |
NewerOlder