This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"files.exclude": { | |
"**/*.js": { "when": "$(basename).ts" }, | |
"**/**.js": { "when": "$(basename).tsx" }, | |
"**/*.d.ts": { "when": "$(basename).ts" }, | |
"**/**.map": true, | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Add "touch" to powershell | |
# > code $profile | |
function touch { | |
Param( | |
[Parameter(Mandatory=$true)] | |
[string]$Path | |
) | |
if (Test-Path -LiteralPath $Path) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export ZSH='/Users/tony_tang/.oh-my-zsh' | |
POWERLEVEL9K_MODE='awesome-patched' | |
ZSH_THEME="powerlevel9k/powerlevel9k" | |
plugins=( | |
git | |
) | |
source $ZSH/oh-my-zsh.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// "fixed-element" is the class of the overlay (fixed element) what has "position: fixed" | |
// Call disableScroll() and enableScroll() to toggle | |
var freeze = function(e) { | |
if (!document.getElementsByClassName("fixed-element")[0].contains(e.target)) { | |
e.preventDefault(); | |
} | |
} | |
var disableScroll = function() { |