npx create-react-app app-name --template typescriptMore info adding-typescript
| Get-ChildItem .\ -include bin,obj -Recurse | foreach ($_) { remove-item $_.fullname -Force -Recurse } |
| <!-- block "home" --> | |
| <div class="home"> | |
| <!-- nested block "title" --> | |
| <div class="title"></div> | |
| <!-- nested block "subtitle" --> | |
| <div class="subtitle"></div> | |
| </div> |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Document</title> | |
| </head> | |
| <body> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> |
| using Microsoft.Extensions.Configuration; | |
| using Microsoft.Extensions.DependencyInjection; | |
| private void InitFoo(IConfiguration configuration) | |
| { | |
| var config = configuration.GetSection(FooOptions.Position) | |
| .Get<FooOptions>(); | |
| } |
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| public class Program | |
| { | |
| public static void Main() | |
| { | |
| Console.WriteLine("Generate string list for SQL IN Operator operation"); | |
| int listSize = 3; |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Document</title> | |
| </head> | |
| <body> | |
| <script> | |
| function isWordCorrect(word, correctWord ) { | |
| word = word.toLowerCase(); |
npx create-react-app app-name --template typescriptMore info adding-typescript
| try { ... } | |
| catch { | |
| Write-Host "An error occurred:" | |
| Write-Host $_ | |
| } |
| public string HttpGet<T>(string url, string publicAccessToken) | |
| { | |
| using (WebClient wc = new WebClient()) | |
| { | |
| wc.Headers.Add("Authorization", $"Basic {publicAccessToken}"); | |
| string reply = await wc.DownloadStringTaskAsync(url); | |
| var result = JsonConvert.DeserializeObject<T>(reply); | |
| return result; |