Skip to content

Instantly share code, notes, and snippets.

View frnkq's full-sized avatar
🎯
Focusing

Franco Canevali frnkq

🎯
Focusing
View GitHub Profile
set wsc = CreateObject("WScript.Shell")
Do
WScript.Sleep (60*1000)
wsc.SendKeys ("{SCROLLLOCK 2}")
Loop
const event = {
value: null,
subscriptions: [],
subscribe: function (callback) {
this.subscriptions.push(callback);
},
next: function (value) {
this.value = value;
this.subscriptions.forEach((subscription) => {
subscription(value);