Skip to content

Instantly share code, notes, and snippets.

View klxfeiyang's full-sized avatar

Fei Yang klxfeiyang

  • Irvine, CA
  • 09:44 (UTC -12:00)
View GitHub Profile
@cardil
cardil / JEP.md
Last active May 16, 2024 21:17
[Draft] JEP - Change name of imported type (aliasing)

Summary

Change name of imported type (aliasing)

Goals

The goal is to make code more productive and clean in cases where multiple classes with same name must be used in code. It should relief a developers frustration in that

@FradSer
FradSer / iterm2_switch_automatic.md
Last active May 24, 2024 15:16
Switch iTerm2 color preset automatic base on macOS dark mode.

The latest beta (3.5) includes separate color settings for light & dark mode. Toggling dark mode automatically switches colors.

Vist iTerm2 homepage or use brew install iterm2-beta to download the beta. Thanks @stefanwascoding.


  1. Add switch_automatic.py to ~/Library/ApplicationSupport/iTerm2/Scripts/AutoLaunch with:
@squarism
squarism / iterm2.md
Last active May 30, 2024 14:42
An iTerm2 Cheatsheet

Tabs and Windows

Function Shortcut
New Tab + T
Close Tab or Window + W (same as many mac apps)
Go to Tab + Number Key (ie: ⌘2 is 2nd tab)
Go to Split Pane by Direction + Option + Arrow Key
Cycle iTerm Windows + backtick (true of all mac apps and works with desktops/mission control)