Skip to content

Instantly share code, notes, and snippets.

View saminwankwo's full-sized avatar

Nwankwo Samuel saminwankwo

View GitHub Profile
// src/components/Navbar.js
import React from 'react';
const Navbar = () => {
return (
<nav className="bg-blue-600 sticky top-0 z-50 shadow-md">
<div className="max-w-7xl mx-auto px-2 sm:px-6 lg:px-8">
<div className="relative flex items-center justify-between h-16">
<div className="absolute inset-y-0 left-0 flex items-center sm:hidden">
@saminwankwo
saminwankwo / index.html
Created September 21, 2022 11:04 — forked from iamsaso/index.html
GraphiQL with JWT
<!DOCTYPE html>
<html>
<head>
<style>
body {
height: 100%;
margin: 0;
width: 100%;
overflow: hidden;
}
@saminwankwo
saminwankwo / file.php
Last active April 23, 2021 08:05
a simple class to convert number to ords
<?php
//simple class to convert number to words in php based on http://www.karlrixon.co.uk/writing/convert-numbers-to-words-with-php/
if ( !class_exists('NumbersToWords') ){
/**
* NumbersToWords
*/
class NumbersToWords{
public static $hyphen = '-';
public static $conjunction = ' and ';
@saminwankwo
saminwankwo / create_subdomain_cpanel.php
Created September 25, 2020 11:57 — forked from hsali/create_subdomain_cpanel.php
PHP Script to create subdomain on cpanel .
function create_subdomain($subDomain,$cPanelUser,$cPanelPass,$rootDomain) {
// $buildRequest = "/frontend/x3/subdomain/doadddomain.html?rootdomain=" . $rootDomain . "&domain=" . $subDomain;
$buildRequest = "/frontend/x3/subdomain/doadddomain.html?rootdomain=" . $rootDomain . "&domain=" . $subDomain . "&dir=public_html/subdomains/" . $subDomain;
$openSocket = fsockopen('localhost',2082);
if(!$openSocket) {
return "Socket error";
exit();
@saminwankwo
saminwankwo / fake-recent-sales-notification-popup.markdown
Created September 1, 2020 10:51
Fake Recent Sales Notification Popup

Fake Recent Sales Notification Popup

Around 85% of visitors leave an online store without buying an item. Among many reasons, lack of trust, engagement, and authenticity prevents new visitors from placing an order. Built from the concept of Social Proof, Sales Pop plugin helps you combat the 85% rate of site abandonment with recent sales notifications.

A Pen by Nwankwo Chibuike Samuel on CodePen.

License.

@saminwankwo
saminwankwo / index.html
Last active March 5, 2020 06:35
Responsive Chat Widget
<section class="avenue-messenger">
<div class="menu">
<div class="items"><span>
<a href="#" title="Minimize">&mdash;</a><br>
<!--
<a href="">enter email</a><br>
<a href="">email transcript</a><br>-->
<a href="#" title="End Chat">&#10005;</a>
</span></div>
@saminwankwo
saminwankwo / Simple Quiz App.html
Last active September 16, 2019 14:09
A simple quiz application designed in javascript
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Page Title</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
@saminwankwo
saminwankwo / flip.html
Created March 29, 2019 23:43
A simple flip card, or profile flip page
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body {
font-family: Arial, Helvetica, sans-serif;
}
.flip-card {