javahome() {
unset JAVA_HOME
export JAVA_HOME=$(/usr/libexec/java_home -v "$1");
java -version
}
alias j1.8='javahome 1.8'
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
mutation UnArchiveRepository { | |
unarchiveRepository(input:{clientMutationId:"true",repositoryId:"[insert ID]"}) { | |
repository { | |
isArchived, | |
description | |
} | |
} | |
} |
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
{ | |
"query": "mutation ArchiveRepository ($mutationId: String!, $repoID: String!) {archiveRepository(input:{clientMutationId:$mutationId, repositoryId:$repoID}) {repository { isArchived, description } } }", | |
"variables": { | |
"mutationId": "true", | |
"repoID": "[repo 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
{ | |
"query": "query ($org: String!, $repo: String!) {repository(owner: $org, name: $repo) { id isArchived } }", | |
"variables": { | |
"org": "[github user or org]", | |
"repo": "[repository]" | |
} | |
} |
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
query FindRepoID($name: String!, $owner: String!) { | |
repository(owner: $owner, name: $name) { | |
id, | |
isArchived | |
} | |
} |
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
// please see also the accompanying blog post | |
// https://www.lotharschulz.info/2021/10/14/how-to-create-a-react-frontend-to-debounce-text-input-persistence-in-firebase-firestore/ | |
const saveFieldValueDebounced = AwesomeDebouncePromise( | |
saveFieldValue, | |
debounceDelay, | |
{ key: fieldId => fieldId }, | |
); | |
const saveFieldValue = (fieldId: number, fieldValue: string) => saveToDB(fieldValue); |
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
// please see also the accompanying blog post | |
// https://www.lotharschulz.info/2021/10/14/how-to-create-a-react-frontend-to-debounce-text-input-persistence-in-firebase-firestore/ | |
function Elements() { | |
const defaultDelayInMillis = 5000; // default delay 5 seconds | |
const [dbValue, setDBValue] = useState(""); | |
const [delayFieldDisabled, setdelayFieldDisabled] = useState(true) | |
const [debounceDelay, setDebounceDelay] = useState(defaultDelayInMillis) | |
const collectionLabel = "data"; |
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
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach { | |
kotlinOptions { languageVersion = "1.8" } | |
} |
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
..< |
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
val A_UNTIL_D = ('a' until 'd') | |
// a,b,c | |
@OptIn(ExperimentalStdlibApi::class) | |
val A_NEW_UNTIL_D = ('a' ..< 'd') | |
// a,b,c |