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
struct WiFiCredential{ | |
const char *ssid; | |
const char *pass; | |
}; | |
bool wifiConnect() | |
{ | |
if(isWifiConnected()) | |
return true; | |
WiFi.mode(WIFI_STA); |
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
extern "C" { | |
#include "user_interface.h" | |
} | |
void turnWifiOn() | |
{ | |
if(MAIN_DEBUG) DEBUG_OUTPUT.println(E("WiFi Radio: Turning ON")); | |
wifi_fpm_do_wakeup(); | |
wifi_fpm_close(); | |
wifi_set_opmode(STATION_MODE); | |
wifi_station_connect(); |
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
function toggleTabs() | |
{ if(jQuery(".seminarInfoCestaHrdiny").toggleClass("selectedTab").hasClass("selectedTab")) | |
jQuery(".seminarInfoCestaHrdiny").closest(".row").show(); | |
else | |
jQuery(".seminarInfoCestaHrdiny").closest(".row").hide(); | |
if(jQuery(".seminarInfoProfil").toggleClass("selectedTab").hasClass("selectedTab")) | |
jQuery(".seminarInfoProfil").closest(".row").show(); | |
else | |
jQuery(".seminarInfoProfil").closest(".row").hide(); |
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
$(function() {jQuery( "#sortable" ).sortable({ | |
update: function( event, ui ) {onOrderChange(event, ui)} | |
}); | |
function onOrderChange(event, ui) | |
{ | |
jQuery.ajax({ url: 'https://77prani.cz/posun_prani.php?pozice='+ui.item.index()+'&id='+ui.item.attr("id"), | |
data: {action: 'test'}, | |
type: 'post', | |
success: function(output) { | |
//Succesfully saved |
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
function sortUlozenkaSelect() | |
{ | |
function localeCompareSupportsLocales() { | |
try { | |
'foo'.localeCompare('bar', 'i'); | |
} catch (e) { | |
return e.name === 'RangeError'; | |
} | |
return false; | |
} |
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
$("#newOrderFormElement").keydown(function (e) { | |
//console.log(e.keyCode); | |
if (e.metaKey && e.keyCode === 68) //Command + Alt + d | |
{ | |
fillFormByDebugValues(); | |
event.preventDefault(); | |
} | |
}); | |
function fillFormByDebugValues() |
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
#include <ESP8266WiFi.h> | |
#include <LiquidCrystal_I2C.h> | |
#include <Wire.h> //I2C communication | |
#define LCD_DISPLAY_ADDRESS 0x27 | |
#define AP_SSID "wifiAP" | |
#define AP_PASSWORD "password" | |
LiquidCrystal_I2C lcd(LCD_DISPLAY_ADDRESS, 16, 2); // set the lcd address to 0x27 for a 16 chars and 2 line display | |
byte newCharWifiSending[][8] = |
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
// ==UserScript== | |
// @name schortuct to debug in GAS | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description ctr+alt+d - run debug in google apps script | |
// @author You | |
// @match https://script.google.com/* | |
// @grant none | |
// ==/UserScript== |
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
// ==UserScript== | |
// @name Highlite long exectuion times in GAS | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Highlite long exectuion times in execution transcript in google apps script | |
// @author You | |
// @match https://script.google.com/* | |
// @grant none | |
// ==/UserScript== |
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
// ==UserScript== | |
// @name Selection highliter | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description It highlights all words based on selection on whole html page. Im using it for online google apps script editor. its similar function to sublimetext. | |
// @author [email protected] | |
// @match https://script.google.com/macros/* | |
// @grant none | |
// ==/UserScript== |