run
npx https://gist.github.com/joelhooks/c585cdab12b986fc7f1a057796e99b76
import dotenv from "dotenv"; | |
import Anthropic from "@anthropic-ai/sdk"; | |
import { setTimeout } from "timers/promises"; | |
import * as fs from "fs/promises"; | |
import { getSession } from "./neo4j"; | |
// Configuration and Initialization | |
dotenv.config(); | |
const anthropic = new Anthropic({ |
import {publicProcedure, router} from '@skillrecordings/skill-lesson' | |
import {isEmpty} from 'lodash' | |
import {getToken} from 'next-auth/jwt' | |
import {getSubscriberFromCookie} from '@skillrecordings/skill-lesson/utils/ck-subscriber-from-cookie' | |
export const offerRouter = router({ | |
getNextOffer: publicProcedure.query(async ({ctx}) => { | |
const token = await getToken({req: ctx.req}) | |
const subscriber = await getSubscriberFromCookie(ctx.req) |
// Name: ck stats for site | |
// Snippet: ;ck | |
import "@johnlindquist/kit" | |
const sites = [ | |
{ | |
name: "Some Account", | |
ck_secret: await env("SOME_ACCOUNT_CK_SECRET"), | |
} |
#!/bin/bash | |
# https://gist.github.com/julianxhokaxhiu/c0a8e813eabf9d6d9873 | |
# Improved as per feedback from @pascal - https://gist.github.com/julianxhokaxhiu/c0a8e813eabf9d6d9873#gistcomment-3086462 | |
# brew install optipng pngcrush jpegoptim | |
find . -type f -iname "*.png" -exec optipng -nb -nc {} \; | |
find . -type f -iname "*.png" -exec pngcrush -rem gAMA -rem alla -rem cHRM -rem iCCP -rem sRGB -rem time -ow {} \; | |
find . -type f \( -iname "*.jpg" -o -iname "*.jpeg" \) -exec jpegoptim -f --strip-all {} \; |
The Seven Tenets of the UbD Framework | |
1. Learning is enhanced when teachers think purposefully about curricular planning. The UbD framework helps this process without offering a rigid process or prescriptive recipe. | |
2. The UbD framework helps to **focus curriculum and teaching on the development and deepening of student understanding and transfer of learning** (i.e., the ability to effectively use content knowledge and skill). | |
3. Understanding is revealed when students autonomously make sense of and transfer their learning through authentic performance. Six facets of understanding—the capacity to explain, interpret, apply, shift perspective, empathize, and self-assess—can serve as indicators of understanding. | |
4. Effective curriculum is planned backward from long-term, desired results through a three-stage design process** (Desired Results, Evidence, and Learning Plan). This process helps avoid the common problems of treating the textbook as the curriculum rather than a resource, and activity-oriented teachin |
These are notes about my personal setup for a new macOS computer. Some of the instructions might be incorrect for your environment
You'll need several things installed on your machine to proceed with configuring zsh beyond the defaults.
xcode-select --install
. This is an SDK and tool for development in the command line environment. Lots of things depend on it and it's essential.[user] | |
email = [email protected] | |
name = Joel Hooks | |
[core] | |
excludesfile = /Users/joel/.gitignore | |
editor = code | |
[init] | |
defaultBranch = main | |
[pull] | |
rebase = false |