Skip to content

Instantly share code, notes, and snippets.

View lamdev99's full-sized avatar
💭
Android, Xamarin , Kotlin

Nguyễn Tùng Lâm lamdev99

💭
Android, Xamarin , Kotlin
  • PTIT
  • Ha Noi, Viet Nam
View GitHub Profile
- docker load -i codefest-server-[version].tar
For first run:
- docker compose -f docker-compose-training.yml up
For second run:
- docker compose -f docker-compose-training.yml ps -a
- docker compose -f docker-compose-training.yml start
- docker logs codefest-srv
- docker compose -f docker-compose-training.yml stop
@lamdev99
lamdev99 / MainActivity.kt
Created November 30, 2022 13:52
start activity for result jetpack compose
package com.lamdev99.jcdemo
import android.content.Intent
import android.os.Bundle
import android.util.Log
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material.Button
@lamdev99
lamdev99 / data.dart
Created July 22, 2022 02:42
json decode
class Response {
List<Data>? data;
Meta? meta;
Response({this.data, this.meta});
Response.fromJson(Map<String, dynamic> json) {
if (json['data'] != null) {
data = <Data>[];
json['data'].forEach((v) {
[info] [HTTP] Waiting until the server is closed
[info] [HTTP] Received server close event
[info] [Appium] Welcome to Appium v1.22.3
[info] [Appium] Non-default server args:
[info] [Appium] relaxedSecurityEnabled: true
[info] [Appium] allowInsecure: {
[info] [Appium] }
[info] [Appium] denyInsecure: {
[info] [Appium] }
[info] [Appium] Appium REST http interface listener started on 0.0.0.0:4723[debug] [HTTP] Request idempotency key: 46c827c9-7d66-495f-b6a9-4bb9587bf10e
#include <bits/stdc++.h>
#define For(i,a,b) for(int i = a; i <= b; i++)
#define ull unsigned long long
using namespace std;
int main(){
int n,ans = 0;
cin>>n;
int a[n+5];
@lamdev99
lamdev99 / LCS
Created October 24, 2018 07:19
Longest comman string
/*Code by LDDLamNT
lanrefni;
using C++;
*/
#include <bits/stdc++.h>
using namespace std;
string s,t;
void LCS(){