Skip to content

Instantly share code, notes, and snippets.

View olabamipetaiwo's full-sized avatar

Olabamipe Taiwo olabamipetaiwo

View GitHub Profile
@olabamipetaiwo
olabamipetaiwo / string.js
Created February 21, 2024 15:18
States and Local Gov
export const Nigerian_States = [
"Abia",
"Adamawa",
"Akwa Ibom",
"Anambra",
"Bauchi",
"Bayelsa",
"Benue",
"Borno",
"Cross River",
var volumeSetup = function () {
// setup volume unit interface
var volumeUnit = window.APP.util.getSettings("ticker_vol_unit").toUpperCase();
let element = null;
switch (volumeUnit) {
case "FIRSTCCY":
element = $("#tickervolccy_0");
break;
case "USD":
const generateURL = (params) => {
const BASE_URL = "http://testurl.bitfinx.com/";
const generatedURL = new URL(BASE_URL);
Object.keys(params).map((key) => {
params[key] &&
params[key].toString().length > 0 &&
generatedURL.searchParams.append(key, params[key]);
return true;
});
function laptopRentals(times) {
if (times.length === 0) return 0;
times.sort((a, b) => a[0] - b[0]);
let usedLaptops = 0;
const startTimes = times.map((a) => a[0]).sort((a, b) => a - b);
const endTimes = times.map((a) => a[1]).sort((a, b) => a - b);
let start = 0;
let end = 0;
import { React, Suspense, useState, useEffect } from "react";
const SuspensefulUserProfile = ({ userId }) => {
const [data, setData] = useState({});
useEffect(() => {
fetchUserProfile(userId).then((profile) => setData(profile));
}, [userId]);
@olabamipetaiwo
olabamipetaiwo / Seat Reservation
Created July 10, 2021 21:56 — forked from Niranjan24491/Seat Reservation
Seat Reservation in Javascript
<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
<head>
<title>Online seat reservation</title>
<meta charset="UTF-8">
@olabamipetaiwo
olabamipetaiwo / index.html
Last active September 23, 2020 00:34
LearnStack (A signup page)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title> LearnWorld --- Get Started</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<style>
* {
margin: 0;
@olabamipetaiwo
olabamipetaiwo / index.html
Last active September 21, 2020 12:23
LearnStack Sign up page built with HTML,CSS,Javascript
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<link rel="stylesheet" href="./main.css">
<title>LearnWorld</title>
</head>
<body>
@olabamipetaiwo
olabamipetaiwo / bootstrap.min.css
Last active September 15, 2020 02:29
AcademyStack PHP
/*!
* Bootstrap v4.0.0 (https://getbootstrap.com)
* Copyright 2011-2018 The Bootstrap Authors
* Copyright 2011-2018 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/:root{--blue:#007bff;--indigo:#6610f2;--purple:#6f42c1;--pink:#e83e8c;--red:#dc3545;--orange:#fd7e14;--yellow:#ffc107;--green:#28a745;--teal:#20c997;--cyan:#17a2b8;--white:#fff;--gray:#6c757d;--gray-dark:#343a40;--primary:#007bff;--secondary:#6c757d;--success:#28a745;--info:#17a2b8;--warning:#ffc107;--danger:#dc3545;--light:#f8f9fa;--dark:#343a40;--breakpoint-xs:0;--breakpoint-sm:576px;--breakpoint-md:768px;--breakpoint-lg:992px;--breakpoint-xl:1200px;--font-family-sans-serif:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";--font-family-monospace:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace}*,::after,::before{box-sizing:border-box}html{font-family:sans-serif;line-height:1.15;