Skip to content

Instantly share code, notes, and snippets.

View ryanwischkaemper's full-sized avatar

Ryan Wischkaemper ryanwischkaemper

View GitHub Profile
@ryanwischkaemper
ryanwischkaemper / keybase.md
Created September 18, 2018 17:01
keybase.md

Keybase proof

I hereby claim:

To claim this, I am signing this object:

@ryanwischkaemper
ryanwischkaemper / Remove-DirectoryWithPathTooLongFileNames.ps1
Created February 13, 2016 04:50
Remove directories on Windows that have really long file paths in them
function Remove-DirectoryWithPathTooLongFileNames(){
[CmdletBinding()]
param(
[Parameter(Mandatory = $true, Position=1)]
[ValidateScript({ Test-Path $_ })]
[String]$folderPath
)
$dirInfo = New-Object -TypeName System.IO.DirectoryInfo -ArgumentList $folderPath
$parentFolder = ([System.IO.Directory]::GetParent($dirInfo.FullName)).FullName
@ryanwischkaemper
ryanwischkaemper / shorten_PATH.bat
Created December 4, 2015 15:21
This will parse your %PATH% environment variable and convert each directory to its shortname equivalent and then piece it all back together. Use the output to replace current PATH
@echo off
SET MyPath=%PATH%
echo %MyPath%
echo --
setlocal EnableDelayedExpansion
SET TempPath="%MyPath:;=";"%"
SET var=
jspm install aurelia-animator-css aurelia-binding aurelia-bootstrapper aurelia-dependency-injection aurelia-event-aggregator aurelia-framework aurelia-history aurelia-history-browser aurelia-http-client aurelia-loader aurelia-loader-default aurelia-logging aurelia-metadata aurelia-path aurelia-route-recognizer aurelia-router aurelia-task-queue aurelia-templating aurelia-templating-binding aurelia-templating-resources aurelia-templating-router
@ryanwischkaemper
ryanwischkaemper / synchronous-promises.js
Created September 30, 2015 17:01
Javascript synchronous promise execution
var promises = [];
for(var i = 0; i < 10; i++)promises.push({config: i});
// execute each request synchronously
return promises.reduce(function (promise, item) {
return promise.then(function () {
return myService.thatReturnsPromise(item);
});
}, $q.when());