Skip to content

Instantly share code, notes, and snippets.

@txedo
txedo / gist:f0bc485430b47dc75d0125447dc1528c
Created November 27, 2023 01:50 — 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.
It's much easier than you think and you'll be shocked by how relatively well it works with little work.
@txedo
txedo / introrx.md
Created May 15, 2016 14:17 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
<!doctype html>
<title>Demo</title>
<script>
var DOMReady = function(a,b,c){b=document,c='addEventListener';b[c]?b[c]('DOMContentLoaded',a):window.attachEvent('onload',a)}
DOMReady(function () {
alert('The DOM is Ready!');
});
</script>
@txedo
txedo / massivegitpull
Created December 9, 2012 10:59
When cloning multiple git repositories, occasionally pulling their changes from them all could be a tedious task. This task could be even harder if git and svn repositories are mixed up. This simple script finds all git repositories from current work directory and executes 'git pull' command for each one.
#!/bin/sh
GIT_REPOS=`find -maxdepth 2 -type d -name '.git'`
for i in $GIT_REPOS
do
GIT_REPO_DIR=`dirname $i`
echo Found Git repository at $GIT_REPO_DIR
cd $GIT_REPO_DIR
echo Executing command git pull...
@txedo
txedo / ajaxify-html5.js
Created October 26, 2012 07:15 — forked from balupton/README.md
Ajaxify a Website with the HTML5 History API using History.js, jQuery and ScrollTo
// History.js It!
// v1.0.1 - 30 September, 2012
// https://gist.github.com/854622
(function(window,undefined){
// Prepare our Variables
var
History = window.History,
$ = window.jQuery,
document = window.document;
@txedo
txedo / rAF.js
Created October 24, 2012 09:34 — forked from paulirish/rAF.js
requestAnimationFrame polyfill
// http://paulirish.com/2011/requestanimationframe-for-smart-animating/
// http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating
// requestAnimationFrame polyfill by Erik Möller
// fixes from Paul Irish and Tino Zijdel
(function() {
var lastTime = 0;
var vendors = ['ms', 'moz', 'webkit', 'o'];
for(var x = 0; x < vendors.length && !window.requestAnimationFrame; ++x) {