Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Oyebanji Olayemi Afolarin BigUncleYemi

🎯
Focusing
View GitHub Profile
View cloudinary.js
const createCloudinary = (cloudName, unsignedUploadPreset) => ({
process: (fieldName, file, metadata, load, error, progress, abort) => {
// `fieldName` and `meta` are not used for now
const url = `https://api.cloudinary.com/v1_1/${cloudName}/upload`;
const xhr = new XMLHttpRequest();
const formData = new FormData();
@BigUncleYemi
BigUncleYemi / nibssStatusCodeMeaning.js
Last active Nov 24, 2020
a function to get a nibss status code meaning .
View nibssStatusCodeMeaning.js
export const nibssStatusCodeMeaning = statusCode => {
switch (statusCode) {
case "00":
return "Completed successfully";
case "01":
return "Refer to card issuer";
case "02":
return "Refer to card issuer, special condition";
case "03":
return "Invalid merchant";
@BigUncleYemi
BigUncleYemi / media-query.css
Created Feb 24, 2019 — forked from gokulkrishh/media-query.css
CSS Media Queries for Desktop, Tablet, Mobile.
View media-query.css
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
//CSS
@BigUncleYemi
BigUncleYemi / heroku-remote.sh
Created Nov 15, 2018 — forked from randallreedjr/heroku-remote.md
Add a Heroku remote to an existing git repo
View heroku-remote.sh
$ git remote add staging https://git.heroku.com/staging-app.git
$ git remote add heroku https://git.heroku.com/app.git
@BigUncleYemi
BigUncleYemi / App.css
Last active Nov 10, 2018
creating a basic todo app with create react app
View App.css
.App {
text-align: center;
}
.App-logo {
animation: App-logo-spin infinite 20s linear;
height: 20vmin;
}
@BigUncleYemi
BigUncleYemi / create-react-app-on-heroku.sh
Created Jan 12, 2018 — forked from mars/create-react-app-on-heroku.sh
Create a React app & deploy to Heroku
View create-react-app-on-heroku.sh
## Global install of the app generator
npm install -g create-react-app
## Setup the app (first-time only)
create-react-app my-app
cd my-app
git init
# Create the Heroku app; requires free account at https://www.heroku.com/
heroku create -b https://github.com/heroku/heroku-buildpack-static.git
@BigUncleYemi
BigUncleYemi / manifest.json
Created Jan 12, 2018 — forked from ericelliott/manifest.json
Sample manifest.json
View manifest.json
{
"name": "My Progressive Web Application",
"short_name": "Progressive",
"start_url": "/?home=true",
"icons": [
{
"src": "/icons/icon36.png",
"sizes": "36x36",
"type": "image/png"
},
@BigUncleYemi
BigUncleYemi / manifest.json
Created Jan 12, 2018 — forked from ericelliott/manifest.json
Sample manifest.json
View manifest.json
{
"name": "My Progressive Web Application",
"short_name": "Progressive",
"start_url": "/?home=true",
"icons": [
{
"src": "/icons/icon36.png",
"sizes": "36x36",
"type": "image/png"
},