]*>([\s\S]*?)<\/element-name>
This file contains hidden or 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
window.onload = () => { | |
const blackList = [ | |
"Math", | |
"Science", | |
]; | |
const observer = new MutationObserver((mutationsList) => { | |
for (const mutation of mutationsList) { | |
if (mutation.type === "childList" && mutation.addedNodes.length > 0) { | |
const matchingElements = Array.from( |
This file contains hidden or 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 <ESP8266HTTPClient.h> | |
#include <WiFiClientSecure.h> | |
#include <Arduino_JSON.h> | |
#include <LedControl.h> | |
#include <NTPClient.h> | |
#include <WiFiUdp.h> | |
int latitude = 48.83; | |
int longitude = 10.09; |
This file contains hidden or 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
"workbench.colorCustomizations": { | |
// Contrast Colors - The contrast colors are typically only set for high contrast themes. If set, they add an additional border around items across the UI to increase the contrast. | |
"contrastActiveBorder": "", | |
"contrastBorder": "", | |
// Base Colors | |
"focusBorder": "", | |
"foreground": "", | |
"widget.shadow": "", | |
"selection.background": "", | |
"descriptionForeground": "", |
This file contains hidden or 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
import parseDate from './parseDate.js'; | |
parseDate('1 minute'); // => 60000 | |
parseDate('1 hour'); // => 3600000 | |
parseDate('Not a date'); // => Error: Invalid format | |
/* | |
* Usage: count {unit} | |
* Units: | |
* s, second, seconds, sec |
This file contains hidden or 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
const addScripts = urls => { | |
let scriptsLoaded = 0; | |
return new Promise((resolve, reject) => { | |
urls.forEach((url) => { | |
const script = document.createElement('script'); | |
script.src = url; | |
document.head.appendChild(script); // or document.body | |
script.onload = () => { | |
scriptsLoaded++; | |
if (scriptsLoaded === urls.length) { |
This file contains hidden or 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
const before = new Date(); | |
fetch('https://httpbin.org/get').then(()=>{ | |
const after = new Date(); | |
console.log(`${after-before} Milliseconds`) | |
}).catch(()=>{ | |
const after = new Date(); | |
console.log(`Failed in ${after-before} Milliseconds`); | |
}); |
NewerOlder