Skip to content

Instantly share code, notes, and snippets.

View vlna's full-sized avatar

Vladimír Návrat vlna

  • IBM
  • Bohumín / Prague, Czech Republic
View GitHub Profile
/* +++Date last modified: 05-Jul-1997 */
/* Updated comments, 05-Aug-2013 */
/*
SUNRISET.C - computes Sun rise/set times, start/end of twilight, and
the length of the day at any date and latitude
Written as DAYLEN.C, 1989-08-16
@vlna
vlna / barcode.ino
Last active November 14, 2016 15:06
Barcode generation demo
/* This is Barcode generation demo
Copyright (C) 2016 Vladimir Navrat
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
@vlna
vlna / command_roomba_define.h
Created March 14, 2017 21:17
IR codes for Roomba/Scooba (iRobot)
#define 129 COMMAND_ROOMBA_LEFT
#define 130 COMMAND_ROOMBA_FORWARD
#define 131 COMMAND_ROOMBA_RIGHT
#define 132 COMMAND_ROOMBA_SPOT
#define 133 COMMAND_ROOMBA_MAX
#define 134 COMMAND_ROOMBA_SMALL
#define 135 COMMAND_ROOMBA_MEDIUM
#define 136 COMMAND_ROOMBA_LARGE
#define 136 COMMAND_ROOMBA_CLEAN
#define 137 COMMAND_ROOMBA_STOP

ČESTNÉ PROHLÁŠENÍ O NULOVÝCH PŘÍJMECH ({{{Rok}}})

Já, níže podepsaný

  • Jméno a příjmení: {{{JmenoPrijmeni}}}
  • Datum narození: {{{DatumNarozeni}}} / RČ: {{{RodneCislo}}}
  • Adresa trvalého pobytu: {{{Adresa}}}
@vlna
vlna / Nook1st.css
Created July 25, 2017 15:27
Calibre konfigurace / čeština pro Nook 1st
@font-face { font-family: "DroidFont", serif, sans-serif; font-weight: normal; font-style: normal; src: url('res:///system/fonts/DroidSerif-Regular.ttf'); }
@font-face { font-family: "DroidFont", serif, sans-serif; font-weight: bold; font-style: normal; src: url('res:///system/fonts/DroidSerif-Bold.ttf'); }
@font-face { font-family: "DroidFont", serif, sans-serif; font-weight: normal; font-style: italic; src: url('res:///system/fonts/DroidSerif-Italic.ttf'); }
@font-face { font-family: "DroidFont", serif, sans-serif; font-weight: bold; font-style: italic; src: url('res:///system/fonts/DroidSerif-BoldItalic.ttf'); }
body { margin-right: 8pt; font-family: 'DroidFont', serif; }
@vlna
vlna / xeditor.sh
Created September 26, 2017 20:12
runs editor in worker, improved version
#! /bin/bash
#######################################################################
# xeditor
# Version: 1.2
# This script is used by worker to call a X editor
# Several editors are searched with vi in a xterm as fallback
# but the env variable WORKER_XEDITOR can force another editor
#
# written by Ralf Hoffmann 2005
# License: GPL V2 or later
@vlna
vlna / morse-encoder.ino
Created March 18, 2018 15:04
morse encoder for Arduino + multi-function shield
// morse encoder for Arduino + multi-function shield
// (c) Vladimír Návrat, all rights reserved.
//---------------------------------------------------------------------------
// ISC License
//
// Permission to use, copy, modify, and/or distribute this software for any
// purpose with or without fee is hereby granted, provided that the above
// copyright notice and this permission notice appear in all copies.
//
// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
/*
* IRremote: IRrecvDump - dump details of IR codes with IRrecv
* An IR detector/demodulator must be connected to the input RECV_PIN.
* Version 0.1 July, 2009
* Copyright 2009 Ken Shirriff
* http://arcfn.com
* JVC and Panasonic protocol added by Kristian Lauszus (Thanks to zenwheel and other people at the original blog post)
* LG added by Darryl Smith (based on the JVC protocol)
*/
@vlna
vlna / esp-wifi-mqtt-temperature.ino
Last active May 19, 2018 20:38
ESP8266, configuration portal, wifi, mqtt, temperature
#include <ESP8266WiFi.h> //https://github.com/esp8266/Arduino
//needed for library
#include <DNSServer.h>
#include <ESP8266WebServer.h>
#include <WiFiManager.h> //https://github.com/tzapu/WiFiManager
#include <WiFiClient.h>
#include <OneWire.h>
/*
* Just demo to test Telegram delivery
*
*/
#include <ESP8266WiFi.h>
#include <WiFiClientSecure.h>
#include <TelegramBot.h>
const char* ssid = "";