Skip to content

Instantly share code, notes, and snippets.

View comadaihiep92's full-sized avatar
🤟

Lan Tran comadaihiep92

🤟
View GitHub Profile
@comadaihiep92
comadaihiep92 / api.ts
Created April 1, 2023 08:56 — forked from JaysonChiang/api.ts
Example of Axios with TypeScript
import axios, { AxiosError, AxiosResponse } from 'axios';
import token from './somewhere';
interface Todo {
id: string;
title: string;
}
interface User {
id: string;
import * as qs from "qs";
import { PathLike } from "fs";
export const apiConfig = {
returnRejectedPromiseOnError: true,
withCredentials: true,
timeout: 30000,
baseURL: "https://jsonplaceholder.typicode.com/",
headers: {
common: {
@comadaihiep92
comadaihiep92 / cloudSettings
Last active February 10, 2022 10:34
Visual Studio Code Settings Sync Gist
{"lastUpload":"2022-02-10T10:34:23.836Z","extensionVersion":"v3.4.3"}
@comadaihiep92
comadaihiep92 / cloudSettingsLaptop
Last active November 28, 2022 06:53
Visual Studio Code Settings Sync Gist laptop working
{"lastUpload":"2020-08-28T05:22:45.758Z","extensionVersion":"v3.4.3"}
@comadaihiep92
comadaihiep92 / cloudSettings
Last active August 28, 2020 05:41
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-08-28T04:10:26.572Z","extensionVersion":"v3.4.3"}
@comadaihiep92
comadaihiep92 / reactjs-interview-tips.md
Created July 6, 2020 12:36 — forked from paulnguyen-mn/reactjs-interview-tips.md
Bí kíp cho buổi phỏng vấn ReactJS thành công 🎉

Bí kíp cho buổi phỏng vấn ReactJS thành công 🎉

From unplash.com

AGENGA:

  1. Một vài lưu ý chung
  2. Ôn tập kiến thức JS/ReactJS
  3. Cày thuật toán, giải thuật
  4. Tìm hiểu về công ty mà mình xin ứng tuyển

Keybase proof

I hereby claim:

  • I am comadaihiep92 on github.
  • I am storkj (https://keybase.io/storkj) on keybase.
  • I have a public key ASAnoxLxmgDmhkZFRoh680DKSTPKg5Y9A6KMf8zJwEN2Dgo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am comadaihiep92 on github.
  • I am storkj (https://keybase.io/storkj) on keybase.
  • I have a public key ASAnoxLxmgDmhkZFRoh680DKSTPKg5Y9A6KMf8zJwEN2Dgo

To claim this, I am signing this object:

storkj

Keybase proof

I hereby claim:

  • I am comadaihiep92 on github.
  • I am storkj (https://keybase.io/storkj) on keybase.
  • I have a public key ASAnoxLxmgDmhkZFRoh680DKSTPKg5Y9A6KMf8zJwEN2Dgo

To claim this, I am signing this object: