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.exoplayer.cast | |
| import android.net.Uri | |
| import android.os.Bundle | |
| import android.view.Menu | |
| import android.view.MenuItem | |
| import androidx.appcompat.app.AppCompatActivity | |
| import com.google.android.exoplayer2.Player | |
| import com.google.android.exoplayer2.SimpleExoPlayer | |
| import com.google.android.exoplayer2.ext.cast.CastPlayer |
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
| curl -i -H 'Content-type: application/json' -H 'Authorization: key=<your_server_key>' -XPOST https://fcm.googleapis.com/fcm/send -d '{ | |
| "registration_ids":["registration_ids", "of the", "target", "devices as array"], | |
| "notification": { | |
| "title":"Title of your notification", | |
| "body":"content of your notification" | |
| }, | |
| "data": { | |
| "key1" : "value1", | |
| "key2" : "value2", | |
| "key3" : 23.56565, |
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
| [ | |
| { | |
| "id": "1", | |
| "title": "Burger King", | |
| "imageUrl": "https://fakeimg.pl/350x200/", | |
| "description": "Description about burger king", | |
| "favorite": false | |
| }, | |
| { | |
| "id": "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
| // 1 | |
| class CircularProgress extends StatefulWidget{ | |
| CircularProgress({ | |
| @required this.size, | |
| this.secondaryColor = Colors.white, | |
| this.primaryColor = Colors.orange, | |
| this.lapDuration = 1000, | |
| this.strokeWidth = 5.0 | |
| }); | |
| // 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
| { | |
| username: "developer76", | |
| name: "Javier torres", | |
| age: 30, | |
| aliases: ["dev", "eng", "android"] | |
| } |
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 'package:cartenz_djp/style/colors.dart'; | |
| import 'package:cartenz_djp/widget/override/customTabs.dart' as Tabs; | |
| import 'package:flutter/material.dart'; | |
| class ExampleWidget extends StatefulWidget { | |
| @override | |
| State<StatefulWidget> createState() => ExampleState(); | |
| } | |
| class ExampleState extends State<ExampleWidget> { |
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 kotlinx.coroutines.CoroutineStart.LAZY | |
| import kotlinx.coroutines.Deferred | |
| import kotlinx.coroutines.async | |
| import kotlinx.coroutines.cancelAndJoin | |
| import kotlinx.coroutines.coroutineScope | |
| import kotlinx.coroutines.sync.Mutex | |
| import kotlinx.coroutines.sync.withLock | |
| import kotlinx.coroutines.yield | |
| import java.util.concurrent.atomic.AtomicReference | |
| import kotlin.DeprecationLevel.ERROR |
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
| {name: "Javier", lastName: "Torres", profile: "Android Developer"} |
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
| {"status":"200","errors":"[]","payload":{"paymentStatus":"true","validUntil":"test"}} |
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 java.util.ArrayList; | |
| import java.util.Arrays; | |
| import java.util.List; | |
| import rx.Observable; | |
| import rx.Observer; | |
| import rx.functions.Func2; | |
| public class RxJavaExamples { |
NewerOlder