Skip to content

Instantly share code, notes, and snippets.

View codeInBit's full-sized avatar

Olanrewaju Abidogun codeInBit

View GitHub Profile
@codeInBit
codeInBit / csv_to_array.php
Created November 22, 2018 12:50 — forked from jaywilliams/csv_to_array.php
Convert a comma separated file into an associated array.
<?php
/**
* Convert a comma separated file into an associated array.
* The first row should contain the array keys.
*
* Example:
*
* @param string $filename Path to the CSV file
* @param string $delimiter The separator used in the file
* @return array
@codeInBit
codeInBit / Response.php
Created July 30, 2021 08:41 — forked from jeffochoa/Response.php
Laravel HTTP status code
<?php
// This can be found in the Symfony\Component\HttpFoundation\Response class
const HTTP_CONTINUE = 100;
const HTTP_SWITCHING_PROTOCOLS = 101;
const HTTP_PROCESSING = 102; // RFC2518
const HTTP_OK = 200;
const HTTP_CREATED = 201;
const HTTP_ACCEPTED = 202;
@codeInBit
codeInBit / cloudSettings
Last active July 18, 2022 16:37
Visual Studio Code Settings Sync Gist
{"lastUpload":"2021-09-12T12:37:55.342Z","extensionVersion":"v3.4.3"}