Skip to content

Instantly share code, notes, and snippets.

View orta's full-sized avatar
🥝

Orta Therox orta

🥝
View GitHub Profile
@orta
orta / otherfile.txt
Created March 24, 2026 15:31
failing keytrace.json due to it being in the wrong filename
{
"did": "did:plc:t732otzqvkch7zz5d37537ry"
}
@orta
orta / keytrace.json
Last active February 9, 2026 11:26
keytrace.json
{
"keytrace": "kt-506c97fe5daa5227",
"did": "did:plc:t732otzqvkch7zz5d37537ry"
}
{
"keytrace": "kt-4b94f5d55d9b6208",
"did": "did:plc:t732otzqvkch7zz5d37537ry"
}
@orta
orta / _lexicon.json
Last active January 19, 2026 12:51
Puzzmo's speculative puzzle lexicon for a daily puzzle
{
"lexicon": 1,
"id": "com.puzzmo.puzzle",
"defs": {
"main": {
"type": "record",
"description": "A puzzle record.",
"key": "tid",
"record": {
"type": "object",
@orta
orta / JavaScriptCore+fetch.swift
Created March 3, 2025 11:10 — forked from cute/JavaScriptCore+fetch.swift
add fetch, console.log and Promise.then/catch to JavaScriptCore on iOS/Mac
import JavaScriptCore
extension JSContext {
subscript(key: String) -> Any {
get {
return self.objectForKeyedSubscript(key)
}
set{
self.setObject(newValue, forKeyedSubscript: key as NSCopying & NSObjectProtocol)
}
@orta
orta / run.js
Created December 19, 2024 22:31
A script to show what changed between runs on turbo build with --summerize
// @ts-check
const { join } = require("path")
const { readFileSync, existsSync, readdirSync } = require("fs")
/** @type {Map<string, import("../../.turbo/runs/2qS2rsViUIxwnKR9LWUL64tqpCP.json")>} */
const runs = new Map()
const root = process.cwd()
if (existsSync(join(root, ".turbo/runs"))) {
@orta
orta / scope.json
Created July 25, 2024 18:32
Example Puzzmo Deed Data for Today's Daily
{
"wordbind": {
"hints": 0,
"par": -2,
"wordsFound": 8,
"bestWord": 19,
"bestWordText": "CORRIES",
"timeToBestWord": 40022
},
"cubeclear": {
@orta
orta / index.md
Last active June 16, 2024 12:13
Prisma include fragments

To make sure I am explicit on the fragments (I know you, Jan, know this, but bypassers will read too) in GraphQL + Relay you can write a React DOM like

query root
  - fragment A 
  - fragment B
  - fragment C

and the query gets compiled by relay to make a single request, and then each fragment only gets the data it requested (even though it was part of a larger query of data)

@orta
orta / pong.lua
Created April 23, 2022 17:50
A trivial version of pong for the playdate
import "CoreLibs/sprites"
import "CoreLibs/graphics"
playdate.display.setRefreshRate(20)
local gfx = playdate.graphics
local spritelib = gfx.sprite
local screenWidth = playdate.display.getWidth()
local screenHeight = playdate.display.getHeight()
@orta
orta / example.d.ts
Last active December 9, 2021 15:27
html-lang-tester
export type ABC = {
one: 123
}