Skip to content

Instantly share code, notes, and snippets.

View RameshbabuJaga's full-sized avatar
🏠
Working from home

Rameshbabu Palanisamy RameshbabuJaga

🏠
Working from home
  • Coimbatore, Tamilnadu, India
View GitHub Profile
@kibotu
kibotu / build.gradle
Last active March 22, 2022 13:07
list dependencies
android.applicationVariants.all { variant ->
tasks.register("listDependencies${variant.name.capitalize()}") {
outputs.upToDateWhen { project.rootProject.file("app/src/${variant.name}/assets/dependencies.txt").exists() }
description = "Depdencies for ${variant.name.capitalize()}"
dependsOn tasks.named("pre${variant.name.capitalize()}Build").get()
@graymind75
graymind75 / NetworkHelper.kt
Last active August 23, 2022 18:26
a singleton class to check the network connection state, use both of the NetworkCallback and ConnectivityManager to support older devices
package com.graymind75
import android.content.Context
import android.net.*
import android.os.Build
import androidx.annotation.RequiresApi
/**
* singleton class to check the network connection state
* It's use the old ConnectivityManager.activeNetworkInfo way for pre LOLLIPOP
@codediodeio
codediodeio / database.rules.json
Last active June 1, 2024 14:26
Common Database Rules for Firebase
// No Security
{
"rules": {
".read": true,
".write": true
}
}
var mediaJSON = { "categories" : [ { "name" : "Movies",
"videos" : [
{ "description" : "Big Buck Bunny tells the story of a giant rabbit with a heart bigger than himself. When one sunny day three rodents rudely harass him, something snaps... and the rabbit ain't no bunny anymore! In the typical cartoon tradition he prepares the nasty rodents a comical revenge.\n\nLicensed under the Creative Commons Attribution license\nhttp://www.bigbuckbunny.org",
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4" ],
"subtitle" : "By Blender Foundation",
"thumb" : "images/BigBuckBunny.jpg",
"title" : "Big Buck Bunny"
},
{ "description" : "The first Blender Open Movie from 2006",
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4" ],