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
{name: 'AED', value: 'United Arab Emirates Dirham'}, | |
{name: 'AFN', value: 'Afghan Afghani'}, | |
{name: 'ALL', value: 'Albanian Lek'}, | |
{name: 'AMD', value: 'Armenian Dram'}, | |
{name: 'ANG', value: 'Netherlands Antillean Guilder'}, | |
{name: 'AOA', value: 'Angolan Kwanza'}, | |
{name: 'ARS', value: 'Argentine Peso'}, | |
{name: 'AUD', value: 'Australian Dollar'}, | |
{name: 'AWG', value: 'Aruban Florin'}, | |
{name: 'AZN', value: 'Azerbaijani Manat'}, |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Car Info Form</title> | |
<style> | |
.block { | |
display: flex; | |
align-items: center; |
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
# Docker overlay2 cleaar | |
docker system prune -a |
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 <stdio.h> | |
#include <string.h> | |
int main() { | |
char input[] = "[ 5 6] [ 1 2 ] [0 3] [ 7 8 ]"; | |
char *token = strtok(input, " []"); | |
int count = 0; | |
while (token != NULL) { | |
if (count % 2 == 0) { |
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
В языке C вы можете использовать функции стандартной библиотеки для разбиения строки на массив. В данном случае, вы можете использовать функцию strtok для разделения строки на подстроки с использованием пробелов в качестве разделителей. Затем вы можете преобразовать каждую подстроку в целое число с помощью функции atoi и добавить его в массив. | |
Вот пример кода, который делает это: | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#define MAX_SUBSTRINGS 10 |
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 collections | |
pets = { | |
1:{ | |
"Мухтар": { | |
"Вид питомца": "Собака", | |
"Возраст питомца": 9, | |
"Имя владельца": "Павел" | |
}, | |
}, |
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 { Component, OnInit } from '@angular/core'; | |
import {ModalDismissReasons, NgbModal} from "@ng-bootstrap/ng-bootstrap"; | |
import {InternetService} from "../../../../../service/common/internet/internet.service"; | |
import {environment} from "../../../../../../../environments/environment"; | |
import {ServerPanelService} from "../../server-panel.service"; | |
import {IServer} from "../../server-panel.service"; | |
interface IAlert { | |
type: string; |
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
python main.py --target-dir="С:\Users\ПК\Downloads\site\public_html" | |
python main.py --target-dir="С:\\Users\\ПК\\Downloads\\site\\public_html" |
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
// 1 вариант разбить на 3 группы. Далее во 2 группе | |
// удалить ненужные символы методом replaceAll пример: 'world"'.replaceAll('"', "") | |
// ^(.*?) (added.*?\".*?\").*?(IP.*)$ | |
// | |
// 2 вариант разбить на 4 группы. Группы 2 и 3 конкатенировать. | |
// ^(.*?) (added.*?)\\?\"(.*?)\\?\".*?(IP.*)$ | |
// | |
// 3 вариант перед обработкой удалить не нужные символы методом replaceAll и применить регулярку | |
// ^(.*?) (added.*?)\(.*?(IP.*)$ |
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 <stdio.h> | |
#define MESSAGE_QUANTITY 10; | |
struct LEDMessage{ | |
unsigned char led_code; | |
unsigned char value; | |
unsigned int hash_sum; | |
}; |
NewerOlder