Skip to content

Instantly share code, notes, and snippets.

View anoopmaddasseri's full-sized avatar
💪
Nothing great ever came that easy.!!

Anoop Maddasseri anoopmaddasseri

💪
Nothing great ever came that easy.!!
View GitHub Profile
@anoopmaddasseri
anoopmaddasseri / promo_banners.json
Last active August 17, 2023 07:37
promo_banners
{
"promotions": [
{
"promotionId": "h.aa80d24d,Shabab Al",
"orderId": 0,
"promoArea": [
"home:main",
"home:tvshows"
],
"promoType": "SERIES",
{
"promotions": [
{
"promotionId": "h.f6ebbe78,Out Of Death Movie",
"orderId": 0,
"promoArea": [
"home:main",
"home:movies"
],
"promoType": "VOD",
{
"txRef": "d967f653-a1a0-431c-a7f6-53a1a0431c34",
"data": {
"version": "1696435195",
"userClusterKey": "skyAndStbB2CGDMPRDExy0sVDlZMzND",
"environment": "prod",
"versioning": {
"enable": true,
"profile": {
"enable": true
{
"txRef": "b2bbd865-648f-49ea-bbd8-65648f09eaf9",
"data": {
"planConfig": {
"stcRatePlanId": "ratePlanId",
"planName": "ENTERTAINMENT_MAX",
"freeAddOnsCount": 2,
"orderStatus": "Open"
},
"tiers": {
@anoopmaddasseri
anoopmaddasseri / Stopwatch.kt
Last active July 26, 2024 10:47
Kotlin Snippet: Benchmark elapsed execution time
package com.intigral.jawwytv.util.test
import android.os.SystemClock
/**
* Measures elapsed time in milliseconds
*/
class Stopwatch {
private var startThreadMillis: Long = 0
private var startRealtimeMillis: Long = 0

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

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" ],