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
#region QUEST 3A | |
Console.WriteLine("\n\n3.A QUEST:\n"); | |
table a_table = new(); | |
a_table.rows = new() | |
{ | |
new row(Xtype.X1, Xtype.X1), | |
new row(Xtype.X2, Xtype.X2), | |
new row(Xtype.X3, Xtype.X3), | |
new row(Xtype.X1X2, Xtype.X1), |
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
Після команди створення проекту, потрібно зайти на аккаунт клауда та підключити білінг до створеного проекту. | |
gcloud auth login; | |
gcloud projects create my-parcs; | |
gcloud projects list; | |
gcloud config set project my-parcs; |
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 Google.Cloud.Speech.V1; | |
using Telegram.Bot; | |
using static Google.Cloud.Speech.V1.RecognitionConfig.Types; | |
dotenv.net.DotEnv.Load(); | |
string TELEGRAM_BOT_TOKEN = Environment.GetEnvironmentVariable("TELEGRAM_BOT_TOKEN") ?? throw new NullReferenceException("TELEGRAM_BOT_TOKEN"); | |
string GOOGLE_APPLICATION_CREDENTIALS = Environment.GetEnvironmentVariable("GOOGLE_APPLICATION_CREDENTIALS") ?? throw new NullReferenceException("GOOGLE_APPLICATION_CREDENTIALS"); | |
string GOOGLE_APPLICATION_PROJECT_ID = Environment.GetEnvironmentVariable("GOOGLE_APPLICATION_PROJECT_ID") ?? throw new NullReferenceException("GOOGLE_APPLICATION_PROJECT_ID"); | |
string GetTestFromSpeech(string FilePath) | |
{ | |
RecognitionConfig config = new() |
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.Text.RegularExpressions; | |
int variable = 2; | |
const int BITNESS = 16; | |
List<bool> result = new(); | |
List<List<int>> hadamar = GetHadamard(BITNESS); | |
List<int> w = hadamar[variable - 1]; | |
Regex.Replace( |
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.Text; | |
var g_local = g("1+x3+x4", bitRate: 4); | |
List<bool> register0 = new() { true, true, true, true }; | |
printShiftRegister(g_local, @default: true); | |
printShiftRegister(g_local); | |
printTable(g_local, register0, 20); |
OlderNewer