The popular open-source contract for web professionals by Stuff & Nonsense
- Originally published: 23rd December 2008
- Revised date: March 15th 2016
- Original post
#define BLYNK_PRINT Serial | |
#include <ESP8266WiFi.h> | |
#include <BlynkSimpleEsp8266.h> | |
#define BLYNK_AUTH_TOKEN "YourBlynkToken" | |
char auth[] = BLYNK_AUTH_TOKEN; | |
char ssid[] = "YourNetworkName"; | |
char pass[] = "YourPassword"; |
import queue | |
import threading | |
import time | |
def worker(threadId, q): | |
while True: | |
item = q.get() | |
if item is None: | |
q.task_done() | |
continue |
ngOnInit(): void { | |
this.router.events.pipe( | |
filter((event) => event instanceof NavigationEnd), | |
map(() => this.activatedRoute), | |
map((route) => { | |
while (route.firstChild) route = route.firstChild; | |
return route; | |
}), | |
filter((route) => route.outlet === 'primary'), | |
mergeMap((route) => route.data)) |
-- Prints to the screen (Can end with semicolon) | |
print("Hello World") | |
--[[ | |
Multiline comment | |
]] | |
-- Variable names can't start with a number, but can contain letters, numbers | |
-- and underscores |