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
@03balogun
03balogun / nigerian-banks.json
Last active August 28, 2024 09:16
JSON List of Nigerian Banks and Codes
{
"data": [
{
"name": "9mobile 9Payment Service Bank",
"code": "120001"
},
{
"name": "Abbey Mortgage Bank",
"code": "404"
},
@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> {
@Orbis25
Orbis25 / IRepository.ts
Created August 26, 2020 19:38
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> {
@OlabodeAbesin
OlabodeAbesin / NIbssistitutionlist
Last active October 17, 2024 13:20
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,
@DimosthenisK
DimosthenisK / self.decorator.ts
Created December 17, 2019 10:14
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',
@bayoishola20
bayoishola20 / geodjango-heroku.sh
Last active June 5, 2021 19:56
geodjango-heroku deploy
## Active virtual environment
`$ source bin/activate`
## Git initialization
`$ git init`
## Heroku create app
`$ heroku create map-app`
## Assigning remote target
.
├── books
│   ├── handlers.go
│   └── models.go
├── config
│   └── db.go
└── main.go