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
<html><body><iframe sandbox="allow-forms allow-scripts allow-same-origin" | |
src="https://apps.screen.cloud/youtube/index.html?url=M7lc1UVf-VE"></iframe></body></html> |
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 onTimezoneOffsetChange(changeHandler){ | |
function getTimezoneOffset(){ | |
const d = new Date() | |
return d.getTimezoneOffset() | |
} | |
function getNextHourOffset(){ | |
const d = new Date() | |
return (1000*60*60) - (((d.getMinutes()*60) + d.getSeconds()) * 1000) + d.getMilliseconds() |
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
// example staggering rollout over 24 hours, timeToStart is date timestamp ms. | |
// if(staggeredRollout(timeToStart,timeToStart+(1000*60*60*24), 24, customerId)){ someNewThing() } | |
function staggeredRollout(startAt, endAt, stages, input, now){ | |
now = now || (new Date()).getTime(); | |
if( now < startAt ) return false; | |
if( now >= endAt ) return true; | |
var hash = strToHashCode(input); |
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 <WiFiClient.h> | |
#include <ESP8266WebServer.h> | |
#include <ESP8266mDNS.h> | |
#include "ets_sys.h" | |
#include "osapi.h" | |
#include "gpio16.h" | |
void ICACHE_FLASH_ATTRgpio16_output_conf(void){ WRITE_PERI_REG(PAD_XPD_DCDC_CONF, (READ_PERI_REG(PAD_XPD_DCDC_CONF) & 0xffffffbc) | (uint32)0x1); // mux configuration for XPD_DCDC to output rtc_gpio0 |
OlderNewer