Skip to content

Instantly share code, notes, and snippets.

View mduccc's full-sized avatar
🎧

Minh Duc mduccc

🎧
View GitHub Profile
{
"sku": "229329_0DuSzBAuZnUro_Lko7kkdK",
"type": "0",
"name": "Kem chống nắng La Reine - L",
"barcode": "qeqeq",
"description": "<p>CHỐNG NẮNG, DƯỠNG DA, GIẢM MỤN CHỈ TRONG MỘT BƯỚC <br /><br/>Chống nắng nhưng… ☀️<br /><br/>- Vẫn phải đẹp</p><br/><br/><p>- Vẫn phải tự tin<br /><br/>- Vẫn phải hiệu quả<br /><br/>- Vẫn phải dưỡng cho da<br /><br/>Bạn chỉ cần 1 bước trước khi ra đường - Tất cả thần thái đó cứ để Kem chống nắng La Reine lo<br /><br/> - Kem chống nắng La Reine – Kem chống nắng tự nhiên hiệu quả nhất hiện nay<br /><br/> -Chỉ số chống nắng hoàn hảo: SPF 50, PA+++<br /><br/>- Khả năng chống nắng lên tới 6 giờ<br /><br/>- Thành phần trong kem chống nắng La Reine giúp bảo vệ da khỏi tia cực tím, kéo dài thời gian chống nắng mà vẫn an toàn cho da<br /><br/> ☀️ Kem chống nắng La Reine – Kem chống nắng có khả năng dưỡng da, chống mụn<br /><br/> ☘️ Thẩm thấu sâu vào tế bào biểu bì da giúp da hấp thu dưỡng chất hiệu quả mà không gây cảm giác nhờn dính, bít bết lỗ chân lông và khó chịu t
@mduccc
mduccc / gist:aa96e16d192d5f600a0ab1bbe9dd7227
Created December 15, 2023 14:54
number_extension.dart
import 'dart:math';
import 'package:asset/asset.dart';
import 'package:intl/intl.dart';
extension NumberExts on num {
String formatCurrency({
String prefix = '',
String suffix = '',
String locale = 'vi',
bool prefixNegative = false,
@mduccc
mduccc / gist:fe0644999507f230dc6fe8c195a4a7b2
Created November 17, 2022 10:49
RefreshTokenInterceptor
class RefreshTokenInterceptor extends Interceptor {
RefreshTokenInterceptor({required this.dio, required this.refreshTokenDio});
final Dio dio;
final Dio refreshTokenDio;
SessionController? _sessionController;
final int _maxRetryRefresh = 2;
int _countRetryRefresh = 0;
{
"createAt": 1639987581317,
"currency": "KARAT",
"item": "item/item_455",
"item_object": {
"artist": "user/HcqLgwkz6KQWX4EYaAoj4IkOdUj1",
"brand": "brand/zeSOqlBCiw2pH5FmLYKl",
"createAt": 1639987534742,
"desc": "[全編動画](https://drive.google.com/file/d/1EqDuASmD_3WuIFUkTpKRViuicBDMYosn/view?usp=sharing)",
"fee": 0.01,
class Home extends StatefulWidget {
@override
_HomeState createState() => _HomeState();
}
class _HomeState extends State<Home> {
@override
Widget build(BuildContext context) => Scaffold(
floatingActionButton: FloatingActionButton(
child: Icon(Icons.refresh),
@mduccc
mduccc / Thresholds
Last active October 16, 2019 17:32
class Thresholds {
static final String verybad = 'Rất tệ';
static final String bad = 'Tệ';
static final String normal = 'Bình thường';
static final String medium = 'Trung bình';
static final String good = 'Tuyệt';
static final String verygood = 'Rất tuyệt';
static final String safe = 'An toàn';
static final String extreme = 'Cực nguy hiểm';

Keybase proof

I hereby claim:

  • I am mduccc on github.
  • I am mducc (https://keybase.io/mducc) on keybase.
  • I have a public key ASBahkqnuR3x80g3LFAGr1A0GO1z-xXIcggVjCLDf3F2Ago

To claim this, I am signing this object:

class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
val activityMainBinding = DataBindingUtil.setContentView<ActivityMainBinding>(this, R.layout.activity_main)
activityMainBinding.registerViewModel = RegisterViewModel()
activityMainBinding.executePendingBindings()
}
}
class Register {
fun reg(username: String, password: String, country: String): Boolean {
/*Business logic here...*/
return true
}
}
<Button
android:id="@+id/register"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Register"
android:layout_gravity="center"
android:layout_marginTop="5dp"
android:onClick="@{() -> RegisterViewModel.onCLicked()}"
bind:toastMessageAction="@{RegisterViewModel.toastMessage}"/>