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
| // imgLib -> Image package from https://pub.dartlang.org/packages/image | |
| import 'package:image/image.dart' as imglib; | |
| import 'package:camera/camera.dart'; | |
| Future<List<int>> convertImagetoPng(CameraImage image) async { | |
| try { | |
| imglib.Image img; | |
| if (image.format.group == ImageFormatGroup.yuv420) { | |
| img = _convertYUV420(image); | |
| } else if (image.format.group == ImageFormatGroup.bgra8888) { |
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 android.content.Context | |
| import android.util.Log | |
| import io.reactivex.rxjava3.android.schedulers.AndroidSchedulers | |
| import io.reactivex.rxjava3.core.Observable | |
| import io.reactivex.rxjava3.disposables.Disposable | |
| import io.reactivex.rxjava3.schedulers.Schedulers | |
| import io.reactivex.rxjava3.subjects.PublishSubject | |
| import okhttp3.MediaType | |
| import okhttp3.OkHttpClient |
This file has been truncated, but you can view the full file.
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
| [ | |
| { | |
| "code": "AAA", | |
| "lat": "-17.3595", | |
| "lon": "-145.494", | |
| "name": "Anaa Airport", | |
| "city": "Anaa", | |
| "state": "Tuamotu-Gambier", | |
| "country": "French Polynesia", | |
| "woeid": "12512819", |
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": "Afghanistan", | |
| "dial_code": "+93", | |
| "code": "AF" | |
| }, | |
| { | |
| "name": "Aland Islands", | |
| "dial_code": "+358", | |
| "code": "AX" |
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
| <?php | |
| namespace App\Http\Controllers; | |
| use Illuminate\Http\Request; | |
| trait RestControllerTrait { | |
| public function index() { | |
| $model = self::MODEL; |
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
| /* | |
| ##Device = Desktops | |
| ##Screen = 1281px to higher resolution desktops | |
| */ | |
| @media (min-width: 1281px) { | |
| //CSS | |