Movatterモバイル変換


[0]ホーム

URL:


Skip to content
Search Gists
Sign in Sign up

Instantly share code, notes, and snippets.

View transitive-bullshit's full-sized avatar
👋
Searching for AGI

Travis Fischer transitive-bullshit

👋
Searching for AGI
View GitHub Profile
@transitive-bullshit
transitive-bullshit /claude-code-prompts.js
Last activeApril 14, 2025 13:14
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
@transitive-bullshit
transitive-bullshit /hash-object.ts
CreatedNovember 7, 2024 19:14
Get the hash of an object
importdecircularfrom'decircular'
importisObjectfrom'is-obj'
importsortKeysfrom'sort-keys'
import{typeLiteralUnion}from'type-fest'
exporttypeEncoding='hex'|'base64'|'buffer'
exporttypeAlgorithm=LiteralUnion<'sha1'|'sha256'|'sha512',string>
exporttypeOptions={
/**
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: `
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
transitive-bullshit /dexa-vegas-sphere.glsl
CreatedDecember 1, 2023 09:22
Dexa logo superimposed onto the Las Vegas Sphere
// 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
transitive-bullshit /splade.py
Last activeNovember 6, 2023 02:40— forked fromrileytomasek/splade.py
SPLADE on Modal
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")
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'
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
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".
{
"openapi":"3.0.2",
"info": {
"title":"Fast API",
"version":"0.1.0"
},
"paths": {
"/stylecloud": {
"post": {
"responses": {
NewerOlder

[8]ページ先頭

©2009-2025 Movatter.jp