Skip to content

Instantly share code, notes, and snippets.

@fritz-c
fritz-c / README.md
Last active May 17, 2025 19:14
Computer-vision-based Yakuza 0 Karaoke-playing program

Yakuza 0 Karaoke Singer

A computer-vision-based program to automatically play the Yakuza 0 karaoke minigame.

auto_karaoke

(Full video on reddit)

Setup

@fritz-c
fritz-c / README.md
Last active June 27, 2025 22:41
(PC) Final Fantasy X - Thunder Plains automatic lightning dodging script

FF10 Lightning Dodger

auto lightning dodging

Setup

  1. Download the lightning_dodger.py and trigger_key.py files and place them in the same directory

  2. Install dependencies:

@wagoodman
wagoodman / bisect.sh
Last active November 10, 2023 15:32
Timeout a bash command (while testing with git bisect)
#!/bin/bash
timeout=290
bundle install
git checkout Gemfile.lock
./timeout.sh -t $timeout bundle exec rake assets:clobber assets:clean assets:precompile RAILS_ENV=production
@wojteklu
wojteklu / clean_code.md
Last active July 4, 2025 12:37
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules

@taoyuan
taoyuan / npm-using-https-for-git.sh
Last active June 18, 2025 08:59
Force git to use https:// instead of git://
# npm using https for git
git config --global url."https://github.com/".insteadOf [email protected]:
git config --global url."https://".insteadOf git://
# npm using git for https
git config --global url."[email protected]:".insteadOf https://github.com/
git config --global url."git://".insteadOf https://
@staltz
staltz / introrx.md
Last active June 28, 2025 13:44
The introduction to Reactive Programming you've been missing
@defunctzombie
defunctzombie / browser.md
Last active July 15, 2024 04:13
browser field spec for package.json