Skip to content

Instantly share code, notes, and snippets.

View tvc97's full-sized avatar
🤪

Trần Văn Cương tvc97

🤪
  • AgeCode Co.Ltd
  • Ho Chi Minh City
View GitHub Profile
@tvc97
tvc97 / VietnamPlaces_.gitignore
Created December 14, 2015 09:49
Vietnam's Place Google Developer Group - Final Project
*.iml
.gradle
/local.properties
/.idea/workspace.xml
/.idea/libraries
.DS_Store
/build
/captures
@tvc97
tvc97 / VietnamPlaces_.gitignore
Created December 14, 2015 09:52
Vietnam's Places Google Developer Group Viet Nam - Final Project
*.iml
.gradle
/local.properties
/.idea/workspace.xml
/.idea/libraries
.DS_Store
/build
/captures
@tvc97
tvc97 / app_.gitignore
Created December 14, 2015 09:54
Vietnam's Places Google Developer Group Viet Nam - Final Project
/build
@tvc97
tvc97 / BALANCE.CPP
Last active June 1, 2016 03:41
Thầy Việt tuần 1
#include <iostream>
#include <fstream>
#include <algorithm>
#include <iomanip>
#define maxs 10000
using namespace std;
ofstream out;
#include <bits/stdc++.h>
using namespace std;
void print(int lim, int cur) {
for(int i = 1; i <= lim; i++)
if(i >= cur) cout << setw((int)log10(lim) + 2) << i;
else cout << setw((int)log10(lim) + 2) << "_";
cout << endl;
}
@tvc97
tvc97 / settings.json
Last active August 11, 2020 09:59
VSCode Setting
{
"editor.fontFamily": "Office Code Pro, Monaco, 'Courier New', monospace",
"editor.formatOnSave": true,
"editor.tabSize": 2,
"editor.fontWeight": "500",
"editor.fontSize": 12,
"editor.lineHeight": 22,
"workbench.colorTheme": "GitHub Light",
"git.autofetch": true,
"prettier.singleQuote": true,
{
"color_scheme": "Packages/Theme - One Dark/One Dark.tmTheme",
"ignored_packages":
[
"Vintage"
],
"theme": "One Dark.sublime-theme",
"font_face": "Office Code Pro",
"line_padding_bottom": 1,
"line_padding_top": 1

Keybase proof

I hereby claim:

  • I am tvc97 on github.
  • I am tvc97 (https://keybase.io/tvc97) on keybase.
  • I have a public key ASBk-acvdqD4twwBloE1sC0LUspbLAhFNVtCl4mSCDmfZAo

To claim this, I am signing this object:

req = new XMLHttpRequest()
req.open('GET', 'https://tiki.vn/api/v2/me/orders?page=1&limit=5000', false)
req.send()
a = JSON.parse(req.responseText)
total = a.data.reduce((prev, next) => next.grand_total + prev, 0)
Intl.NumberFormat('vi-VN').format(total)