Skip to content

Instantly share code, notes, and snippets.

View JackyChiu's full-sized avatar

Jacky Chiu JackyChiu

View GitHub Profile
@staltz
staltz / introrx.md
Last active July 27, 2024 04:59
The introduction to Reactive Programming you've been missing
@julz
julz / main.go
Created November 20, 2015 12:39
containersched minicontainer
package main
import (
"fmt"
"os"
"os/exec"
"syscall"
)
func main() {
@benlinton
benlinton / multiple_mysql_versions_for_development.md
Last active September 23, 2023 09:38
Multiple MySQL Versions with Homebrew

Multiple MySQL Versions for Development

Options included below:

  • Using Docker docker-compose
  • Using Homebrew brew

Using Docker (recommended)

This gist was originally created for Homebrew before the rise of Docker, yet it may be best to avoid installing mysql via brew any longer. Instead consider adding a barebones docker-compose.yml for each project and run docker-compose up to start each project's mysql service.

@lattner
lattner / TaskConcurrencyManifesto.md
Last active July 25, 2024 20:23
Swift Concurrency Manifesto
@erickzhao
erickzhao / POWERHOUR.js
Last active July 31, 2020 01:48
Power Hour Runner
const buttons = {
next: document.querySelector('[title="Next"]'),
play: document.querySelector('[title="Play"]'),
}
// CONFIGURATION CONSTANTS
const HORN_LINK = 'https://raw.githubusercontent.com/bread-gang/SAAS/master/airhorn.mp3'; // change horn sound
const SONG_TIME = 60000; // in ms
const NUM_SONGS = 60; // change number of songs played
const NUM_END_SONGS = 1; // number of songs to play in full at the end