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
// Купи батон хлеба, если будут яйца - возьми десяток. | |
if (eggs) { | |
buyEggs(); | |
} | |
if (bread) { | |
buyBread(); | |
} | |
/* |
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
esphome: | |
name: esp_living_couch1 | |
platform: ESP8266 | |
board: d1_mini | |
wifi: | |
ssid: "grove" | |
password: "0My%Secur" | |
# Enable fallback hotspot (captive portal) in case wifi connection fails | |
ap: |
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
# | |
# CO2 Sensor | |
# После прошивки надо выставить в открытое окно и выполнить эту команду ручного сброса нуля, которое запомнится в датчике | |
# HA > Developer tools > Call Service > Name: service.<ESP_NAME>_mhz19_calibrate_zero | |
api: | |
services: | |
- service: mhz19_calibrate_zero | |
then: | |
- mhz19.calibrate_zero: sensor_mhz19 |
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
title: Home | |
views: | |
- title: Домофон | |
path: '' | |
icon: 'hass:phone' | |
badges: [] | |
cards: | |
- type: entities | |
entities: | |
- entity: binary_sensor.domofon_incoming_call |
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 React, { ReactNode } from 'react' | |
import styled from 'styled-components' | |
/** Nice flexbox wrapper */ | |
type CrossAlign = 'start' | 'end' | 'center' | 'stretch' | 'baseline' | |
export interface FlowProps { | |
children: ReactNode | |
// direction shortcut | |
row?: boolean |
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
type BankCode = | |
| 'Alfa' | |
| 'Baltiyskiy' | |
| 'Binbank' | |
| 'Europe' | |
| 'Gazprombank' | |
| 'HomeCredit' | |
| 'Mdm' | |
| 'Mkb' | |
| 'Moscow' |
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 React, { ReactNode } from 'react'; | |
import styled from 'styled-components'; | |
/** | |
* Nice flexbox wrapper | |
* @example <Flow col size="1rem">...</Flow> // 1rem = 1unit = 8px | |
*/ | |
interface Props { | |
children: ReactNode, |
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
# | |
# RubyReactAdmin. ActiveAdmin like controller API, возвращающее TR-D json | |
# для отображения React-интерфейсе без js-кода для дефолтных сценариев | |
# с несложными кастомизациями фронта по необходимости лучшими фронтовыми технологиями | |
# | |
# todo: render_json, render_json_error, render_json_exception | |
# todo: | |
module Admin |
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
/* | |
https://sites.google.com/site/foliantapp/project-updates/hyphenation | |
*/ | |
function hypenate (word) { | |
return _substitute(Array.from(word).reduce((res, c) => { | |
return _substitute(res) + c; | |
}, '')); | |
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder