Skip to content

Instantly share code, notes, and snippets.

View chrisidakwo's full-sized avatar
🤓
Having fun!

Chris Idakwo chrisidakwo

🤓
Having fun!
View GitHub Profile
@chrisidakwo
chrisidakwo / nigerian-cities.json
Last active March 24, 2025 13:30
Nigerian states and cities. Unfortunately, we don't have a good database record of these kind of things. So while building apps, I tend to update each state as needed. But I usually work with this as the baseline. You can also find this useful: https://simplemaps.com/data/ng-cities
{
"Abia": [
"Aba",
"Arochukwu",
"Umuahia"
],
"Adamawa": [
"Jimeta",
"Mubi",
"Numan",
/
# API Design Patterns And Use Cases
This document lists various useful patterns for API design. We encourage API developers to consider the following patterns as a guide while designing APIs for services.
### Document Semantics, Formatting, and Naming
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in [RFC 2119](https://www.ietf.org/rfc/rfc2119.txt).
# API Design Guidelines
# Introduction
The PayPal platform is a collection of reusable services that encapsulate well-defined business capabilities. Developers are encouraged to access these capabilities through Application Programming Interfaces (APIs) that enable consistent design patterns and principles. This facilitates a great developer experience and the ability to quickly compose complex business processes by combining multiple, complementary capabilities as building blocks.
PayPal APIs follow the [RESTful][0] architectural style as much as possible. To support our objectives, we have developed a set of rules, standards, and conventions that apply to the design of RESTful APIs. These have been used to help design and maintain hundreds of APIs and have evolved over several years to meet the needs of a wide variety of use cases.
We are sharing these guidelines to help propagate good API design practices in general. We have pulled extensively from the broader community and believe that it is importan
@chrisidakwo
chrisidakwo / nigerian-states.json
Last active August 30, 2025 00:28
All 36 states in Nigeria, and their local government areas - including the Federal Capital Territory and its area councils
{
"Abia": [
"Aba North",
"Aba South",
"Arochukwu",
"Bende",
"Ikwuano",
"Isiala-Ngwa North",
"Isiala-Ngwa South",
"Isuikwato",
@chrisidakwo
chrisidakwo / nigerian-banks.php
Created January 24, 2019 12:06
List of currently authorized commercial banks in Nigeria, as listed by the CBN (January 2019)
<?php
return [
"Access Bank",
"Citibank Nigeria",
"Diamond Bank",
"Ecobank Nigeria",
"Fidelity Bank",
"First Bank Nigeria",
"First City Monument Bank",
@chrisidakwo
chrisidakwo / nigerian-states.php
Last active June 8, 2022 15:57
All 36 states in Nigeria, and their local government areas - including the Federal Capital Territory and its area councils
<?php
return [
"Abia" => [
"Aba North",
"Aba South",
"Arochukwu",
"Bende",
"Ikwuano",
"Isiala-Ngwa North",
#!/usr/bin/env bash
export DEBIAN_FRONTEND=noninteractive
# Update Package List
apt-get update
# Update System Packages
apt-get -y upgrade
@chrisidakwo
chrisidakwo / mailgun-config.md
Created September 14, 2018 06:46 — forked from mrabbani/mailgun-config.md
Laravel Mailgun Setup

Mailgun setup

  • install Guzzle HTTP library : composer require guzzlehttp/guzzle
  • [sign up to mailgun] (http://www.mailgun.com)
  • Go to Domains tab and click on domains
  • You will find the necessary data for .env setup
    • MAIL_DRIVER=mailgun
    • MAIL_HOST=smtp.mailgun.org
    • MAIL_PORT=587
    • MAIL_USERNAME=[email protected]
  • MAIL_PASSWORD=502fd951f7------------------------
@chrisidakwo
chrisidakwo / validators.py
Created August 31, 2018 11:54 — forked from moskrc/validators.py
Validator for files, checking the size, extension and mimetype. Modified to work with Django 2.0.6 and Python 3.6.4
from os.path import splitext
import mimetypes
from django.core.exceptions import ValidationError
from django.template.defaultfilters import filesizeformat
from django.utils.translation import ugettext_lazy as _
from django.utils.deconstruct import deconstructible
@deconstructible