Skip to content

Instantly share code, notes, and snippets.

@defunctzombie
defunctzombie / browser.md
Last active July 15, 2024 04:13
browser field spec for package.json
@staltz
staltz / introrx.md
Last active July 25, 2024 16:52
The introduction to Reactive Programming you've been missing
@taoyuan
taoyuan / npm-using-https-for-git.sh
Last active July 18, 2024 05:36
Force git to use https:// instead of git://
# npm using https for git
git config --global url."https://github.com/".insteadOf git@github.com:
git config --global url."https://".insteadOf git://
# npm using git for https
git config --global url."git@github.com:".insteadOf https://github.com/
git config --global url."git://".insteadOf https://
@wojteklu
wojteklu / clean_code.md
Last active July 26, 2024 01:28
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

@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
@fritz-c
fritz-c / README.md
Last active July 21, 2024 15:27
(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:

@fritz-c
fritz-c / README.md
Last active February 14, 2024 17:18
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