Skip to content

Instantly share code, notes, and snippets.

View tucq88's full-sized avatar
🎯
Fake it till you make it. Confidence is more important than knowledge.

Tu Chu tucq88

🎯
Fake it till you make it. Confidence is more important than knowledge.
View GitHub Profile
@tucq88
tucq88 / gist:981f7c24ae6933b3db1848600d95422e
Created November 27, 2023 16:14 — 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!
@tucq88
tucq88 / vscode.md
Created November 19, 2023 08:13
Editor tricks

Remove html attributes

Search for: <(table|tr|td|p|div|span)[\S\s]*?\n?> Replace with: <$1>

@tucq88
tucq88 / RFC-Template.md
Created November 11, 2023 10:30
A sample template for RFC

RFC Template

Feature Name: [unique identity, e.g myawesomefeature]

Type: [Select of feature, improvement, breaking-change]

Start Date: [Today, recommend YYYY-MM-DD format]

Author: [ Names [email] ]

@tucq88
tucq88 / install.sh
Last active October 17, 2022 04:34
Ecom-Puller Startup Script
echo 'DATABASE_URI=postgresql://upatra:upatra@db:5432/ecompuller
SHOPIFY_VERSION=2022-07' > .env.docker
echo '#!/bin/bash
docker-compose run ecompuller pipenv run cli "$@"' > ./cli.sh
chmod +x ./cli.sh
echo 'version: "3"
networks:
did:3:kjzl6cwe1jw149d9y2yhi1d52crsenoje766ibga96y1ql8ma0lf4w78h3fi2so
@tucq88
tucq88 / crontab
Last active August 14, 2020 09:12
Nginx config for Sendy. With Ubuntu@18.04, php@7.3, nginx@1.14.0
# sudo crontab -e
*/1 * * * * php /var/www/html/sendy//import-csv.php > /dev/null 2>&1
*/5 * * * * php /var/www/html/sendy//scheduled.php > /dev/null 2>&1
*/1 * * * * php /var/www/html/sendy//autoresponders.php > /dev/null 2>&1
@tucq88
tucq88 / learning-rxjs.md
Created September 12, 2019 08:36
My learning about RxJS

Learning RxJS

Intro

  • Reactive programming is programming with asynchronous data streams, also deal with synchronous.
    • A stream is a sequence of ongoing events ordered in time, that can emit:
      • Value,
      • Error,
      • Completed signal
  • Everything could be considered as a stream: Single value, Array, Event, etc
@tucq88
tucq88 / keybase.md
Last active September 12, 2019 06:57

Keybase proof

I hereby claim:

  • I am tucq88 on github.
  • I am tucq88 (https://keybase.io/tucq88) on keybase.
  • I have a public key ASBh_OYPN972zWlq6HGDHS4xCfaM83ExmFm_HXZ5825Miwo

To claim this, I am signing this object:

@tucq88
tucq88 / progress.10s.sh
Created October 17, 2018 03:52 — forked from aurorabbit/progress.10s.sh
Bitbar timely progress bar
#!/bin/sh
# add this to your bitbar directory
# don't forget to chmod +x
# width and characters for the progress bars
# feel free to configure these
width=30
fill_char=""
empty_char=""
@tucq88
tucq88 / example-links.txt
Last active October 17, 2018 03:20
SafariBook Links Process #safari #books #links