This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
openapi: 3.0.0 | |
info: | |
title: 'Monnify API ' | |
description: "# Overview\nMonnify API Collection is a collection of all endpoints that merchants and developers can take advantage of to build financial solutions in Nigeria. \n\n# ENVIRONMENTS & CREDENTIALS\nTEST - https://sandbox.monnify.com\n\n\nLIVE - https://api.monnify.com\n\n\n\n\n\n# PUBLIC CREDENTIALS:\n\n\n\nAPIKEY: MK_TEST_GC3B8XG2XX\n\nSecret Key:\tA663NRZA544DDPEM7KDN7Z8HRV6YXD8S\n\nContract Code:\t5867418298" | |
version: 1.0.0 | |
servers: | |
- url: undefined://{{monnify_base_url}} | |
- url: https://sandbox.monnify.com | |
tags: | |
- name: Authentication |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//response from endpoint | |
const schedules = [ | |
{ | |
id: 'ef0633cf-0a0f-4bce-b337-3319fe65be88', | |
week_number: 1, | |
start_date: '2024-08-12', | |
end_date: '2024-08-18', | |
cohort_id: '3330e7dc-75c5-452d-ace9-8a4acfaef48d', | |
}, | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Design a webpage based on the spec below using React + Tailwind.css to display the data below. | |
// Design Spec: https://www.figma.com/file/7gL0IbxB9dqhBSZAH4am4v/InternshipTakeHomeDesign?type=design&node-id=0%3A1&mode=design&t=ma7uNppJpMIc0TIP-1 | |
// Optional: Display the score of each player as shown in the SetA, Set B, Set C and Set D nodes of the match object. | |
[ | |
{ | |
"_id": "64aee214dc9aa671f6403028", | |
"_club": "6484be0d6d1434cb280502fb", | |
"_tournament": "64aee078dc9aa671f6402e6f", | |
"challenger": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function isPowerOf2(number) { | |
// If the number is 0, it is not a power of 2 | |
if (number === 0) { | |
return false; | |
} | |
// Check if the number is divisible by 2 without a remainder | |
while (number % 2 === 0) { | |
number = number >> 1; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: api-deployment | |
on: | |
push: | |
branches: | |
- master | |
- stagging | |
jobs: | |
build-staging: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"hosting": { | |
"public": "public", | |
"ignore": [ | |
"firebase.json", | |
"**/.*", | |
"**/node_modules/**" | |
], | |
"rewrites": [{ | |
"source": "**", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let Cache_Name = `Auwsum-Kitchen-1`; | |
let filesToCache = [ | |
'/', | |
'/index.html', | |
'/styles/bootstrap.min.css', | |
'/styles/app.css', | |
'/scripts/jquery-3.3.1.slim.min.js', | |
'/scripts/bootstrap.min.js', | |
'/scripts/services.js', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | |
<title>AuwSum Kitchen</title> | |
<meta | |
name="description" | |
content="This app gives users the ability to check and order food items and get it delivered to their door" | |
/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict"; | |
const categoriesContainer = document.getElementById("categories-container"); | |
window.addEventListener("DOMContentLoaded", () => { | |
getCategories(); | |
}); | |
const createCategoryHTML = category => { | |
const categoryPath = document.createElement("a"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict"; | |
/** | |
* the config object contains secrets needed for identification and interaction | |
* with firebase/firestore. | |
* ALWAYS STORE THIS SECRETS IN A PROTECTED FILE AND DON'T SEND IT TO YOUR REPOSITORY. | |
* THIS METHOD IS ONLY USED IN THE CASE OF AN OPTION PROJECT LIKE THIS | |
*/ | |
const config = { | |
apiKey: "AIzaSyBcd5WmLL4Bwyh1cj0zkbHcBp8LZLg_rMY", | |
databaseURL: "https://auwsum-kitchen.firebaseio.com", |
NewerOlder