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
#!/bin/bash | |
while [ true ] | |
do | |
destfile=$(twf) | |
i3-msg "focus parent; focus right; exec \"i3-sensible-terminal -e hx $destfile\"" | |
done |
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 { useState } from "react"; | |
export default function useError( | |
initialIsError: boolean, | |
initialErrorMessage: string = "" | |
) { | |
const [isError, setIsError] = useState<boolean>(initialIsError); | |
const [errorMessage, setErrorMessage] = useState<string>(initialErrorMessage); | |
const setError = (isError: boolean, errorMessage: string = "") => { |
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 os | |
import sys | |
# Import Google Cloud Library modules | |
from google.cloud import storage, bigquery, language, vision, translate_v2 | |
if ('GOOGLE_APPLICATION_CREDENTIALS' in os.environ): | |
if (not os.path.exists(os.environ['GOOGLE_APPLICATION_CREDENTIALS'])): | |
print ("The GOOGLE_APPLICATION_CREDENTIALS file does not exist.\n") | |
exit() |