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 Build = () => { | |
const router = useRouter(); | |
const { session } = useContext(UserContext); | |
useEffect(() => { | |
if (!session) { | |
router.push("/signin"); | |
} | |
}, [session]); | |
return ( |
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
tell application "Shortcuts" to run shortcut "MorningAutomationDNDToggler" | |
tell application "Calendar" to activate | |
tell application "zoom.us" to launch | |
tell application "Spotify" to launch | |
if application "Spotify" is running then | |
tell application "Spotify" | |
play track "spotify:track:7eTxWRSvauWm5L3FblGk2h" | |
end tell | |
end if | |
tell application "Google Chrome" to activate (open location "https://hashnode.com/") |
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
#!/usr/bin/env osascript -l JavaScript | |
const chrome = Application("Google Chrome"); | |
const window = chrome.Window().make(); | |
function run(input) { | |
const url = input[0][0]; | |
let tab = chrome.Tab({url}); | |
if(url.startsWith("https")){ | |
return chrome.windows[0].tabs[0].url = url; | |
}{ |