Compare commits

...

4 Commits

14 changed files with 53 additions and 2 deletions

View File

@ -1,3 +1,15 @@
# Arduino
## std
* [Пример, который возвращает дату и время компиляции скетча](compile_date_time.c)
* [Размер типов перенных в байтах](variables_sizes.ino)
* Пример работы с [EEPROM](eeprom.ino)
## Функции
* Функция, которая моргает встроенным светодиодом [`void init_blink(int times, int delay)`](init_blink.h)
## Память
| Тип | Чтение из программы | Запись из программы | Очистка при перезагрузке |

View File

@ -1,7 +1,11 @@
/**
* Пример, который возвращает дату и время компиляции скетча
*/
void loop() {
Serial.println("Built: " __DATE__ " | " __TIME__);
/**
* Example show:
* Output:
* Built: Aug 16 2023 | 21:42:32
*/
}

View File

@ -1,3 +1,6 @@
// TODO: Добавить описание
// TODO: Добавить в README.md
// Adapted from http://stackoverflow.com/questions/1765014/convert-string-from-date-into-a-time-t
// Formats __DATE__ to YYYY-MM-DD format
String ArduinoDateToDisplayDate(char const *time) {

View File

@ -1,6 +1,8 @@
/*
Author: Alexander Popov
License: Unlicense
Функция, которая моргает встроенным светодиодом
*/
void init_blink(int times, int delay) {

View File

@ -1,3 +1,6 @@
// TODO: Доработать пример
// TODO: Добавить в README.md
// будем искать слово hello
char target[] = "hello";

View File

@ -1,3 +1,7 @@
/**
* Скетч, который выводит в Serial размер типов переменных в байтах
*/
void setup() {
Serial.begin(9600);

View File

@ -0,0 +1,5 @@
# Bash & Unix Shell
* [UnixSocket сервер на `nc`](unix-socket-server.sh)
* [Проверка наличия команды](command_exists.s)
* [Проверка наличия файла/директории](file_folder_exists.sh)

View File

@ -5,6 +5,8 @@ if ! [ -x "$(command -v git)" ]; then
exit 1
fi
# OR
if ! command -v crystal &> /dev/null
then
echo "<the_command> could not be found"

View File

@ -9,6 +9,8 @@ else
echo "$FILE does not exist."
fi
# OR
[ -f /etc/resolv.conf ] && echo "/etc/resolv.conf exists."
# Check directory exists
@ -18,4 +20,6 @@ if [ -d "$DIR" ]; then
echo "$DIR is a directory."
fi
# OR
[ -d /etc/docker ] && echo "/etc/docker is a directory."

View File

@ -1,5 +1,8 @@
#!/bin/bash
# TODO: Добавить описание
# TODO: Добавить в README.md
# https://linuxconcept.com/making-a-simple-irc-chat-bot-logger-using-bash-script/
nick="blb$$"

View File

@ -1,5 +1,7 @@
#!/bin/bash
# TODO: Добавить описание и пример работы
# TCP
# coproc nc -l localhost 3000

View File

@ -0,0 +1,5 @@
# GameMaker Studio
* [Переключатель Fullscreen](fullscreen_toggle.gml)
* [RGB фон комнаты](room_background.gml)
* [Пример рисования текста](draw_text.gml)

View File

@ -1,3 +1,5 @@
/// @description RGB room background
var background = layer_background_get_id(layer_get_id("Background"));
var my_color = make_colour_rgb(71, 45, 60);
layer_background_blend(background, my_color);

View File

@ -1,3 +1,3 @@
# nginx
- [`redirect`](redirect)
* Пример редиректа ([`redirect`](redirect))