Skip to content

Instantly share code, notes, and snippets.

View tomavic's full-sized avatar
I work to clear off my pending work

Hatem tomavic

I work to clear off my pending work
View GitHub Profile
@n1snt
n1snt / Oh my ZSH with zsh-autosuggestions zsh-syntax-highlighting zsh-fast-syntax-highlighting and zsh-autocomplete.md
Last active May 20, 2026 01:03
Oh my ZSH with zsh-autosuggestions zsh-syntax-highlighting zsh-fast-syntax-highlighting and zsh-autocomplete.md
@popescuaaa
popescuaaa / useAxios.ts
Created August 16, 2021 13:12
react typescript axios hook
/* eslint-disable react-hooks/exhaustive-deps */
import { useEffect, useState } from "react";
import axios, { Method } from "axios";
/**
* https://github.com/ali-master/react-typescript-hooks-sample
*/
const useFetch = (
url: string,
method: Method,
@diegotauchert
diegotauchert / gist:82635d52ae697a64756650554db3fff7
Created February 8, 2022 02:02
Strip Property function, hackerrank Javascript code chalenge
function stripProperty(obj, prop) {
const newObj = Object.keys(obj).filter(el => el !== prop)
const values = newObj.map(el => [el, obj[el]])
return Object.fromEntries(values)
}