Skip to content

Instantly share code, notes, and snippets.

View craigthomasfrost's full-sized avatar

Craig Atallah Frost craigthomasfrost

View GitHub Profile
"""
The most atomic way to train and run inference for a GPT in pure, dependency-free Python.
This file is the complete algorithm.
Everything else is just efficiency.
@karpathy
"""
import os # os.path.exists
import math # math.log, math.exp
@craigthomasfrost
craigthomasfrost / script.sh
Created February 13, 2024 14:38
Reset Databases
# portal_server
sqlx db reset
sqlx migrate run
# registry_service
yarn reset
@craigthomasfrost
craigthomasfrost / redeploy.sh
Last active November 15, 2024 23:42
Redeploy Ditto cloud for development
pkill kubectl
kubectl config use-context craig.frost-dev.k8s.ditto.live
# If auth error, get new cert at https://login.dev.k8s.ditto.live
vcluster delete vk8s --namespace craig-frost
kubectl delete ns craig-frost
cd Developer/cloud-services
source .env
./scripts/deploy.sh prep
# OR
CLOUD_VERSION=ci-2985-6171-bcf43c PERSISTENCE_STORAGE_SIZE=10Gi ./scripts/deploy.sh
import api, { route } from "@forge/api";
const fetchSpaces = async () => {
const res = await api.asApp().requestConfluence(route`/wiki/rest/api/space?type=global`, {
headers: {
'Accept': 'application/json'
}
});
const data = await res.json();
Results
Waves -> Waves
Waves
Create -> Review
Open -> Open
Upcoming -> Upcoming
Closed -> Closed
Results -> Results
Open
Collecting
const cssBeams = `
.hljs {
display: block;
color: #FFFFFF;
line-height: 1.65;
}
.hljs-comment,
.hljs-quote {
color: #95a0ba;
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
html {
font-family: sans-serif;
}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
html {
font-family: sans-serif;
}
@craigthomasfrost
craigthomasfrost / SassMeister-input-HTML.html
Created June 15, 2015 22:26
Generated by SassMeister.com.
<ul class="bitcss-nav">
<li class="bitcss-nav__item"><a href="/">Archive</a>
</li>
<li class="bitcss-nav__item"><a href="/">About</a>
</li>
<li class="bitcss-nav__item"><a href="/">Contact</a>
</li>