Skip to content

Instantly share code, notes, and snippets.

@alexxxmf
alexxxmf / gist:9d732fd06a702469e819067ae212ad80
Created December 16, 2023 11:20 — 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!
@alexxxmf
alexxxmf / init.sh
Last active December 5, 2023 11:13
#!/bin/false
# This file will be sourced in init.sh
# Namespace functions with provisioning_
# https://raw.githubusercontent.com/ai-dock/stable-diffusion-webui/main/config/provisioning/default.sh
### Edit the following arrays to suit your workflow
DISK_GB_REQUIRED=30
PassengerId Survived
892 0
893 1
894 0
895 0
896 1
897 0
898 1
899 0
900 1
@alexxxmf
alexxxmf / answers.js
Last active June 25, 2019 17:16
Answers
//ANSWER ======== A
/* Notes:
https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API
Here we can find in which cases we should expect a catch to be raised in the promise and when not. Seems like unless
there is a problem with the connection or bad formed url, we should expect an error to not be raised. Just an status code that reflects that
/*
const urls = [
"http://randomurl.com/subpath1",
import "react-app-polyfill/ie9"; // For IE 9-11 support
import "react-app-polyfill/ie11"; // For IE 11 support
import "./polyfill";
import React, { Component } from "react";
import ReactDOM from "react-dom";
import "./index.css";
import App from "./App";
import * as serviceWorker from "./serviceWorker";
import Amplify, { Auth } from "aws-amplify";
import { Authenticator, Greetings, SignUp, SignIn } from "aws-amplify-react";
@alexxxmf
alexxxmf / gist:258e7893c08a9fffee8d15efcebabd38
Last active May 28, 2019 18:48
RecipeListScreen.test.js
import React from 'react';
import { mount, shallow } from 'enzyme';
import { View, TextInput, Image, Text } from 'react-native';
import toJSON from 'enzyme-to-json';
import { MockedProvider } from 'react-apollo/test-utils';
import renderer from 'react-test-renderer';
import wait from 'waait';
import { GET_RECIPIES_QUERY } from '../src/graphql/queries';
import RecipeListScreen, {RecipeListScreenWithoutHocs} from '../src/screens/RecipeListScreen';
import React, { Component } from "react";
import {
StyleSheet,
View,
Text,
Image,
ImageBackground,
TouchableHighlight,
StyleProp,
TextStyle,
# Welcome to Serverless!
#
# This file is the main config file for your service.
# It's very minimal at this point and uses default values.
# You can always add more config options for more control.
# We've included some commented out config examples here.
# Just uncomment any of them to get that config option.
#
# For full config options, check the docs:
# docs.serverless.com
const { ApolloServer, gql } = require("apollo-server-lambda");
const AWS = require("aws-sdk");
const dynamoDb = new AWS.DynamoDB.DocumentClient();
const typeDefs = gql`
type Recipe {
recipeId: Int
recipeName: String
description: String
@alexxxmf
alexxxmf / genesis_public_key
Last active March 3, 2018 22:49
Genesis Airdrop
04cd29cfde9d461c722d1b0f482c054367972037dc1982d7b5e7ec46bdb4864679a240f616b9cafbe2a99a389a0f7d76daf5132e27546ea071a80e6d1e35b62955;nortss