find . -name 'directory_to_delete' -type d -prune -exec rm -rf '{}' +
...or...
npm install --g trash-cli
| Get-CimInstance Win32_Process -Filter "Name = 'chrome.exe' AND CommandLine LIKE '%--headless%'" | %{Stop-Process $_.ProcessId} |
| /** | |
| * getClosest | |
| * | |
| * Find the closest element to the target element | |
| * | |
| * @param target - dom element which is the current element | |
| * @param selector - the element you are looking for | |
| * @param scope - limit the search to a containing element | |
| * @returns {*} | |
| */ |
| npm list -g --depth 0 |
find . -name 'directory_to_delete' -type d -prune -exec rm -rf '{}' +
...or...
npm install --g trash-cli
PS> New-Item -Type file -Force $profile
| FOR /d /r . %d in (DIR_NAME_HERE) DO @IF EXIST "%d" echo %d && RMDIR /S /Q %d" |
| {"lastUpload":"2020-03-18T16:06:51.760Z","extensionVersion":"v3.4.3"} |
| /** | |
| * A more consistent interval than the native setInterval. | |
| * Should help prevent the time drifting. | |
| * | |
| * @param {function} callback | |
| * @param {integer} delay | |
| */ | |
| const rInterval = function (callback, delay) { | |
| let requestAnimation = window.requestAnimationFrame; | |
| let start = Date.now(); |
yarn config set python <path to Python binary>npm config set python <path to Python binary>e.g. python C:\\Users\\\\.windows-build-tools\\python27\\python.exe
| /** | |
| * partiallyApply | |
| * | |
| * Apply an initial set of params to a method. | |
| * Similar to bind() but without having to pass `this` | |
| * | |
| * @param {function} fn | |
| * @param {*} initialArgs | |
| */ | |
| function partiallyApply(fn, ...initialArgs) { |