mongodump --username DB_USERNAME --password DB_PASSWORD --db DB_NAME --out /var/backups/mongobackups/`date +"%m-%d-%y"`
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 'package:flutter/material.dart'; | |
class WShakeAnim extends StatelessWidget { | |
const WShakeAnim({ | |
Key key, | |
this.child, | |
this.offset = 100, | |
this.duration = const Duration(seconds: 1), | |
}) : super(key: key); |
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
server { | |
listen 80; | |
listen [::]:80; | |
server_name api.nhancv.com; | |
location / { | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_pass http://localhost:3000; |
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 'package:flutter/cupertino.dart'; | |
import 'package:flutter/material.dart'; | |
import 'package:flutter/services.dart'; | |
import 'package:nft/services/safety/base_stateful.dart'; | |
import 'package:nft/utils/app_extension.dart'; | |
import 'package:nft/utils/app_style.dart'; | |
import 'package:nft/widgets/w_bottom_action_sheet.dart'; | |
import 'package:nft/widgets/w_button_inkwell.dart'; | |
import 'package:nft/widgets/w_divider_line.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 'package:flutter/cupertino.dart'; | |
import 'package:flutter/material.dart'; | |
import 'package:flutter/services.dart'; | |
import 'package:nft/services/safety/base_stateful.dart'; | |
import 'package:nft/utils/app_extension.dart'; | |
import 'package:nft/utils/app_style.dart'; | |
import 'package:nft/widgets/w_bottom_action_sheet.dart'; | |
import 'package:nft/widgets/w_button_inkwell.dart'; | |
import 'package:nft/widgets/w_divider_line.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 'package:flutter/material.dart'; | |
import 'package:nft/utils/app_route.dart'; | |
// // AppRoute from nft template | |
// WKeyboardDetector( | |
// onState: (bool isOpen, double keyboardHeight) { | |
// print('isOpen: $isOpen'); | |
// }, | |
// ), | |
class WKeyboardDetector extends StatefulWidget { |
w_marquee.dart
import 'package:flutter/material.dart';
class WMarquee extends StatefulWidget {
const WMarquee({
@required this.child,
this.padding,
this.scrollDirection = Axis.horizontal,
this.animationDuration = const Duration(milliseconds: 5000),
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
class Subject<T> { | |
List<Observer<T>> observers = <Observer<T>>[]; | |
T _state; | |
T get state => _state; | |
set state(T value) { | |
_state = value; | |
notifyAllObservers(); | |
} |
build.gradle
aaptOptions {
noCompress '.flv', '.mp4'
}
signingConfigs {}
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
class _MenuBoxBackground extends CustomPainter { | |
@override | |
void paint(Canvas canvas, Size size) { | |
final Paint paint = Paint() | |
..color = Colors.white | |
..strokeWidth = 1.W | |
..style = PaintingStyle.fill; | |
final double triangleH = 10.H; | |
final double triangleW = 25.0.W; | |
final double width = size.width; |