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
1) | |
// concatenating obj2 properties into obj1... | |
let obj3 = {...obj1, ...obj2} | |
// works with arrays too | |
const arr1 = [1, 2]; | |
const arr2 = [3, 4]; | |
console.log([ ...arr1, ...arr2 ]); | |
2) | |
console["log"]("Hello World"); |
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
~/Library/KeyBindings | |
{ | |
"^@\UF701" = "noop:"; | |
"^@\UF702" = "noop:"; | |
"^@\UF703" = "noop:"; | |
"\UF729" = "moveToBeginningOfLine:"; | |
"\UF72B" = "moveToEndOfLine:"; | |
} |
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
vim /etc/nsmb.conf | |
signing_required=no | |
step 1: Disable writing .DS_Store files to network shares | |
On the Mac, open up Terminal and enter the following command: | |
defaults write com.apple.desktopservices DSDontWriteNetworkStores 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
1. Disable animations when opening and closing windows. | |
defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool false | |
2. Disable animations when opening a Quick Look window. | |
defaults write -g QLPanelAnimationDuration -float 0 | |
4. Disable animation when opening the Info window in Finder (cmd⌘ + i). |
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
[alias] | |
st = status | |
co = checkout | |
hist = log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short | |
nuke = !sh -c 'git branch -D $1 && git push origin :$1' - | |
nuketag = !sh -c 'git tag -d $1 && git push origin :refs/tags/$1' - | |
createpatch = !sh -c 'git format-patch origin/master' - | |
branch-name = "!git rev-parse --abbrev-ref HEAD" | |
pu = "!git push origin $(git branch-name)" | |
pl = "!git pull origin $(git branch-name)" |