Skip to content

Instantly share code, notes, and snippets.

View trunghieuvn's full-sized avatar

Hiếu trunghieuvn

View GitHub Profile
@trunghieuvn
trunghieuvn / nextjs.yml
Created October 25, 2024 16:52 — forked from alexng353/nextjs.yml
Next JS build test GitHub action
# Sample workflow for building and deploying a Next.js site to GitHub Pages
#
# To get started with Next.js see: https://nextjs.org/docs/getting-started
#
name: Check NextJs build
on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]
/// flutter_background_geolocation Hello World
/// https://github.com/transistorsoft/flutter_background_geolocation
////
// For pretty-printing location JSON. Not a requirement of flutter_background_geolocation
//
import 'dart:convert';
import 'package:flutter/material.dart';
import 'package:flutter_background_geolocation/flutter_background_geolocation.dart'
Event track
```
{
"country": "VN",
"af_timestamp": "1698172413744",
"appsflyerKey": "m********************k",
"af_events_api": "1",
"isFirstCall": "false",
"registeredUninstall": false,
"targetSDKver": 33,
@trunghieuvn
trunghieuvn / react-native 0.6.7.md
Last active March 31, 2022 04:27
some compile error ios for react-native command cli
@trunghieuvn
trunghieuvn / multiple_ssh_setting.md
Created August 28, 2020 08:57 — forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "[email protected]"
import 'dart:io';
import 'dart:async';
import 'dart:convert' show utf8;
import 'package:mysql1/mysql1.dart';
import 'AccountModel.dart';
List<Map<String, dynamic>> convertToMapUser(Results result) {
List<Map<String, dynamic>> users = new List();
for (var row in result) {
users.add(new AccountModel(row[0], row[1].toString()).toJson());
@trunghieuvn
trunghieuvn / react-native-offline-bundling-android
Created March 18, 2019 17:12 — forked from erikyuntantyo/react-native-offline-bundling-android
Build react-native offline bundling into android
# create assets folder in the current project
$ mkdir android/app/src/main/assets
# create bundle script
$ react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res/
# execute command to run android to create debug apk
$ react-native run-android
# Or change to android folder
@trunghieuvn
trunghieuvn / demo-git
Created January 25, 2019 12:26
demo-git
package io.flutter.plugins;
import io.flutter.plugin.common.PluginRegistry;
import io.flutter.plugins.firebaseanalytics.FirebaseAnalyticsPlugin;
import io.flutter.plugins.firebaseauth.FirebaseAuthPlugin;
import io.flutter.plugins.firebase.core.FirebaseCorePlugin;
import com.peerwaya.flutteraccountkit.FlutterAccountKitPlugin;
import com.roughike.facebooklogin.facebooklogin.FacebookLoginPlugin;
import com.dexterous.flutterlocalnotifications.FlutterLocalNotificationsPlugin;
import io.flutter.plugins.googlemaps.GoogleMapsPlugin;
@trunghieuvn
trunghieuvn / API controller
Created January 23, 2019 07:15
Controller.php
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use Illuminate\Support\Facades\Auth;
class APIController extends Controller
{
@echo off
title %~nx0
color 2
REM mode con lines=18 cols=70
set GameEngine=%cd%
set DIR=%cd%
set PRJ_WIN32_SLN="Project/Demo3D.sln"
set BUILD_TOOL="C:\Program Files (x86)\MSBuild\14.0\Bin"