Skip to content

Instantly share code, notes, and snippets.

View jasalt's full-sized avatar

Jarkko Saltiola jasalt

View GitHub Profile
@jasalt
jasalt / reversible-snake-export.json
Created July 19, 2026 08:52
OSW Studio - "Make snake game where snake can be reversed" (gpt5.6-sol)
{
"project": {
"id": "526f4308-3083-401e-8684-a5f2f7ffd6f0",
"name": "reversible-snake",
"createdAt": "2026-07-18T18:46:56.855Z",
"updatedAt": "2026-07-19T08:51:21.099Z",
"settings": {
"runtime": "static"
},
"lastSavedCheckpointId": "cp_1784451075202_3",
@jasalt
jasalt / cow.js
Created July 11, 2026 08:21
JSCAD cow test
// https://jscad.app/#data:application/gzip;base64,H4sIAMFCUWoAA7VaX3PTSBJ/z6eYN5TEdiTZMU5uub3A3la4Y4FiqdpbUnlQrImlRZZ0kkySZfPd79c9M5JGloyBOgpkaaan/093Tw/LLC0r8Ue5DELxTBTyv5u4kM6Tf/DIyToLZRKnqyeHBwcK8rMo80gWciSWD5gJZSEesZDBJ3kRr+Mq/iTLGroqgrRMggoLiqzC73/My+/m5cNIYHUCiHVcFFkbIa++zYp1g3CZJVkR/ylbUDzUQESbJGnN0md5cHByIsb1H/GCl7RG9OrfLl++/yeWXrmTs/lI1M/ptQZ4/urixb8VgMtT+vnUALx9+VrPn9HE3OfnzExfvnnzs5r2ecZ7ys8a/+Wbd69byxdquX/dFeBSJrnskyCUK6x3wkPx7O8iFEfil6CKJm9fihPhLVxjxluYpJIpQQZFQbAHQuBtUshws5SOEyyXI/GJkVwURfAwiUv+dTD2o8AstJ4ug8rRmDB+KM7bE58OR+LqGo5zu0mXVZylQiZJnJdZHDrFPYz/gH9/wvZytZZpVYKXqX8oPoORQlabIlVe4Vw1wNeAZu9zPosiCONNeS68FobHw8ODxxbBMg7lL+xTDr2OxEpma5sEhsUPwoVMyvmAOYW/Bcm5uAJqF3+vxaNZec6/RMO2xkUar+HJoUig/ZZJAPUqgxQCLruKUxGXooqkiOJ8It7jhcDlPdQXliLM7tK7oAgF4MYfJrQ2j4JS0iJ3MvHfvpw0kgWa4Cu5Ase3RZZW0F9VbCCkWvUMQj0qWZXJg7jAIHvDOrh3IBm/l3Hq8ArYr/4D2q4AmVWRbdJwJDwRVKLKcpHdij8267xGqgCA1xNjolBP3GB8SVzYROCPPlzCQG1yOPEr9kN3MlvU40l21xr3aQFY+pnFhM6gxc3yo7gJlh+NxkitoA8vkUHRgkHwIJBJjZpGf2JVKK39KMYe7OppGpdxLso7hDyoOBQfUymBI
{
"project": {
"id": "0e19bc74-21da-4631-96fc-1fb82bb54e70",
"name": "deploytest",
"createdAt": "2026-07-01T17:16:47.432Z",
"updatedAt": "2026-07-01T17:19:41.243Z",
"settings": {
"runtime": "static",
"models": {
"templateId": "default",
@jasalt
jasalt / gist:fa5a050de8619f55f3b19fdec7fc81b3
Created July 1, 2026 10:19
osws issue (there was two interviews, later one was implemented so there's some cruft)
{
"project": {
"id": "b7a50bac-99ce-460e-a532-9c08edffc33a",
"name": "interview-end-issue",
"createdAt": "2026-07-01T09:54:15.272Z",
"updatedAt": "2026-07-01T10:07:13.370Z",
"settings": {
"runtime": "static",
"models": {
"templateId": "or-recommended",
{
"project": {
"id": "caf9ab83-29ac-422f-a543-79772d04f7e9",
"name": "asset-json-export-issue",
"createdAt": "2026-07-01T09:05:43.773Z",
"updatedAt": "2026-07-01T09:09:43.072Z",
"settings": {
"runtime": "static",
"models": {
"templateId": "or-recommended",
{
"project": {
"id": "f5ad9c8e-4b68-4601-8d9a-9d0c3082685d",
"name": "component-route-issue",
"createdAt": "2026-06-30T18:51:08.756Z",
"updatedAt": "2026-06-30T18:56:49.607Z",
"settings": {
"runtime": "static"
},
"lastSavedCheckpointId": "cp_1782845809594_3",
@jasalt
jasalt / gist:f5b1aa6d68d5745387ff78e99ba4da97
Created April 28, 2026 10:15
phel nrepl message log (leading to `phel-internal\\doc` namespace)
(-->
id "2141"
op "eval"
session "e7d54de60c395159029a632e1196ef43"
time-stamp "2026-04-28 13:10:03.659734210"
code "(binding [*x* nil] (= (test-fn) nil))"
column 17
file "*scratch*"
line 32
~~~~~~~~~~
Error in 'validator-fn > always-falsey validator can't initialize atom' (/home/user/dev/phel/clojure-test-suite/test/clojure/core_test/atom.cljc:6)
Test: (thrown? (atom {} :validator (constantly nil)))
threw exception: InvalidArgumentException
~~~~~~~~~~
Error in 'validator-fn > always-falsey validator can't initialize atom' (/home/user/dev/phel/clojure-test-suite/test/clojure/core_test/atom.cljc:6)
Test: (thrown? (atom {} :validator (constantly false)))
threw exception: InvalidArgumentException
@jasalt
jasalt / gist:00200bb14d3b19ccf968a97057024d13
Created April 12, 2026 02:04
Stacktraces in test output
Stack trace:
#0 /tmp/phel/cache/compiled/phel_core.php(13497): Phel\Lang\AbstractFn@anonymous->{closure:Phel\Lang\AbstractFn@anonymous()
#1 /tmp/phel/cache/compiled/phel_core.php(14273): Phel\Lang\AbstractFn@anonymous->__invoke()
#2 /tmp/phel/cache/compiled/phel_core.php(9003): Phel\Lang\AbstractFn@anonymous->__invoke()
#3 /tmp/phel/cache/compiled/phel_core.php(9000): Phel\Lang\AbstractFn@anonymous->__invoke()
#4 /tmp/phel/cache/compiled/phel_core.php(6245): Phel\Lang\AbstractFn@anonymous->__invoke()
#5 /tmp/phel/cache/compiled/phel_test.php(422): Phel\Lang\AbstractFn@anonymous->__invoke()
#6 /tmp/phel/cache/compiled/phel_test.php(468): Phel\Lang\AbstractFn@anonymous->__invoke()
#7 /tmp/phel/cache/compiled/clojure_core-test_assoc-bang.php(3680): Phel\Lang\AbstractFn@anonymous->__invoke()
#8 /tmp/phel/cache/compiled/phel_test.php(2014): Phel\Lang\AbstractFn@anonymous->__invoke()
@jasalt
jasalt / google-parser.phel
Last active January 10, 2026 15:51
Phel & PHP 8.4 HTML API testing: scraping Google search results page
(ns seo-tools\google-parser
(:require phel\trace :refer [dbg])
(:use \DOMDocument)
(:use \DOMXPath)
(:use Dom\XPath)
(:use Dom\HTMLDocument))
(php/libxml_use_internal_errors true)
;; TODO update with try catch as parse-search-page