Skip to content

Instantly share code, notes, and snippets.

@alternayte
alternayte / gist:0b85cba02a3cb8134401d65901e3ba73
Created November 28, 2023 06:34 — forked from levelsio/gist:5bc87fd1b1ffbf4a705047bebd9b4790
Secret of Monkey Island: Amsterdam (by @levelsio) or how to create your own ChatGPT image+text-based adventure game
# 2023-11-27 MIT LICENSE
Here's the open source version of my ChatGPT game MonkeyIslandAmsterdam.com.
It's an unofficial image+text-based adventure game edition of Monkey Island in Amsterdam, my home town.
Please use it however you want. It'd be nice to see more ChatGPT-based games appear from this. If you get inspired by it, please link back to my X https://x.com/levelsio or this Gist so more people can do the same!
Send me your ChatGPT text adventure game on X, I'd love to try it!
2023/06/24 14:07:41 illegal base64 data at input byte 3
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2 addr=0x38 pc=0x100c22ac0]
goroutine 1 [running]:
google.golang.org/protobuf/proto.UnmarshalOptions.unmarshalMessageSlow({{}, 0x1, 0x1, 0x0, {0x10108bb38, 0x1400009a180}, 0x270f}, {0x140002e8290, 0x10, 0x10}, ...)
/Users/alter-nate/go/pkg/mod/google.golang.org/protobuf@v1.28.1/proto/decode.go:132 +0x90
google.golang.org/protobuf/proto.UnmarshalOptions.unmarshal({{}, 0x1, 0x1, 0x0, {0x10108bb38, 0x1400009a180}, 0x270f}, {0x140002e8290, 0x10, 0x10}, ...)
/Users/alter-nate/go/pkg/mod/google.golang.org/protobuf@v1.28.1/proto/decode.go:111 +0x228
google.golang.org/protobuf/proto.Unmarshal({0x140002e8290, 0x10, 0x10}, {0x10108a348?, 0x140001d1540?})
@alternayte
alternayte / react-markdown-toc.tsx
Created June 6, 2022 17:30 — forked from sobelk/react-markdown-toc.tsx
React Markdown TOC Proof-of-Concept
/*
This is based on an idea for building a table of contents on top of
React Markdown using a custom renderer. The original conversation is at
https://github.com/remarkjs/react-markdown/issues/48
*/
import React from "react";
import ReactMarkdown from "react-markdown";
@alternayte
alternayte / introspection-query.graphql
Created June 4, 2022 14:41 — forked from craigbeck/introspection-query.graphql
Introspection query for GraphQL
query IntrospectionQuery {
__schema {
queryType { name }
mutationType { name }
subscriptionType { name }
types {
...FullType
}
directives {