Skip to content

Instantly share code, notes, and snippets.

View PrateekKumarSingh's full-sized avatar

Prateek Singh PrateekKumarSingh

View GitHub Profile
using System;
namespace app
{
public class Program
{
public static void Main(string[] args)
{
Console.WriteLine("Length of args array: "+args.Length);
}
}
using System;
namespace app
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World!");
}
}
using System;
namespace app
{
    public class Program
    {
        public static void Main(string[] args)
        {
            Console.WriteLine("Hello World!");
        }
    }
using System;
using Parent;
namespace Parent
{
// another class in another namespace
public class Child
{
public string getName()
{
using System;
namespace app
{
class Program
{
// main method returns integer
static int Main(string[] args)
{
Console.WriteLine("Hello World!");
using System;
namespace app
{
class Program
{
static void Main(string[] args)
{
var len = args.Length;
Console.WriteLine("Number of args: "+ len);
using System;
namespace app
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World!");
}
}
#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
# 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'
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'