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 function createSpyObjFactory<T>(ctor: new (...args: Array<any>) => T, includeProto?: boolean, ...args: Array<string>): () => jasmine.SpyObj<T> { | |
return () => includeProto | |
? jasmine.createSpyObj<T>(ctor.name, Object.getOwnPropertyNames(ctor.prototype).concat(Object.getOwnPropertyNames(Object.getPrototypeOf(ctor).prototype)).concat(args)) | |
: jasmine.createSpyObj<T>(ctor.name, Object.getOwnPropertyNames(ctor.prototype).concat(args)); | |
} |
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
[merge] | |
tool = vscode | |
[mergetool "vscode"] | |
cmd = code --wait $MERGED |
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
[diff] | |
tool = vscode | |
[difftool "vscode"] | |
cmd = code --wait --diff $LOCAL $REMOTE |
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
const activeTimeoutIds = new Map(); | |
const _setTimeout = setTimeout; | |
setTimeout = function (callback, ms, ...args) { | |
const timeoutId = _setTimeout(() => { | |
callback(); | |
activeTimeoutIds.delete(timeoutId); | |
}, ms, ...args); | |
const stackTrace = (new Error()).stack; | |
activeTimeoutIds.set(timeoutId, 'ms: ' + ms + ', trace:' + stackTrace); | |
return timeoutId; |
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] | |
outgoing = log --pretty=oneline --abbrev-commit --graph @{u}.. | |
incoming = !git fetch && git log --pretty=oneline --abbrev-commit --graph ..@{u} |
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] | |
rename = "!moveit() { branchname=$(git rev-parse --abbrev-ref HEAD); git branch -m $branchname $1; git push origin :$branchname; git push --set-upstream origin $1; }; moveit" |
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
... | |
[ScriptBlock]$PostPrompt = { | |
Update-NavigationHistory $pwd.Path | |
} | |
## <Continue to add your own> | |
# Run profile |
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
https://github.com/ToxicFrog/Ligaturizer | |
https://github.com/tonsky/FiraCode | |
https://github.com/larsenwork/monoid | |
https://github.com/source-foundry/Hack |
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] | |
sync = "! git fetch && git remote prune origin && git branch --merged | tr -d '* ' | grep -vE '^\\s*master' | xargs -n1 -r git branch -d" |
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
# https://joonro.github.io/blog/posts/powershell-customizations.html | |
# https://hodgkins.io/ultimate-powershell-prompt-and-git-setup | |
Import-Module posh-docker | |
Write-Host "Imported posh-docker" | |
# https://github.com/dahlbyk/posh-git | |
Import-Module posh-git | |
Write-Host "Imported posh-git" |
OlderNewer