Skip to content

Instantly share code, notes, and snippets.

View huxaiphaer's full-sized avatar
⚔️
Code Mutant

LUTAAYA HUZAIFAH IDRIS huxaiphaer

⚔️
Code Mutant
View GitHub Profile
1. Regarding on how to update the User there are two options and below are the following :-
a). Non - customized User.
```
user = User.objects.get(pk=x)
user.firstname = ‘xxx’
user.save()
```
import UIKit
import Flutter
import Firebase
@UIApplicationMain
@objc class AppDelegate: FlutterAppDelegate, UIResponder, UIApplicationDelegate {
var window: UIWindow?
var application: UIApplication?
var unityController: UnityAppController?
import 'dart:convert';
import 'package:shared_preferences/shared_preferences.dart';
import 'package:streaming_shared_preferences/streaming_shared_preferences.dart';
class LocalStorage {
static const String NOTIFICATIONS = "notifications";
static const String LOAD_NOTIFICATION = "load_notification";
static const String LOAD_NOTIFICATION_TYPE = "load_notification_type";
static const String LOAD_NOTIFICATION_TYPE_TITLE =
"load_notification_type_title";
static const String ENABLE_PUSH_NOTIFICATIONS = "enable_push_notifications";
private fun playbackArVideo(augmentedImage: AugmentedImage) {
Log.d(TAG, "playbackVideo = ${augmentedImage.name}")
requireContext().assets.openFd(augmentedImage.name)
.use { descriptor ->
val metadataRetriever = MediaMetadataRetriever()
db_1 |
db_1 | PostgreSQL Database directory appears to contain a database; Skipping initialization
db_1 |
db_1 | 2020-07-15 06:13:21.065 UTC [1] LOG: starting PostgreSQL 12.3 (Debian 12.3-1.pgdg100+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 8.3.0-6) 8.3.0, 64-bit
db_1 | 2020-07-15 06:13:21.065 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
package com.shliama.augmentedvideotutorial
import android.animation.ValueAnimator
import android.graphics.Bitmap
import android.graphics.BitmapFactory
import android.graphics.RectF
import android.graphics.drawable.Drawable
import android.media.MediaMetadataRetriever
import android.media.MediaMetadataRetriever.*
import android.media.MediaPlayer
-I/Users/emmanuelcolumbus/Library/Developer/Xcode/DerivedData/Runner-arujjgoxgfyvzceszvagigjfmblj/Build/Intermediates.noindex/Pods.build/Release-iphoneos/GoogleDataTransport.build/GoogleDat
aTransport-own-target-headers.hmap
-I/Users/emmanuelcolumbus/Library/Developer/Xcode/DerivedData/Runner-arujjgoxgfyvzceszvagigjfmblj/Build/Intermediates.noindex/Pods.build/Release-iphoneos/GoogleDataTransport.build/GoogleDat
aTransport-all-non-framework-target-headers.hmap -ivfsoverlay
/Users/emmanuelcolumbus/Library/Developer/Xcode/DerivedData/Runner-arujjgoxgfyvzceszvagigjfmblj/Build/Intermediates.noindex/Pods.build/all-product-headers.yaml -iquote
/Users/emmanuelcolumbus/Library/Developer/Xcode/DerivedData/Runner-arujjgoxgfyvzceszvagigjfmblj/Build/Intermediates.noindex/Pods.build/Release-iphoneos/GoogleDataTransport.build/GoogleDataT
ransport-project-headers.hmap -I/Users/emmanuelcolumbus/Desktop/revamp_work
import 'dart:async';
import 'dart:developer';
import 'package:flutter/material.dart';
import 'package:flutter_svg/flutter_svg.dart';
import 'package:newvisionapp/src/resources/services/database.dart';
import 'package:newvisionapp/src/ui/comments/comments_tile.dart';
import 'package:newvisionapp/src/utils/utils.dart';
class CommentsPage extends StatefulWidget {
StreamBuilder(
stream: commentsStream,
builder: (context, snapshot) {
if (!snapshot.hasData) {
return Container();
}
return GestureDetector(
onTap: () {
FocusScope.of(context).unfocus();
class RightChatBubble extends CustomClipper<Path> {
@override
Path getClip(Size size) {
// TODO: implement getClip
Path path = new Path();
double factor = 10.0;
path.lineTo(0, size.height - factor);
// Curve Left bottom.