Skip to content

Instantly share code, notes, and snippets.

@umutahmet
umutahmet / gist:4d0bf5410b28141d311d0b2dc2e8a56a
Created November 27, 2023 01:52 — 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.

Tiny Content Framework

About the project

This is a tiny content strategy framework focused on goals, messages, and branding. This is not a checklist. Use what you need and scrap the rest. Rewrite it or add to it. These topics should help you get to the bottom of things with clients and other people you work with.

Give me feedback on Twitter (@nicoleslaw) or by email ([email protected]).

Contents

@umutahmet
umutahmet / mobx-recompose.jsx
Created November 8, 2018 23:12 — forked from geoffmiller/mobx-recompose.jsx
Mobx with Recompose structure
const { compose, mapProps, withHandlers, lifecycle } = Recompose;
const { observable, action } = mobx;
const { inject, observer, Provider } = mobxReact;
const { PropTypes } = React;
// store
// ============================
const counterStore = observable({
// for primitive values, wrap the value inside a observable,
// or wrap it in an plain js object
@umutahmet
umutahmet / # Sublime Emmet JSX Reactjs.md
Created July 1, 2018 04:41 — forked from max-mykhailenko/# Sublime Emmet JSX Reactjs.md
Sublime text 3. Enable Emmet in JSX files with Sublime React plugin

This is no longer needed as Emmet supports JSX - you just need to turn it all on. Did a quick tutorial: http://wesbos.com/emmet-react-jsx-sublime/

Thanks, @wesbos

Problem

  • Using emmet in jsx files
  • Emmet expands text when js autocomplete needed
@umutahmet
umutahmet / fit-bounds-react-google-maps.js
Created June 4, 2018 01:08
Fit to bounds react google maps
// Created this as a pointer that may help someone else in search of this simple solution to fit the map to bounds.
// This has been taken from an answer here (credit where credit is due):
// https://github.com/tomchentw/react-google-maps/issues/305
// See demo by tomchentw here:
// https://tomchentw.github.io/react-google-maps/#standalonesearchbox
const MapWithAMarkers = compose(
withProps({
googleMapURL: "https://maps.googleapis.com/maps/api/js?key=<YOUR_API_KEY>",
@umutahmet
umutahmet / pug-babel.sublime-syntax.yaml
Created May 26, 2018 14:55
Pug / Babel Sublime Syntax
%YAML 1.2
---
# See http://www.sublimetext.com/docs/3/syntax.html
name: Pug/Js
file_extensions:
- js
scope: source.js
contexts:
main:
- match: ""
@umutahmet
umutahmet / pre-commit.sh
Created February 10, 2016 01:24
Prevent direct commits to master
# Prevent direct commits to master
branch=`git symbolic-ref HEAD`
if [ "$branch" = "refs/heads/master" ]; then
echo "Direct commits to the branch master are not allowed"
exit 1
fi