Skip to content

Instantly share code, notes, and snippets.

View spiderocious's full-sized avatar
👋
Software Engineer

Feranmi Adeniji spiderocious

👋
Software Engineer
View GitHub Profile
/* eslint-disable @typescript-eslint/no-explicit-any */
const CostCalculatorEntryPointModal = () => {
return (
<div
className={`fixed inset-0 flex items-center justify-center pointer-events-auto z-50 w-screen h-screen bg-[#313e4c]`}
>
<div className={`p-2 bg-[#8b8b93] w-3/4 rounded-lg`}>
<ContentCalculatorIntro
title={`Cost Calculator`}
logo={`https://cdn-icons-png.flaticon.com/512/1021/1021950.png`}
<template>
<div class="min-h-screen bg-gray-50 lg:pl-64">
<Sidebar />
<Navbar />
<!-- Main Content -->
<main
class="max-w-7xl mx-auto px-4 py-6 sm:px-6 lg:px-8 flex flex-col gap-6"
:v-if="!loading"
>
<template>
<div class="min-h-screen flex">
<!-- Left side - Auth form -->
<div class="w-full lg:w-1/2 p-8 flex items-center justify-center">
<div class="w-full max-w-md">
<!-- Logo -->
<div>
<div class="mb-8 text-primary text-6xl font-extrabold gap-4">SEEDR
</div>
</div>
// constants are assigned to magic numbers
// dependency injection
function calculateCircleCircumference = (radius) => {
// return 2 pie r
// return 2 * 3.142 * radius
const pie = 3.142
return 2 * pie * radius
}
import { Spin } from "antd";
import { Link } from "react-router-dom";
const CustomButton = ({
label,
onClick,
loading,
className,
type,
children,
function maximumNumberAfterSwap(number) {
const numberString = number.toString().split('');
let maxNumArray = [...numberString]; // Clone the original array
for (let i = 0; i < numberString.length; i++) {
for (let j = i + 1; j < numberString.length; j++) {
// Swap two digits
[numberString[i], numberString[j]] = [numberString[j], numberString[i]];
// Compare and update if the swapped number is greater
//functions
void main() {
int answer = quadAnswer(6,1098432484848,109843248484848);
int age = getAge(2022, 1960);
String firstName = 'faith';
String lastName = 'morebise';
String fullName = firstName + ' ' + lastName;
<html>
<head>
<title>
</title>
</head>
<body>
<div class="rect1" id="firstrect">
<div class="rect2" id="rect2">
<div class="rect3" id="rect3">
<div className="sharecontent">
<div className="sharetext">
Share link to <i className="closebtn fa fa-close" onClick={this.toggleModal}></i>
</div>
<div className="icons">
<a href="https://wa.me/?text=Please send me money this Easter through Moneymie so I can get N2,000 extra. See details here: https://bit.ly/easter2k-03" target="_blank" rel="noopener noreferrer">
<img src={Whatsapp} width="50" height="50"/>
</a>
<a href="https://twitter.com/intent/tweet?text=Please send me money this Easter through Moneymie so I can get N2,000 extra. See details here:&url=https://bit.ly/easter2k-02" target="_blank" rel="noopener noreferrer">