Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am dchang on github.
  • I am dhchang (https://keybase.io/dhchang) on keybase.
  • I have a public key ASAcf0XSyzjPRjGofzmOMCdqYhQ7zebe0nhRpFp0ApgxzQo

To claim this, I am signing this object:

@dchang
dchang / caps2esc.ahk
Created February 4, 2020 16:44
AutoHotkey script to have caps2esc on Windows
*CapsLock::
Send {Blind}{Ctrl Down}
cDown := A_TickCount
Return
*CapsLock up::
; Modify the threshold time (in milliseconds) as necessary
If ((A_TickCount-cDown) < 150)
Send {Blind}{Ctrl Up}{Esc}
Else
# Ignore VLT files
.vlt
.vlt-sync.log
.vlt-sync-config.properties
# Ignore Quickstart launches in the source tree
license.properties
crx-quickstart
# Ignore compilation results
@dchang
dchang / rc
Last active October 3, 2015 03:27
shell configuration file
export JAVA_HOME="/Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home"
alias subl="/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl"
alias simulator="open /Applications/Xcode.app/Contents/Developer/Applications/iOS\ Simulator.app"
@dchang
dchang / defaults.sh
Last active October 1, 2015 08:07
osx defaults
# autohide dock
defaults write com.apple.dock autohide -bool true
# fade hidden apps in dock
defaults write com.apple.dock showhidden -bool true
# set dock autohide delay to 0 seconds
defaults write com.apple.Dock autohide-delay -int 0
# set dock autohide animation duration to 0 seconds