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
| #include <cstdlib> | |
| #include <cstring> | |
| #include <cmath> | |
| #include <aaudio/AAudio.h> | |
| constexpr int32_t kSampleRate = 48000; | |
| constexpr double f1 = 440.0; // Hz | |
| constexpr double f2 = 554.37; // Hz | |
| constexpr double f3 = 659.26; // Hz |
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
| import 'package:flutter/material.dart'; | |
| const Color darkBlue = Color.fromARGB(255, 18, 32, 47); | |
| void main() { | |
| runApp(MyApp()); | |
| } | |
| class MyApp extends StatelessWidget { | |
| @override |
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
| /** | |
| * Обратная польская нотация | |
| * | |
| * @author Malik Zharykov | |
| */ | |
| function toRpn(statement) { | |
| let result = ''; | |
| let stack = []; | |
| // operator: priority |
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
| /** | |
| * Функция для проверки контрольной суммы ИИНа | |
| * Реализация алгоритма, согласно статье на википедии: | |
| * https://bit.ly/2i616tn | |
| * | |
| * @param String iin ИИН/БИН для проверки | |
| * @author Malik Zharykov <cmalikz.h@gmail.com> | |
| */ | |
| function checkIIN(iin, __offset /* Внутренний параметр. Игнорируйте его */ ) { | |
| const IIN_LENGTH = 12; // Длина ИИНа |