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-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
@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
/
# 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).
@chrisidakwo
chrisidakwo / tinder-api-documentation.md
Created April 17, 2023 12:47 — forked from rtt/tinder-api-documentation.md
Tinder API Documentation

Tinder API documentation

Note: this was written in April/May 2014 and the API may has definitely changed since. I have nothing to do with Tinder, nor its API, and I do not offer any support for anything you may build on top of this. Proceed with caution

http://rsty.org/

I've sniffed most of the Tinder API to see how it works. You can use this to create bots (etc) very trivially. Some example python bot code is here -> https://gist.github.com/rtt/5a2e0cfa638c938cca59 (horribly quick and dirty, you've been warned!)

@chrisidakwo
chrisidakwo / README.md
Created April 10, 2023 13:06 — forked from rstacruz/README.md
Setting up Babel and TypeScript

Install Babel 7 and TypeScript

yarn add --dev \
  @babel/core \
  @babel/cli \
  @babel/preset-env \
  @babel/preset-typescript \
  typescript

Don't forget to set PHP Code Style to PSR-2 in your PHPStorm


1) Add Code Sniffer to composer.json file

composer require squizlabs/php_codesniffer
@chrisidakwo
chrisidakwo / nigerian-cities.json
Last active July 8, 2022 06:10
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",
@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",