This file contains hidden or 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
// | |
// Licensed under the Apache License, Version 2.0 (the "License"); | |
// you may not use this file except in compliance with the License. | |
// You may obtain a copy of the License at | |
// http://www.apache.org/licenses/LICENSE-2.0 | |
// | |
// Unless required by applicable law or agreed to in writing, software | |
// distributed under the License is distributed on an "AS IS" BASIS, | |
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
// See the License for the specific language governing permissions and |
This file contains hidden or 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
// | |
// Copyright (c) Microsoft Corporation. All rights reserved. | |
// Licensed under the Apache License, Version 2.0 (the "License"); | |
// you may not use this file except in compliance with the License. | |
// You may obtain a copy of the License at | |
// http://www.apache.org/licenses/LICENSE-2.0 | |
// | |
// Unless required by applicable law or agreed to in writing, software | |
// distributed under the License is distributed on an "AS IS" BASIS, | |
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
This file contains hidden or 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
### Keybase proof | |
I hereby claim: | |
* I am fearthecowboy on github. | |
* I am fearthecowboy (https://keybase.io/fearthecowboy) on keybase. | |
* I have a public key whose fingerprint is 2B7D DF27 186D C48E 17DC 1667 5DF6 9654 20E7 F0F7 | |
To claim this, I am signing this object: |
This file contains hidden or 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
<# | |
#> | |
function Add-PackageSource { | |
param( | |
[string] $name, | |
[string] $location, | |
[bool] $trusted | |
) |
This file contains hidden or 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
### | |
# ==++== | |
# | |
# Copyright (c) Microsoft Corporation. All rights reserved. | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software |
This file contains hidden or 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
public static IEnumerable<T> ToIEnumerable<T>(this IEnumerator<T> enumerator) { | |
if (enumerator != null) { | |
while (enumerator.MoveNext()) { | |
yield return enumerator.Current; | |
} | |
} | |
} | |
public static T[] ToArray<T>(this IEnumerator<T> enumerator) { | |
return ToIEnumerable<T>(enumerator).ToArray(); |
This file contains hidden or 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
nuget { | |
nuspec { | |
id = ROOT; | |
version = 5.34.18.0001; | |
title = ROOT; | |
authors = {CERN}; | |
owners = {G. Watts}; | |
licenseUrl: "http://root.cern.ch/drupal/content/license"; | |
projectUrl: "http://root.cern.ch"; | |
iconUrl: "http://root.cern.ch/drupal/sites/default/files/rootdrawing-logo.png"; |
This file contains hidden or 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
<?xml version="1.0" encoding="utf-8"?> | |
<SoftwareIdentity xmlns="http://standards.iso.org/iso/19770/-2/2014/schema.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
name="Microsoft.Common.Runtime.Identities" | |
tagVersion="1" uniqueId="Microsft.Common.Runtime.Identity.1" | |
version="1.0" versionScheme="multipartnumeric" > | |
<Meta | |
os="windows" | |
version="6.0" | |
name="Windows Vista (either server-2008 or vista)" |
This file contains hidden or 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
dynamic ps = new DynamicPowershell(); | |
DynamicPowershellResult result = ps.Dir(@"c:\") ; | |
DynamicPowershellResult result2 = ps.TestPath(result); | |
foreach (var r in result2) { | |
Console.WriteLine(r); // prints true for each item! | |
} |
This file contains hidden or 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
using System; | |
using System.Collections.Generic; | |
using System.Collections.ObjectModel; | |
using System.Linq; | |
using System.Management.Automation; | |
using System.Reflection; | |
using System.Threading; | |
namespace parametertest | |
{ |