Skip to content

Instantly share code, notes, and snippets.

View duch94's full-sized avatar
🏠
Working from home

Victor Titov duch94

🏠
Working from home
View GitHub Profile
from enum import Enum
class Calendar(Enum):
JANUARY = 0
FEBRUARY = 1
MARCH = 2
APRIL = 3
MAY = 4
JUNE = 5
@duch94
duch94 / aboba.go
Last active October 2, 2024 18:50
package main
import (
"fmt"
"os"
"runtime"
"time"
)
func writeToFile(file *os.File, text string) {
@duch94
duch94 / co2_monitor.js
Last active February 3, 2021 11:39
CO2 monitor, code for Iskra JS
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;