dependencies {
implementation("io.coil-kt:coil-compose:2.0.0")
}
This file has been truncated, but you can view the full 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
[ | |
"{\"structValue\":{\"fields\":{\"raw_detection_scores\":{\"listValue\":{\"values\":[{\"listValue\":{\"values\":[{\"numberValue\":0.000935435295,\"kind\":\"numberValue\"},{\"numberValue\":0.00124356151,\"kind\":\"numberValue\"},{\"numberValue\":0.00174513459,\"kind\":\"numberValue\"},{\"numberValue\":0.00128659606,\"kind\":\"numberValue\"},{\"numberValue\":0.000911355,\"kind\":\"numberValue\"},{\"numberValue\":0.00494873524,\"kind\":\"numberValue\"},{\"numberValue\":0.000826954842,\"kind\":\"numberValue\"},{\"numberValue\":0.00328528881,\"kind\":\"numberValue\"},{\"numberValue\":0.0019146204,\"kind\":\"numberValue\"}]},\"kind\":\"listValue\"},{\"listValue\":{\"values\":[{\"numberValue\":0.00135439634,\"kind\":\"numberValue\"},{\"numberValue\":0.000440776348,\"kind\":\"numberValue\"},{\"numberValue\":0.000671267509,\"kind\":\"numberValue\"},{\"numberValue\":0.000405371189,\"kind\":\"numberValue\"},{\"numberValue\":0.000530421734,\"kind\":\"numberValue\"},{\"numberValue\":0.00103834271,\"kind\":\"numberVal |
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
package com.bagus2x.indicator | |
import android.content.Context | |
import android.graphics.Canvas | |
import android.graphics.Color | |
import android.graphics.Paint | |
import android.util.AttributeSet | |
import android.view.View | |
class Indicator : View { |
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
sealed class StackOrientation { | |
object Horizontal : StackOrientation() | |
object Vertical : StackOrientation() | |
} | |
@Composable | |
fun Stack( | |
modifier: Modifier = Modifier, | |
orientation: StackOrientation = StackOrientation.Vertical, | |
gap: Dp = 0.dp, |
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
package com.bagus2x.mymovies.ui.detail.movie | |
import androidx.lifecycle.* | |
import com.bagus2x.mymovies.data.Movie | |
import com.bagus2x.mymovies.data.Result | |
import com.bagus2x.mymovies.data.source.MovieRepository | |
import dagger.hilt.android.lifecycle.HiltViewModel | |
import kotlinx.coroutines.CoroutineDispatcher | |
import kotlinx.coroutines.launch | |
import javax.inject.Inject |
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
package main | |
import ( | |
"syscall" | |
"unsafe" | |
) | |
func main() { | |
str := []byte("Hello World") | |
syscall.Syscall(syscall.SYS_WRITE, uintptr(syscall.Stdout), uintptr(unsafe.Pointer(&str[0])), uintptr(len(str))) |
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
mkdir ~/.go | |
echo "GOPATH=$HOME/.go" >> ~/.bashrc | |
echo "export GOPATH" >> ~/.bashrc | |
echo "PATH=\$PATH:\$GOPATH/bin # Add GOPATH/bin to PATH for scripting" >> ~/.bashrc | |
source ~/.bashrc |
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
// Keunggulannya bisa untuk nonunique column timestamp | |
CREATE TABLE cek ( | |
id SERIAL PRIMARY KEY, | |
name VARCHAR(50) NOT NULL, | |
created_at INT NOT NULL | |
); | |
INSERT INTO cek VALUES (DEFAULT, 'satu', 1); | |
INSERT INTO cek VALUES (DEFAULT, 'dua', 2); |
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 { MutableRefObject, useEffect, useRef } from 'react'; | |
interface Options<Target> { | |
root?: MutableRefObject<any>; | |
enabled?: boolean; | |
rootMargin?: string; | |
threshold: number; | |
onIntersect: (entry?: IntersectionObserverEntry, target?: Target) => void; | |
} |