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
const URL = 'https://google.com'; | |
const main = () => fetch(URL).then(r => r.status === 200 ? console.log('IS UP', r) : console.log('down', setTimeout(main, 3000)) ).catch(() => setTimeout(main, 3000)); |
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
import pyttsx3 | |
import datetime | |
import speech_recogncition as sr | |
import wikipedia | |
import webbrowser | |
engine = pyttsx3.init() | |
# voices = engine.getProperty('voices') | |
# engine.setProperty('voice', voices[13].id) |
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
window.addEventListener("wheel", event => { | |
const delta = Math.sign(event.deltaY); | |
//console.info(delta); | |
if (delta > 0) { | |
nextSection(); | |
} | |
else if (delta < 0) { | |
previousSection(); | |
} | |
}); |