Skip to content

Instantly share code, notes, and snippets.

View DreamerDeLy's full-sized avatar
🔵
///

Dreamer DreamerDeLy

🔵
///
View GitHub Profile
@DreamerDeLy
DreamerDeLy / ESP8266_GetChipId.ps1
Created August 6, 2022 11:24
Get ChipID of ESP8266 in decimal form by esptool.py
# TO RUN THIS SHIT U NEED TO:
# Set-ExecutionPolicy -ExecutionPolicy RemoteSigned
Write-Host "-----------------"
py -m esptool chip_id > $text
Write-Host $text
$pattern = [Regex]::new("0x[0-9a-f]{8}")
$matches = $pattern.Matches($text)
@DreamerDeLy
DreamerDeLy / Area_Task.cs
Last active March 23, 2022 13:31
Task: find area of rooms with dirfferent shape in collection.
using System;
using System.Collections.Generic;
using System.Linq;
namespace test_prj
{
interface IRoom
{
public double GetRoomArea();
public string ToString();
@DreamerDeLy
DreamerDeLy / Journal_Task.cs
Last active March 16, 2022 13:38
Journal task
using System;
using System.Collections.Generic;
using System.Linq;
namespace test_cs
{
class Mark
{
public Mark(int M, string Comment)
{
@DreamerDeLy
DreamerDeLy / StringToDateTime.ino
Created February 18, 2022 13:45
Parse ISO8601 like datetime string [Arduino]
// Data string
String time_string = "2021-12-12 18:55:54";
// Parsing
int year = time_string.substring(0, 4).toInt();
int month = time_string.substring(5, 7).toInt();
int day = time_string.substring(8, 10).toInt();
int hour = time_string.substring(11, 13).toInt();
int minute = time_string.substring(14, 16).toInt();
int second = time_string.substring(17, 19).toInt();
@DreamerDeLy
DreamerDeLy / _task_17.cs
Last active April 25, 2020 18:43
Task 17 [C#]
using System;
using System.Text;
namespace Task17
{
class Program
{
static string alph = "АБВГҐДЕЄЖЗИІЇЙКЛМНОПРСТУФХЦЧШЩЬЮЯ";
static void Main(string[] args)
@DreamerDeLy
DreamerDeLy / _task_16.cs
Created April 19, 2020 15:14
Task 16 [C#]
using System;
namespace Task16
{
class Program
{
static string alph = "АБВГҐДЕЄЖЗИІЇЙКЛМНОПРСТУФХЦЧШЩЬЮЯ";
static void Main(string[] args)
{
@DreamerDeLy
DreamerDeLy / _task_15.cs
Last active April 16, 2020 13:10
Task 15 [C#]
using System;
namespace Task15
{
class Program
{
static string alph = "АБВГҐДЕЄЖЗИІЇЙКЛМНОПРСТУФХЦЧШЩЬЮЯ";
static void Main(string[] args)
{
@DreamerDeLy
DreamerDeLy / _task_14.cs
Created April 13, 2020 15:45
Task 14 [C#]
using System;
using System.Collections.Generic;
namespace Task14
{
class Program
{
static void Main(string[] args)
{
DateTime date_now = DateTime.Now;
@DreamerDeLy
DreamerDeLy / _task_13.cs
Last active April 12, 2020 09:04
Task 13 [C#]
using System;
namespace Task13
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Введiть строку");
string str = Console.ReadLine();
@DreamerDeLy
DreamerDeLy / _task_12.cs
Last active April 11, 2020 13:16
Task 12 [C#]
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace Task12
{
class Program
{
static void Main(string[] args)