This file contains hidden or 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
| // From google-10000-english-usa-no-swears-medium.txt but curated. | |
| const cards = [ | |
| ["company", "fortune", "booth", "injury", "guard"], | |
| ["viral", "simpson", "bacon", "warrior", "frame"], | |
| ["drain", "nursery", "track", "sombrero", "spread"], | |
| ["period", "table", "arcade", "drunk", "plaza"], | |
| ["storm", "postal", "grammar", "rhythm", "lunch"], | |
| ["arrow", "spongebob", "category", "jewelry", "tuition"], | |
| ["science", "grain", "tulip", "investor", "movement"], | |
| ["spotify", "lobby", "chemical", "weekend", "crane"], |
This file contains hidden or 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
| # Programming Life Hacks #1: Website-Blocking Focus Timer | |
| # Copyright (c) 2020 Dickson Tsai | |
| # Follow along on my Youtube: https://youtu.be/kCo9DAuLGX4 | |
| # Disclaimer: This file is primarily for teaching purposes. | |
| # 1. USE THIS SOLUTION AT YOUR OWN RISK. sudo is always risky to use. | |
| # 2. Not the most idiomatic bash/zsh, but it works for me. | |
| # General procedure | |
| # 1. Setup website blocking |
This file contains hidden or 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
| #!/usr/bin/env python3 | |
| from datetime import datetime, timedelta | |
| import sys | |
| USAGE = """ | |
| Print dates from the given start day to the end of the day's month. | |
| Usage: print_dates.py yyyy/mm/dd | |
| """ |
This file contains hidden or 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" | |
| ) | |
| // Golang Struct Embeddings | |
| // General rule: If something is not visible in the current struct, forward | |
| // to an embedded struct. The order of the embedding does not matter, so it's | |
| // possible to have ambiguous selectors (Golang doesn't know which struct to |