Please convert javascript array to javascript object where each item will correspont to object property
and that property has same value as an item. Array to convert:
const KEYWORDS = [
"abstract",
"and",
"as",
"assert",
"base",
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
друк("Приклади програм на Мавці") |
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.Collections.Generic; | |
using System.IO; | |
using System.Net; | |
using System.Net.Http; | |
using System.Text; | |
using System.Threading; | |
using System.Threading.Tasks; | |
internal class FromFolderDelegatingHandler : DelegatingHandler | |
{ |
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
open Octokit | |
open LibGit2Sharp | |
open System.IO | |
open System.Linq | |
let github_token = "changeme" | |
let rec queryRepos (github:GitHubClient) page items = | |
task { | |
let searchRequest = SearchRepositoriesRequest(Topic = "cncf", Page = page, SortField = RepoSearchSort.Stars) |
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
#line 1 "test.txt" | |
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
#r "nuget: fparsec" | |
open FParsec | |
let test p str = | |
match run p str with | |
| Success(result, _, _) -> | |
printfn "Success: %A" result | |
| Failure(errorMsg, _, _) -> printfn "Failure: %s" errorMsg | |
let ws = spaces |
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
#r "nuget: ILGPU" | |
open ILGPU | |
open ILGPU.Runtime | |
let ShiftBy42 (index: Index1D) (buffer: ArrayView1D<int, Stride1D.Dense>) (constant: int) = | |
buffer.[index] <- int(index) + constant | |
// Create main context | |
use context = Context.CreateDefault() |
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.Diagnostics; | |
using System.Text; | |
var программа = $@"12> | |
{{ | |
42+ | |
| | |
56= | |
{{ | |
3? |
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
<Project Sdk="Microsoft.NET.Sdk"> | |
<PropertyGroup> | |
<OutputType>Exe</OutputType> | |
<TargetFramework>net8.0</TargetFramework> | |
<RootNamespace>_6___targets</RootNamespace> | |
<ImplicitUsings>enable</ImplicitUsings> | |
<Nullable>enable</Nullable> | |
</PropertyGroup> |
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
#r "nuget: FsCheck, 3.0.0-rc2" | |
#r "nuget: FSharp.Core.Ukrainian, 0.0.6" | |
open FsCheck | |
open FsCheck.FSharp | |
type ТипПалива = Дизель | Бензін | Електрика | Гибрид | REXГибрид | |
type НапрямокПродаж = Казахстан | Киргизстан | |
type Авто = { | |
Паливо:ТипПалива |