Skip to content

Instantly share code, notes, and snippets.

View cameronapak's full-sized avatar
:electron:
Jesus Saves

Cameron Pak cameronapak

:electron:
Jesus Saves
View GitHub Profile
@cameronapak
cameronapak / prompt-convert-bible-reference-to-usfm.md
Created August 15, 2025 16:27
LLM prompt to help you convert Bible references into USFM format.

Role and Purpose:

You are an expert Bible reference converter, tasked with transforming a given Bible verse reference into the USFM (Unified Standard Format Markers) short code format used in digital Bible texts. This conversion is critical for accurate Bible software indexing and referencing.

Context and Background:

You will receive references like "John 3:16" or "Psalms 23:1-3" and must output the corresponding USFM short code format, such as "JHN.3.16" or "PSA.23.1-3". The USFM codes are standardized abbreviations for each Bible book, and some books have multiple forms (e.g., "Psalm" vs. "Psalms") that should be normalized to the correct USFM code.

Examples:

Input Expected Output Explanation
@cameronapak
cameronapak / bknd-astro-integration-registry.json
Last active July 24, 2025 14:13
Add bknd to Astro with a simple shadcn registry
{
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "astro-integration",
"type": "registry:block",
"title": "bknd Astro Integration",
"description": "Integration files for using bknd with Astro",
"dependencies": [
"bknd@latest",
"astro"
],
@cameronapak
cameronapak / bknd.config.ts
Created July 15, 2025 13:48
My guess at s3 bucket adapter for bknd
import type { AstroBkndConfig } from "bknd/adapter/astro";
import type { APIContext } from "astro";
import { em, entity, number, text, libsql } from "bknd/data";
import { secureRandomString } from "bknd/utils";
import { StorageS3Adapter, MediaAdapterRegistry, type S3AdapterConfig } from "bknd/media";
import { syncTypes } from "bknd/plugins";
import { registries } from "bknd";
import {
LIBSQL_DATABASE_TOKEN,
LIBSQL_DATABASE_URL,
@cameronapak
cameronapak / basecoatui-postprocessed.css
Created June 4, 2025 01:29
Basecoat UI Post-processed CSS File
/*! tailwindcss v4.1.4 | MIT License | https://tailwindcss.com */
@import url("https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Geist+Mono&display=swap");
@layer properties;
@layer theme, base, components, utilities;
@layer theme {
:root, :host {
--font-sans: 'Geist';
--font-mono: 'Geist Mono';
--color-amber-50: oklch(98.7% 0.022 95.277);
@cameronapak
cameronapak / ft-featured-apps-embed.js
Created April 24, 2025 17:07
faith.tools featured apps script embed
@cameronapak
cameronapak / open-api-spec-homeless-resource.yml
Created February 27, 2025 20:55
Homeless Helper by OurTechnology.co (beta) - Open API Spec
openapi: 3.0.1
info:
title: Typesense Resource Search API
description: API to search for resources using Typesense.
version: 1.0.0
servers:
- url: https://cameronpak-homeless.web.val.run
paths:
/resources:
get:
@cameronapak
cameronapak / christian-app-uri-schemes.md
Last active September 19, 2024 09:43
Christian App URI Schemes. The purpose of this directory of app scheme URI's is to make it easy for you to link from your app to other Christian apps, with the heart of unity.

image

App Scheme URI's for Christian Apps

The purpose of this directory of app scheme URI's is to make it easy for you to link from your app to other Christian apps, with the heart of unity.

Curated by https://faith.tools, the best place to find and distribute apps for Christians.

Share this list easily: https://dub.sh/ft-uri-schemes

Bible Bot Christian Companion AI Prompt

You can copy, translate, modify, and distribute this resource, without restriction, and without needing to ask permission.

skip to prompt

This post offers a Bible-focused AI prompt you can use or adapt for your projects! I believe AI can be a powerful tool for Christian growth, and I want to contribute to its development.

Here's the Background:

@cameronapak
cameronapak / temporary-email-domains.js
Created January 5, 2024 11:25
List of temporary email domains that should be blocked by default lol
export const temporaryEmailDomains = [
"mailinator.com",
"10minutemail.com",
"guerrillamail.com",
"temp-mail.org",
"sharklasers.com",
"tempmail.de",
"mintemail.com",
"maildrop.cc",
"temp-mail.ru",
@cameronapak
cameronapak / alpine-fade-in-img-directive.js
Last active December 16, 2023 05:53
A potential way to easily fade in images using a custom Alpine directive. This helps prevent page jumping on image load.
function encodeSvg(svgString) {
// https://gist.github.com/jennyknuth/222825e315d45a738ed9d6e04c7a88d0?permalink_comment_id=4601690#gistcomment-4601690
return svgString.replace(/[<>#%{}"]/g, (x) => '%' + x.charCodeAt(0).toString(16));
}
function createLoadingSvg(loadingColor) {
return `<svg width="1" height="1" viewBox="0 0 1 1" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" fill="${loadingColor}"/></svg>`;
}
function getLoadingBackgroundImage(el, loadingColor) {