Skip to content

Instantly share code, notes, and snippets.

@Debdutta-Panda
Debdutta-Panda / MainActivity.kt
Created July 19, 2022 16:33
Jetpack Compose Vertical Slider
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.background
import androidx.compose.foundation.interaction.MutableInteractionSource
import androidx.compose.foundation.layout.*
import androidx.compose.material.*
import androidx.compose.runtime.*
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
@Nirma
Nirma / FTPUpload.swift
Last active December 30, 2023 02:11
Upload a file via FTP on iOS or macOS
import Foundation
import CFNetwork
public class FTPUpload {
fileprivate let ftpBaseUrl: String
fileprivate let directoryPath: String
fileprivate let username: String
fileprivate let password: String
@seongchan
seongchan / sample_layout.xml
Created September 19, 2016 08:26
Android ImageView Brightness using xml file
<!--
See android:tint and android:tintMode
-->
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/sample_img"
android:tint="#CCCCCC"
android:tintMode="add"/>
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:gravity="center">
<shape android:shape="oval">
<gradient
android:centerColor="#80000000"
android:endColor="#00000000"
android:gradientRadius="90"
android:startColor="#ff000000"
android:type="radial" />