Skip to content

Instantly share code, notes, and snippets.

View tuhuynh27's full-sized avatar

Tu Huynh tuhuynh27

View GitHub Profile
@tuhuynh27
tuhuynh27 / ContentView.swift
Last active March 11, 2024 10:04
cryptoBar
import Cocoa
import SwiftUI
class StatusBarController {
private var statusItem: NSStatusItem?
private var btcPrice: String = "Loading..."
private let binanceAPIURL = URL(string: "https://api.binance.com/api/v3/ticker/price?symbol=BTCUSDT")!
init() {
let statusItem = NSStatusBar.system.statusItem(withLength: NSStatusItem.variableLength)
@tuhuynh27
tuhuynh27 / mac_quick_setup.md
Created August 15, 2024 06:56
Mac Quick Setup

If you only need to set up to code basic static pages, Chrome and Notepad are enough 😄, but since I work quite a lot with build scripts, build tools, and terminals, setting up the machine will be a bit more complicated.

brew install neofetch

Package Management

HomeBrew

If you're familiar with apt or yum on Linux, then on macOS we have brew, which helps you install, update, and remove software packages easily and quickly through its CLI.