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
const functionOne = () => { | |
const data = Array.from(Array(2000).keys()); | |
const a = new Map(); | |
data.forEach(e => { | |
a.set(e, {value: e + 1}); | |
}); | |
return [...a.values()]; | |
}; |
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
const dict = | |
"óåìøóëËÔÒÉÆÉËÁÃÉÑ ÀÖÎÙÈ ÇÕÂÅÒÎÉÊ ÄÁÓÔ ÍÏÝÎÙÊ ÔÏÌÞÏË ÐÏÄߣÍÕ ÓÅÌØÓËÏÇÏ ÈÏÚÑÊÓÔ×Á."; | |
const text = `Виды выплат компенсационного характера | |
Выплаты на детей | |
Компенсации по уходу за нетрудоспособными | |
Платежи участникам техногенных аварий | |
Выплаты обучающимся | |
Компенсации военнослужащим и членам их семей | |
Платежи переселенным вынужденно |
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
<?php | |
set_time_limit(0); | |
// Function to remove folders and files | |
function rrmdir($dir) { | |
if (is_dir($dir)) { | |
$files = scandir($dir); | |
foreach ($files as $file) | |
if ($file != "." && $file != "..") rrmdir("$dir/$file"); | |
rmdir($dir); |
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
typedef struct { | |
uint16_t step_pin; | |
uint16_t dir_pin; | |
uint16_t enable_pin; | |
bool is_stopped; | |
} Stepper; | |
typedef enum { | |
Forward, Backward | |
} Direction; |
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
import java.util.ArrayList; | |
import java.util.HashMap; | |
import java.util.List; | |
import java.util.Map; | |
import java.util.Random; | |
import java.util.regex.Matcher; | |
import java.util.regex.Pattern; | |
/** | |
RDP calculator (function evaluator) |
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
class ChemicalElement { | |
private: | |
float a; | |
int z; | |
bool _isMetal; | |
int period; | |
int group; | |
bool 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
<?php | |
abstract class BaseCollection | |
{ | |
/** | |
* rgDescriptions array | |
* @var array | |
*/ | |
protected $items = []; | |
/** |