Skip to content

Instantly share code, notes, and snippets.

View surajsau's full-sized avatar
🙇‍♂️
よろしくお願いします!

Suraj Kumar Sau surajsau

🙇‍♂️
よろしくお願いします!
View GitHub Profile
@riggaroo
riggaroo / GradientAlongPathAnimation.kt
Last active January 24, 2024 15:45
Gradient along a path using path.flatten in Compose, Inspired by William Candillon https://youtu.be/7SCzL-XnfUU, this uses Jetpack Compose to draw a gradient along a path https://github.com/wcandillon/can-it-be-done-in-react-native/tree/master/bonuses/skia-examples/src/PathGradient
package androidx.compose.samples.animationfactory
import androidx.compose.animation.core.Animatable
import androidx.compose.animation.core.infiniteRepeatable
import androidx.compose.animation.core.tween
import androidx.compose.foundation.Canvas
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.aspectRatio
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
@NitinPraksash9911
NitinPraksash9911 / UnzipUtils.kt
Last active May 6, 2024 15:31
Unzipping file in android/kotlin
import java.io.*
import java.util.zip.ZipFile
/**
* UnzipUtils class extracts files and sub-directories of a standard zip file to
* a destination directory.
*
*/
object UnzipUtils {
@buntagonalprism
buntagonalprism / Dart Class.dart
Last active April 2, 2023 12:22
Flutter and Dart collection of file templates for Android Studio development
#set( $nameparts = $NAME.split("_"))
#set( $namepart = '')
#set( $classname = '')
#foreach( $namepart in $nameparts )
#set( $classname = $classname + $namepart.substring(0, 1).toUpperCase() + $namepart.substring(1))
#end
class $classname {
// TODO: add class properties and methods
@sharish
sharish / harish.exolist.json
Last active January 24, 2024 02:02
Sample Exo Playlist for Widevine Dash with HDCP v2.0
[
{
"name": "Widevine DASH: MP4,H264",
"samples": [
{
"name": "Sample Demo Video",
"drm_scheme": "widevine",
"uri": "https://drvideotest.streaming.mediaservices.windows.net/b56d4515-6604-4bbb-8465-87ce54759ca7/SampleVideo_1280x720_30mb.ism/manifest(format=mpd-time-csf)",
"drm_license_url": "https://drvideotest.keydelivery.southindia.media.azure.net/Widevine/?kid=604dbd46-3b6f-4cf8-84da-9ddb2a76a7b7",