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; | |
namespace app | |
{ | |
public class Program | |
{ | |
public static void Main(string[] args) | |
{ | |
Console.WriteLine("Length of args array: "+args.Length); | |
} | |
} |
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; | |
namespace app | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
Console.WriteLine("Hello World!"); | |
} | |
} |
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; | |
namespace app | |
{ | |
public class Program | |
{ | |
public static void Main(string[] args) | |
{ | |
Console.WriteLine("Hello World!"); | |
} | |
} |
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 Parent; | |
namespace Parent | |
{ | |
// another class in another namespace | |
public class Child | |
{ | |
public string getName() | |
{ |
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; | |
namespace app | |
{ | |
class Program | |
{ | |
// main method returns integer | |
static int Main(string[] args) | |
{ | |
Console.WriteLine("Hello World!"); |
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; | |
namespace app | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var len = args.Length; | |
Console.WriteLine("Number of args: "+ len); |
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; | |
namespace app | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
Console.WriteLine("Hello World!"); | |
} | |
} |
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
#Install IIS Feature | |
Install-WindowsFeature -Name Web-Server -IncludeManagementTools | |
#Install FTP feature | |
Install-WindowsFeature -Name Web-Ftp-Server -IncludeAllSubFeature -IncludeManagementTools -Verbose | |
#Creating new FTP site | |
$SiteName = "Demo FTP Site" | |
$RootFolderpath = "C:\DemoFTPRoot" | |
$PortNumber = 21 |
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
# installation | |
Install-Module PSCognitiveService -Verbose -Force -Confirm:$false -Scope CurrentUser | |
# import module | |
Import-Module PSCognitiveService | |
# create cognitive service accounts in azure | |
$Params1 = @{ | |
AccountType = 'Bing.Search.v7' | |
ResourceGroupName = 'demo-resource-group' |
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
Install-Module PSWordCloud -Scope CurrentUser | |
Import-Module PSWordCloud | |
# build a word cloud from these key phrases | |
$Path = "$env:TEMP\wordcloud.svg" | |
$Params = @{` | |
Path = $Path | |
Typeface = 'Consolas' | |
ImageSize = '3000x2000' | |
AllowRotation = 'None' |