sudo pacman -S zig
Create pipe
mkfifo pewpipe
Forward mqtt events into pewpipe:
mosquitto_sub -h 192.168.88.223 -t "/irblaster/johndoe/output" -v | awk '{print $2; fflush();}' | tee -a pewpipe
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
#!/bin/bash | |
LG_PO="0x20df10ef" | |
LG_OK="0x20df22dd" | |
LG_UP="0x20df02fd" | |
LG_LE="0x20dfe01f" | |
LG_DO="0x20df827d" | |
LG_RI="0x20df609f" | |
LG_BA="0x20df14eb" | |
LG_HO="0x20df3ec1" |
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 "osapi.h" | |
#include "user_interface.h" | |
#include "ir_remote.h" | |
static os_timer_t send_impulse_timer; | |
static os_timer_t read_impulse_timer; | |
static os_timer_t enable_interrupt_timer; | |
uint32 ICACHE_FLASH_ATTR user_rf_cal_sector_set(void); |
Раса: Тифлинг
Рассовая способность: темное зрение
Языки: Общий, Инфернальный, Драконий
Размер: Средний (180см)
Скорость: 30ф
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
package main | |
import ( | |
"fmt" | |
"sync" | |
) | |
type Fetcher interface { | |
// Fetch returns the body of URL and | |
// a slice of URLs found on that page. |
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
(defun put_frm (frame father slots_info children) | |
(setf (get frame `frm_name) frame) | |
(setf (get frame `father) father) | |
(setf (get frame `info) slots_info) | |
(setf (get frame `child_list) children) | |
(setf (get father `child_list) | |
(put_to_list frame (get father `child_list))) ;связь с отцом | |
(cond ((not (null children)) (put_frm_child frame children)))) | |
;Функция включения в список объекта, если он там отсутствует |
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
;; Функция f (s n) которая из многоуровневого списка чисел s создают новый список | |
;; исключив из него все элементы которые превышают заданное число n | |
;; итоговая реализация | |
(defun remove-gtn (s n) | |
(filter s (lambda (el) (not (> el n))) nil)) | |
(defun add-head-if (head l p) | |
(if (funcall p head) (cons head l) l)) |
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
;; Напишите функцию (count р х), которая подсчитывает, сколько атомов в списке х удовлетворяет предикату р | |
;; (р -функция или функциональное имя). | |
;; Список х не предполагается одноуровневым. | |
;; кол-во эл-ов | |
(defun len (l counter) | |
(if (null l) | |
counter | |
(len (cdr l) (+ counter 1)))) |
NewerOlder