One-shot and a few multi-turn chats later, we got a simple "cinematic" level Minecraft-inspired (cube/voxel world) 3D game.
Model:
- ChatGPT-5
- ChatGPT-5 (with "think harder" prompt)
- ChatGPT-5 Thinking
| // Barks endlessly in your console (Paste it in) | |
| (function () { | |
| class MarkovChainGenerator { | |
| constructor(tokens, order = 2) { | |
| this.order = order; | |
| this.model = new Map(); | |
| for (let i = 0; i <= tokens.length - order; i++) { | |
| const key = tokens.slice(i, i + order).join(','); | |
| const next = tokens[i + order]; |
| #!/bin/bash | |
| # Function to display usage information | |
| usage() { | |
| echo "Usage: $0 /path/to/input.mp4 [ /path/to/output_directory ]" | |
| exit 1 | |
| } | |
| # Check if at least one argument (input file) is provided | |
| if [ $# -lt 1 ]; then |
| #!/bin/bash | |
| set -euo pipefail | |
| ##################################################################################### | |
| # This Bootstrap Script installs Dokku latest on Ubuntu (use LTS or latest) | |
| # | |
| # This script also installs UFW (firewall), some basic Dokku plugins, and | |
| # raises ulimits. Comment out any step you wish to skip in main. | |
| # | |
| # IMPORTANT: This script also disables password authentication via SSH for |
Where to find user agent strings?
https://explore.whatismybrowser.com/useragents/explore/software_name/facebook-bot/
Looking for same but for Apache2? Here: https://techexpert.tips/apache/apache-blocking-bad-bots-crawlers/
| //////////////////////////////////// | |
| /* "dependencies": { | |
| "@supabase/supabase-js": "^2.13.1", | |
| "langchain": "^0.0.44" | |
| } */ | |
| //////////////////////////////////// | |
| import { OpenAI } from "langchain/llms"; | |
| import { |
| const { Configuration, OpenAIApi } = require('openai'); | |
| let openai; | |
| const instructions = ``; | |
| if (process.env.OPEN_AI_API_KEY) { | |
| const configuration = new Configuration({ apiKey: process.env.OPEN_AI_API_KEY }); | |
| openai = new OpenAIApi(configuration); | |
| } |
| // ==UserScript== | |
| // @name HN Plus | |
| // @match https://*.ycombinator.com/* | |
| // @grant none | |
| // @version 2.1 | |
| // @author overflowy | |
| // @description Adds favicons to HN links and navigation menu for less known sections | |
| // @inject-into content | |
| // ==/UserScript== |
| class LineChart { | |
| // LineChart by https://kevinkub.de/ | |
| constructor(width, height, values) { | |
| this.ctx = new DrawContext(); | |
| this.ctx.size = new Size(width, height); | |
| this.values = values; | |
| } | |
| _calculatePath() { |
| #!/bin/bash | |
| gdb -p "$1" -batch -ex 'set {short}$rip = 0x050f' -ex 'set $rax=231' -ex 'set $rdi=0' -ex 'cont' |