Author: Chris Lattner
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Options included below:
- Using Docker
docker-compose
- Using Homebrew
brew
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"os" | |
"os/exec" | |
"syscall" | |
) | |
func main() { |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.