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
Num (standard): 123.131000 | |
Num (no trailing zeros): 123.131 |
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
using System; | |
using System.Text; | |
using Nethereum.Hex.HexConvertors.Extensions; | |
using Nethereum.Signer; | |
using Nethereum.Util; | |
using Nethereum.Signer.Crypto; | |
class ECDSASecp256k1Example | |
{ | |
static void Main() |
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
using System.IO; | |
void EncryptFile(string inputFile, string outputFile) | |
{ | |
using (var fin = new FileStream(inputFile, FileMode.Open)) | |
using (var fout = new FileStream(outputFile, FileMode.Create)) | |
{ | |
byte[] buffer = new byte[4096]; | |
while (true) | |
{ |
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
char[,] matrix = new char[,] | |
{ | |
{ 'x', '-', '-', 'x', 'x'}, | |
{ 'x', '-', '-', 'x', 'x'}, | |
{ 'x', '-', '-', 'x', 'x'}, | |
}; | |
int x = 0; | |
int y = 0; |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
namespace Drones | |
{ | |
public class Airfield | |
{ | |
public List<Drone> Drones { get; set; } | |
public string Name { get; set; } |
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
using System; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.IO; | |
using System.Linq; | |
File.WriteAllText("weather.html", "<html><h1>Weather</h1></html>"); | |
var p = new Process(); | |
p.StartInfo = new ProcessStartInfo("weather.html") | |
{ |
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
ffmpeg -i .\input.avi -vf scale=1280x720 -crf 0 -r 4 -an -y out.mp4 | |
ffmpeg -i .\out.mp4 -vf palettegen=256 -y palette.png | |
ffmpeg -y -i .\out.mp4 -i palette.png -filter_complex paletteuse -y animation.gif | |
del out.mp4 | |
del palette.png |
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
using NUnit.Framework; | |
using OpenQA.Selenium; | |
using OpenQA.Selenium.Appium; | |
using OpenQA.Selenium.Appium.Android; | |
using OpenQA.Selenium.Remote; | |
using System; | |
namespace AppiumTests_ContactBook | |
{ | |
public class TestsContactBookAndroidApp |
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
let ethers = require('ethers'); | |
let rnd256Bits = ethers.utils.randomBytes(256 / 8); | |
let mnemonics = ethers.HDNode.entropyToMnemonic(rnd256Bits); | |
let hdWallet = ethers.HDNode.fromMnemonic(mnemonics); | |
console.log("Wallet mnemonics:", mnemonics); | |
for (let index=0; index<5; index++) { | |
let key = hdWallet.derivePath(`m/44'/60'/0'/0/${index}'`); | |
console.log(`Private key #${index}: ${key.privateKey}`); |
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
using NUnit.Framework; | |
using RestSharp; | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Net; | |
using System.Text.Json; | |
public class APITestsContactBook | |
{ |