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
import SwiftUI | |
struct SwipableCardsView: View { | |
var numbers = (1...5) | |
var body: some View { | |
GeometryReader { geo in | |
TabView { | |
ForEach(numbers, id: \.self) { i in | |
VStack { |
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
import typer | |
def main( | |
city: str = typer.Option(..., prompt=True), | |
country: str = typer.Option(..., prompt=True) | |
): | |
# write some code | |
print(city, country) | |
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
noremap <Up> <Nop> | |
noremap <Down> <Nop> | |
noremap <Left> <Nop> | |
noremap <Right> <Nop> | |
set number | |
set relativenumber | |
syntax enable | |
set incsearch | |
set autoindent | |
set ruler |
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
import android.content.Context | |
import android.net.Uri | |
import android.os.Bundle | |
import androidx.fragment.app.Fragment | |
import android.view.LayoutInflater | |
import android.view.View | |
import android.view.ViewGroup | |
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 | |
CHANGED_FILES=($(git diff master --name-only "*.kt")) | |
for file_path in "${CHANGED_FILES[@]}" | |
do | |
ktlint -F ${file_path} | |
done |
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 | |
CHANGED_FILES=($(git diff master --name-only "*.kt")) | |
for file_path in "${CHANGED_FILES[@]}" | |
do | |
ktlint ${file_path} | |
done |
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
import android.os.Handler | |
import android.os.Looper | |
import java.util.concurrent.Executor | |
class MainThreadExecutor : Executor { | |
private val mainThreadHandler = Handler(Looper.getMainLooper()) | |
override fun execute(command: Runnable) { | |
mainThreadHandler.post(command) | |
} |
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 | |
FILE_NAME="release_notes.txt" | |
COMMIT_HASH_FOR_TAG_BEFORE_LAST=$(git rev-list --tags --skip=1 --max-count=1) | |
TAG_BEFORE_LAST=$(git describe --abbrev=0 --tags $COMMIT_HASH_FOR_TAG_BEFORE_LAST) | |
LAST_TAG=$(git describe --abbrev=0 --tags) | |
LOGS=$(git log $TAG_BEFORE_LAST..$LAST_TAG --pretty="* format:%s" --merges) | |
$(rm -rf $FILE_NAME) | |
echo -e "$LAST_TAG\n$LOGS" >> $FILE_NAME |