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
| from enum import Enum | |
| class Calendar(Enum): | |
| JANUARY = 0 | |
| FEBRUARY = 1 | |
| MARCH = 2 | |
| APRIL = 3 | |
| MAY = 4 | |
| JUNE = 5 |
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" | |
| "os" | |
| "runtime" | |
| "time" | |
| ) | |
| func writeToFile(file *os.File, text 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
| var gasSensor = require('gas-sensor').connect({ | |
| dataPin: A0, // разъём SVG | |
| heatPin: P10, // разъём GHE | |
| model: 'MQ135', | |
| }); | |
| var quadDisplay = require('quaddisplay2').connect(P9); | |
| function float2int(value) { | |
| return value | 0; |