This file contains 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains 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
Написать приложение-парсер для параметров, введенных из консоли. | |
Список правил: | |
CommandParser.exe [/?] [/help] [-help] [-k key value] [-ping] [-print <print a value>] | |
CommandParser.exe - вызов приложения без параметров показывает то же, что и вызов помощи | |
/?, /help,-help - вызов помощи |
This file contains 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 class Extensions | |
{ | |
public static Uri Append(this Uri uri, params string[] paths) | |
{ | |
return new Uri(paths.Aggregate(uri.AbsoluteUri, (current, path) => | |
$"{current.TrimEnd('/')}/{path.TrimStart('/')}")); | |
} | |
public static Uri AppendQuery(this Uri uri, params string[] query) | |
{ |