Skip to content

Instantly share code, notes, and snippets.

@MilanPala
MilanPala / config.yml
Created September 4, 2024 22:03
Lilygo SIM800L esphome
esphome:
name: esp-gsm
friendly_name: esp-gsm
esp32:
board: esp32dev
framework:
type: arduino
uart:
@MilanPala
MilanPala / tuzka.php
Created July 8, 2024 08:56
Stažení všech souborů pro Albi tužku
<?php
$page = file_get_contents('https://www.kouzelnecteni.cz/stahnout-audio-soubor/');
preg_match_all('/href="([^.]+\.bnl)"/', $page, $matches);
$i = 0;
$dir = '/mnt/c/Users/milan/Downloads/tuzka/';
foreach ($matches[1] as $match) {
echo ' - Stahuji: ' . (++$i) . '/' . count($matches[1]) . PHP_EOL;
/**
* Live Form Validation for Nette 2.0
*
* @author Radek Ježdík, MartyIX, David Grudl
*/
var LiveForm = {
options: {
controlErrorClass: 'form-control-error', // CSS class for an invalid control
errorMessageClass: 'form-error-message', // CSS class for an error message