Sort by:
  • SwiftUI notes

    Andy Brown · 01/07/2024 · 1 min read

    Implicit Identity

    Gotcha 1

    Be careful when using something like this:

    extension View {
        @ViewBuilder
        func applyIf(_ condition:...
    
  • Fork shortcuts

    Andy Brown · 26/06/2024 · 1 min read

    Quick stash

    ⌘ command + ⌥ option + ⇧ shift + H

    Discard changes

    Select one/all and hit: ⌘ command + ⇧ shift + D

    Stage/unstage changes

    Sel...

  • SSH

    Andy Brown · 25/06/2024 · 1 min read

    Create new SSH directory

    1. Create an SSH directory if it doesn't exist: mkdir -p ~/.ssh.
    2. Ensure the SSH directory has the correct permission...
  • Xcode shortcuts

    Andy Brown · 25/06/2024 · 1 min read

    Open preferences

    ⌘ command + ,

  • Slack messaging from scripts

    Andy Brown · 24/05/2024 · 1 min read

    First create a Slack app and get the webhook URL.

    Then you can use the following command to test your application:

    curl -X POST -H 'Content-t...
    
  • Grep usage

    Paul Brown · 15/05/2024 · 1 min read

    Search for a given word across a given directory

    grep -ir "word-to-search-for" /path/to/search/directory --exclude-dir={directory-to-ignor...
    
  • GitHub Actions

    Paul Brown · 11/05/2024 · 1 min read

    #Edit Pull Request Description ###Scratches: see: here for us...

  • e() helper notes

    Paul Brown · 10/05/2024 · 1 min read

    Research on e() helper for blog post

    • Laravel's first documentation from late 2011 -- [found here](http://web.archive.org/web/20111210235706/http:...
  • React Learning and Notes

    Paul Brown · 06/04/2024 · 2 min read

    useState

    • useState is a 'hook' ('hooks' are functions in React for 'hooking into' state and lifecycle methods -- though this loosely makes sense...