Skip to content

Instantly share code, notes, and snippets.

View iamwebwiz's full-sized avatar

Ezekiel Oladejo iamwebwiz

View GitHub Profile
@iamwebwiz
iamwebwiz / minumumSwaps.js
Created August 28, 2019 09:08
A function that find the minimum number of swaps required to sort an unordered array of unique integers into ascending order
/**
* Function to get the minumum swaps required to
* sort an unordered array of unique integers in
* ascending order
*
* @param Array arr
* @returns Number
*/
const minimumSwaps = arr => {
'sendgrid' => [
'api_key' => env('SENDGRID_API_KEY'),
],
@iamwebwiz
iamwebwiz / .env_modified
Created August 14, 2018 02:25
modified .env file
MAIL_DRIVER=sendgrid
MAIL_HOST=smtp.sendgrid.net
MAIL_PORT=587
MAIL_USERNAME=sendgrid_username
MAIL_PASSWORD=sendgrid_password
MAIL_ENCRYPTION=tls
SENDGRID_API_KEY=sendgrid_api_key
'providers' => [
Sichikawa\LaravelSendgridDriver\SendgridTransportServiceProvider::class
];
@iamwebwiz
iamwebwiz / .env
Last active August 14, 2018 02:20
Environment variables configuration for sendgrid
MAIL_DRIVER=sendgrid
MAIL_HOST=smtp.sendgrid.net
MAIL_PORT=587
MAIL_USERNAME=sendgrid_username
MAIL_PASSWORD=sendgrid_password
MAIL_ENCRYPTION=tls