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
<?php
return array(
"AF" => "+93",
"AL" => "+355",
"DZ" => "+213",
"AS" => "+1",
"AD" => "+376",
"AO" => "+244",
"AI" => "+1",
@chrisidakwo
chrisidakwo / Map.Helpers
Created July 2, 2018 15:51 — forked from kipcole9/Map.Helpers
Helpers for Elixir Maps: underscore, atomise and stringify map keys
defmodule Map.Helpers do
@moduledoc """
Functions to transform maps
"""
@doc """
Convert map string camelCase keys to underscore_keys
"""
def underscore_keys(nil), do: nil
@chrisidakwo
chrisidakwo / install-node.sh
Created August 31, 2018 11:24
Just another bash script to easily install node, npm and yarn on Ubuntu/Mac using nvm
#!/bin/sh
set -e
# Install node and npm via nvm - https://github.com/creationix/nvm
# Run this script like - bash script-name.sh
# Define versions
INSTALL_NODE_VER=10
INSTALL_NVM_VER=0.33.11
INSTALL_YARN_VER=1.7.0
@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
@chrisidakwo
chrisidakwo / mailgun-config.md
Created September 14, 2018 06:46 — forked from mrabbani/mailgun-config.md
Laravel Mailgun Setup
#!/usr/bin/env bash
export DEBIAN_FRONTEND=noninteractive
# Update Package List
apt-get update
# Update System Packages
apt-get -y upgrade
@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",
@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.json
Last active April 26, 2024 22:55
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",
# 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