Skip to content

Instantly share code, notes, and snippets.

# perplexity_subprocess_script.py
# Quick and dirty way to measure prompt perplexity from llama.cpp
# by Evin Jaff
import subprocess
import json
# Paths to executables
PERPLEXITY_ABSOLUTE_PATH = ""
TOKENIZE_ABSOLUTE_PATH = ""
@evinjaff
evinjaff / secretsanta_2024.gs
Created December 15, 2024 16:50
2024 Secret Santa Script
DRY_RUN = true
SEED_PHRASE = "Yeag!"
async function myFunction() {
/* Random Number Generation Setup */
// Create cyrb128 state:
var seed = cyrb128(SEED_PHRASE);
// Four 32-bit component hashes provide the seed for sfc32.
var rand = sfc32(seed[0], seed[1], seed[2], seed[3]);