This file contains hidden or 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/local/bin/bash | |
| chars="⣷ ⣯ ⣟ ⡿ ⢿ ⣻ ⣽ ⣾" | |
| while true | |
| do | |
| for c in $chars | |
| do | |
| sleep 0.2 | |
| echo -en "\r[$c] loading " |
This file contains hidden or 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
| fun String.printUnicodeEscapeSequences() { | |
| println(this) | |
| println( | |
| this | |
| .chars() | |
| .joinToString("") { "\\u${it.toString(16).uppercase()}" } | |
| ) | |
| println() | |
| } |
This file contains hidden or 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
| @Composable | |
| fun AnimationText(text: String) { | |
| var s by remember { mutableStateOf("") } | |
| LaunchedEffect(Unit) { | |
| text.indices.forEach { index -> | |
| delay(10) | |
| s = text.substring(0..index) | |
| } |
This file contains hidden or 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/sh | |
| while read -r question | |
| do | |
| answer=$( | |
| curl \ | |
| -sH POST "https://api.openai.com/v1/chat/completions" \ | |
| -H "Content-Type: application/json;charset=utf-8" \ | |
| -H "Authorization: Bearer $OPENAI_API_KEY" \ | |
| -d "{ |
This file contains hidden or 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 "System Events" | |
| tell process "Notes" -- english app name | |
| activate | |
| set frontmost to true | |
| end tell | |
| -- select all | |
| keystroke "a" using command down |
This file contains hidden or 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 | |
| screencapture -i -c -o | |
| tmp_file=$(mktemp -t qr_code.XXXXXXXXXX).png | |
| osascript <<EOF | |
| set png_data to the clipboard as «class PNGf» | |
| set the_file to open for access POSIX path of (POSIX file "$tmp_file") with write permission | |
| write png_data to the_file |
This file contains hidden or 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
| .idea | |
| **/node_modules/* | |
| **/.firebaserc |
This file contains hidden or 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
| # .gitignore created from Groovy contributors in https://github.com/apache/groovy/blob/master/.gitignore | |
| user.gradle | |
| .gradle/ | |
| target/ | |
| build/ | |
| out/ | |
| *.DS_Store | |
| *.class |
This file contains hidden or 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
| # Covers files to be ignored for android development using Android Studio. | |
| # Built application files | |
| *.apk | |
| *.ap_ | |
| *.aab | |
| # Files for the ART/Dalvik VM | |
| *.dex |
This file contains hidden or 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
| # Compiled class file | |
| *.class | |
| # Log file | |
| *.log | |
| # BlueJ files | |
| *.ctxt | |
| # Mobile Tools for Java (J2ME) |