This file contains 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 main | |
import ( | |
"encoding/json" | |
"io" | |
"log" | |
"net/http" | |
"os" | |
"github.com/go-redis/redis" |
This file contains 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
getAllTheDistanceCover(String addressOne, String addressTwo) async { | |
isCalculating = true; | |
update(); | |
List<Location> startAddress = | |
await locationFromAddress(addressOne, localeIdentifier: "en"); | |
List<Location> destinationAddress = | |
await locationFromAddress(addressTwo, localeIdentifier: "en"); | |
await _createPolylines(startAddress[0], destinationAddress[0]); | |
double sum = totalDistanceCovered(); |
This file contains 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 'dart:io'; | |
import 'package:camera/camera.dart'; | |
import 'package:flutter/material.dart'; | |
import 'package:flutter/services.dart'; | |
import 'package:flutter_camera/gallery.dart'; | |
import 'package:flutter_camera/video_timer.dart'; | |
import 'package:path/path.dart' as path; | |
import 'package:path_provider/path_provider.dart'; | |
import 'package:thumbnails/thumbnails.dart'; |
This file contains 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 'dart:convert'; | |
import 'package:flutter/material.dart'; | |
import 'package:http/http.dart' as http; | |
import 'package:pokemonApp/pokemon.dart'; | |
import 'package:pokemonApp/pokemondetails.dart'; | |
void main()=>runApp(MaterialApp( |
This file contains 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
{ | |
"registration_ids":["cT2T7lRNTYmXNM-TOD1xJx:APA91bG_Hxqrqrp1byQ2-RkAfqRtz0ddziuRIhPVqYfh5lEDUnVJc1Vmlau588XGwNvnGS8B0MTzmLgbMz6s42pm27wsNLEFdV1Kt-JqA47h2V3uFo31n0eIB5k5WQhlgnHcCkijL5vG","dbXvnvsAQk-mN2Qmqgvji8:APA91bEsnGQnl1vJvhFJEjtAwV5y4shddde7Fj_8_UtLO2YlUqFLVD3fs6JiFyCfU87t0u41vnz4p9cpj-LUKcM_8s7jZjuSrcBoYTBrcLwKsO5kOBqPhlX5bJGr5FwgbTz50DR-4Rmz"], | |
"notification" : { | |
"sound" : "default", | |
"body" : "test body", | |
"title" : "test title", | |
"content_available" : true, | |
"priority" : "high", | |
}, | |
"data" : { |
This file contains 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 'dart:math'; | |
import 'package:flutter/material.dart'; | |
import 'package:game/util.dart'; | |
import 'package:game/style.dart'; | |
class PaperScissorRock extends StatefulWidget { | |
@override | |
_PaperScissorRockState createState() => _PaperScissorRockState(); | |
} |
This file contains 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
String addOperandToExpression(String operand, String mathsExpression) { | |
if (operands.contains(mathsExpression[mathsExpression.length - 1])) { | |
var toArray = mathsExpression.split(""); | |
toArray[toArray.length - 1] = operand; | |
mathsExpression = toArray.join(""); | |
} else { | |
operandsIndex.add(mathsExpression.length); | |
mathsExpression += operand; | |
} | |
dotTaken = false; |