Skip to content

Instantly share code, notes, and snippets.

View BinarySenseiii's full-sized avatar

Faisal TariQ BinarySenseiii

View GitHub Profile
@JaysonChiang
JaysonChiang / api.ts
Last active November 21, 2025 03:07
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;
@tannerlinsley
tannerlinsley / createCrudHooks.js
Created November 29, 2020 06:39
A naive, but efficient starter to generate crud hooks for React Query
export default function createCrudHooks({
baseKey,
indexFn,
singleFn,
createFn,
updateFn,
deleteFn,
}) {
const useIndex = (config) => useQuery([baseKey], indexFn, config)
const useSingle = (id, config) =>
@bradtraversy
bradtraversy / docker-help.md
Last active May 4, 2026 04:04
Docker Commands, Help & Tips

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info