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
/
# 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 / 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",
<?php
return [
'Abia' => [
'Aba',
'Arochukwu',
'Umuahia',
],
'Adamawa' => [
'Jimeta',
@chrisidakwo
chrisidakwo / apache2_vhost_config_vuejs_dist
Created July 14, 2021 06:31 — forked from 7rin0/apache2_vhost_config_vuejs_dist
VueJS: Apache / Nginx vhost config examples
<VirtualHost *:80>
DocumentRoot "/home/dev/server/project/dist/"
ServerName vuejs.project.local
<Directory /home/dev/server/project/dist/>
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Require all granted
Order allow,deny
allow from all
@chrisidakwo
chrisidakwo / nvmlink
Created November 10, 2021 15:44 — forked from MeLlamoPablo/nvmlink
Creates a symlink to /usr/bin/node after using nvm
@chrisidakwo
chrisidakwo / README.md
Created May 15, 2022 15:33 — forked from jimothyGator/README.md
Nginx configuration for Mac OS X with Homebrew, using sites-enabled directory.
mkdir -p /usr/local/etc/nginx/sites-{enabled,available}
cd /usr/local/etc/nginx/sites-enabled
ln -s ../sites-available/default.conf
ln -s ../sites-available/default-ssl.conf

File locations:

  • nginx.conf to /usr/local/etc/nginx/
  • default.conf and default-ssl.conf to /usr/local/etc/nginx/sites-available
  • homebrew.mxcl.nginx.plist to /Library/LaunchDaemons/

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 / 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