Skip to content

Instantly share code, notes, and snippets.

View GoodnessEzeokafor's full-sized avatar
🏠
Working from home

Ezeokafor GoodnessEzeokafor

🏠
Working from home
View GitHub Profile
@GoodnessEzeokafor
GoodnessEzeokafor / nigerian-banks.json
Created August 20, 2024 22:12 — forked from 03balogun/nigerian-banks.json
JSON List of Nigerian Banks and Codes
{
"data": [
{
"name": "9mobile 9Payment Service Bank",
"code": "120001"
},
{
"name": "Abbey Mortgage Bank",
"code": "404"
},
@GoodnessEzeokafor
GoodnessEzeokafor / NIbssistitutionlist
Created August 14, 2024 09:39 — forked from OlabodeAbesin/NIbssistitutionlist
Nigerian bank, bank/institution codes and logo
[
{
"id": 376,
"InstitutionCode": "090270",
"InstitutionName": "AB MICROFINANCE BANK",
"Category": "9",
"dump": null,
"created_at": "2020-03-02 20:44:54",
"updated_at": "2020-08-24 00:02:52",
"deleted_at": null,
@GoodnessEzeokafor
GoodnessEzeokafor / self.decorator.ts
Created July 3, 2022 12:30 — forked from DimosthenisK/self.decorator.ts
NestJS Guard + Decorator that allows user access limit to his own resources
import { SetMetadata } from '@nestjs/common';
export interface SelfDecoratorParams {
userIDParam: string;
allowAdmins?: boolean;
}
export const Self = (params: SelfDecoratorParams | string) =>
SetMetadata(
'selfParams',
@GoodnessEzeokafor
GoodnessEzeokafor / IRepository.ts
Created January 24, 2022 10:58 — forked from Orbis25/IRepository.ts
Simple Repository Pattern in TypeScript with axios
import { AxiosResponse } from "axios";
import { AxiosConfig } from "../../api";
export interface IRead<T> {
getAll(route: string, params?: string): Promise<AxiosResponse<T[]>>;
getById(route: string, id: string): Promise<AxiosResponse<T>>;
getPaginatedList(route: string, params?: string): Promise<AxiosResponse<T[]>>;
}
export interface IWrite<T> {