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 / simple-git-workflow-for-rapid-development.md
Last active October 12, 2023 04:47
Simple Git Workflow for Rapid Development

As a lean team, so we've optimized Git-flow to be more simple and have it fits with our team size and project complexities better

We gonna have 3 primary types of branches: master branch, staging branch and features branches, which are:

  • Brach master is latest version of workable product. Each increaments will be merged to master after sprint is finished. And it's always release-able.

  • Branch staging is branched-off from master. When new iteration is started, it will reset to latest master's state. And dev team will use this branch to demo their work.

@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:
@tucq88
tucq88 / Sublime Text 3 | Eclipse - Shortcuts
Last active December 16, 2021 14:11
Eclipse shortcuts key bindings for Sublime Text 3 (OS X)
[
{ "keys": ["super+shift+w"], "command": "close_all" },
{ "keys": ["super+shift+s"], "command": "save_all" },
{ "keys": ["alt+up"], "command": "swap_line_up" },
{ "keys": ["alt+down"], "command": "swap_line_down" },
{ "keys": ["super+alt+j"], "command": "join_lines" },
{ "keys": ["super+alt+down"], "command": "duplicate_line" },
{ "keys": ["shift+super+r"], "command": "show_overlay", "args": {"overlay": "goto", "show_files": true} },
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: