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
I am going to build an native Android app using Kotlin and Jetpack Compose. I already have a new project created in Android Studio but would like your help for the rest. I don't have any screens, just an empty activity with a setContext() function inside of it, ready for Jetpack Compose to take over. My next prompt will explain what the app is for and what I want it to do. | |
This app should be a todo list app. It should have the following features: | |
- One screen with a list of all of your tasks. | |
- That screen should have an empty state saying "No Tasks" when there aren't any tasks stored in the app. | |
- The screen should have a FAB that allows you to add a new task to that list. |
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
I am going to build an native Android app using Kotlin and Jetpack Compose. I already have a new project created in Android Studio but would like your help for the rest. I don't have any screens, just an empty activity with a setContext() function inside of it, ready for Jetpack Compose to take over. My next prompt will explain what the app is for and what I want it to do. | |
This app should be a todo list app. It should have the following features: | |
- One screen with a list of all of your tasks. | |
- That screen should have an empty state saying "No Tasks" when there aren't any tasks stored in the app. | |
- The screen should have a FAB that allows you to add a new task to that list. |
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
#set( $testName = $NAME ) | |
#set( $uutLength = $testName.length() - 4 ) | |
#set( $uut = $testName.substring(0, $uutLength) ) | |
#if (${PACKAGE_NAME} && ${PACKAGE_NAME} != "")package ${PACKAGE_NAME} #end | |
import io.kotest.core.spec.style.DescribeSpec | |
class $testName : DescribeSpec({ | |
describe("The $uut") { | |
val uut: $uut = $uut() |
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
git checkout origin branch_that_is_already_on_origin | |
git upstream | |
# To use, add this to your ~/.gitconfig file | |
[alias] | |
upstream = !git branch --set-upstream-to=origin/`git symbolic-ref --short HEAD` |
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
git new my_branch | |
git del my_branch | |
# To use, add this to your ~/.gitconfig file | |
[alias] | |
del = branch -D | |
new = checkout -b |
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
git co my_branch | |
# To use, add this to your ~/.gitconfig file | |
[alias] | |
co = checkout |
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
git c "Added a new file" | |
git s | |
# To use, add this to your ~/.gitconfig file | |
[alias] | |
c = !git add -A && git commit -m | |
s = status |
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
# Download the scripts | |
cd ~ | |
curl -o .git-completion.bash https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash | |
# ... | |
# Create or edit your .bashrc file and add this somewhere inside of it: | |
source ~/.git-completion.bash |
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
zstyle ':completion:*:*:git:*' script ~/.zsh/git-completion.bash | |
fpath=(~/.zsh $fpath) |
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
android { | |
testOptions { | |
devices { | |
pixel2api29 (com.android.build.api.dsl.ManagedVirtualDevice) { | |
device = "Pixel 2" | |
apiLevel = 29 | |
systemImageSource = "google" | |
abi = "x86" | |
} | |
NewerOlder