Skip to content

Instantly share code, notes, and snippets.

@swestner
swestner / gist:b56b8d361b6974019556
Created November 6, 2014 02:45
Update Environment
function Get-EnvironmentVariableNames([System.EnvironmentVariableTarget] $Scope) {
switch ($Scope) {
'User' { Get-Item 'HKCU:\Environment' | Select-Object -ExpandProperty Property }
'Machine' { Get-Item 'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Environment' | Select-Object -ExpandProperty Property }
'Process' { Get-ChildItem Env:\ | Select-Object -ExpandProperty Key }
default { throw "Unsupported environment scope: $Scope" }
}
}
function Get-EnvironmentVariable([string] $Name, [System.EnvironmentVariableTarget] $Scope) {
var myApp = angular.module('app',[]);
myApp.directive('breadcrumbs', function ($state) {
return {
restrict: 'EA',
templateUrl: 'index.html',
link: function (scope) {
scope.breadcrumbs = [];
if ($state.$current.name !== '') {
/**
* Created by steve.westner on 2015-02-06.
*/
function pushDownDecorator(){
return {
ok: function (target, $pushDownInstance) {
target.ok = $pushDownInstance.close;
},
cancel: function (target, $pushDownInstance) {