Create Deploy-Token (Access-Token) for particular private repo and use it in dependency as following:
{
"dependencies": {
"package-name": "git+https://<username>:<access_token>@github.com/username/repository#{branch|tag}"
}
}| function DeepLinker(options) { | |
| if (!options) { | |
| throw new Error('no options') | |
| } | |
| var hasFocus = true; | |
| var didHide = false; | |
| // window is blurred when dialogs are shown | |
| function onBlur() { |
| // UPDATE: In 2023, you should probably stop using this! The narrow version of Safari that | |
| // does not support `nomodule` is probably not being used anywhere. The code below is left | |
| // for posterity. | |
| /** | |
| * Safari 10.1 supports modules, but does not support the `nomodule` attribute - it will | |
| * load <script nomodule> anyway. This snippet solve this problem, but only for script | |
| * tags that load external code, e.g.: <script nomodule src="nomodule.js"></script> | |
| * | |
| * Again: this will **not** prevent inline script, e.g.: |
All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.
Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.
elem.offsetLeft, elem.offsetTop, elem.offsetWidth, elem.offsetHeight, elem.offsetParent| code () { | |
| if [[ $# = 0 ]] | |
| then | |
| open -a "Visual Studio Code" -n | |
| else | |
| [[ $1 = /* ]] && F="$1" || F="$PWD/${1#./}" | |
| open -a "Visual Studio Code" -n --args "$F" | |
| fi | |
| } |
| # Depends on the OS X "say" command | |
| import time, datetime, subprocess, math, sys | |
| def say(s): | |
| subprocess.call(['say', str(s)]) | |
| def seconds_until(dt): | |
| return time.mktime(dt.timetuple()) - time.time() |