My Profile Photo

Hao's Keeper


A blog to place memos


  1. Keeping a Widget Up to Date

    Use the following approaches to optimize the widget refreshed: …


  2. Insert Empty View in Grid

    SwiftUI Grid …


  3. CS193P Lecture07-ViewModifier Animation

    by animation a Shape animation via their ViewModifiers …


  4. Swift Optional Chaining

    Optional Chaining …


  5. Javascript Optional Chaining

    Optional Chaining …


  6. Generators in Observablehq

    The simplest generator is a cell that yields a single value. …


  7. Swift Regex Replace

    ```swift var str = “123ABC456 789abc012” _ = str.replacingOccurrences(of: “[a-zA-Z]”, with: “-“, options: .regularExpress, range: nil) …


  8. Git Checkout Remote Branch

    git checkout -b Lesson4 origin/Lesson4 …


  9. Git Clone Specific Branch

    git clone --branch Lesson4 https://github.com/chiahao/Memorize.git …


  10. Git Checkout Remote Branch

    git checkout -b Lesson4 origin/Lesson4 …