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 Expand-Item | |
{ | |
param | |
( | |
[Parameter(Mandatory=$true)] [string] $zipFile, | |
[Parameter(Mandatory=$true)] [string] $destinationDirectory | |
) | |
if (!(Test-Path -Path $zipFile -PathType Leaf)) | |
{ |
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 ConvertTo-Boolean | |
{ | |
param | |
( | |
[Parameter(Mandatory=$false)][string] $value | |
) | |
switch ($value) | |
{ | |
"y" { return $true; } | |
"yes" { return $true; } |
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
PS> ConvertTo-Boolean (Read-Host -Prompt "Enter a true or false value") | |
Enter a true or false value: true | |
True | |
PS> ConvertTo-Boolean (Read-Host -Prompt "Enter a true or false value") | |
Enter a true or false value: t | |
True | |
PS> ConvertTo-Boolean (Read-Host -Prompt "Enter a true or false value") | |
Enter a true or false value: false | |
False |
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 Expand-Item | |
{ | |
param | |
( | |
[Parameter(Mandatory=$true)] [string] $zipFile, | |
[Parameter(Mandatory=$true)] [string] $destinationDirectory | |
) | |
if (!(Test-Path -Path $zipFile -PathType Leaf)) | |
{ |
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 Expand-Item7zip | |
{ | |
param | |
( | |
[Parameter(Mandatory=$true)] [string] $item, | |
[Parameter(Mandatory=$true)] [string] $destinationDirectory | |
) | |
if (!(Test-Path -Path $item -PathType Leaf)) | |
{ |
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
Add-Type -AssemblyName "EnvDTE" | |
$vsInstance = [System.Runtime.InteropServices.Marshal]::GetActiveObject("VisualStudio.DTE.11.0") | |
$dte = $vsInstance.DTE | |
$solution = $dte.Solution | |
$soltuion.Projects | Format-List | |
Write-Host "$($solution.Projects)" | |
$solution.Projects | Foreach-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
param | |
( | |
[Parameter(Mandatory=$true)][string] $solutionFullName | |
) | |
function Register-CSharpCode ([string] $code, $FrameworkVersion="v2.0.50727", [Array]$References) | |
{ | |
# | |
# Get an instance of the CSharp code provider | |
# |
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
package com.kyzog.android; | |
import java.lang.reflect.Type; | |
import java.util.Date; | |
import com.google.gson.JsonDeserializationContext; | |
import com.google.gson.JsonDeserializer; | |
import com.google.gson.JsonElement; | |
import com.google.gson.JsonParseException; |