Skip to content

Instantly share code, notes, and snippets.

View bishoplee's full-sized avatar
💭
I may be slow to respond.

Olaleye Olalekan Oladipo bishoplee

💭
I may be slow to respond.
View GitHub Profile
@bishoplee
bishoplee / custom-animated-links-with-psuedo-elements.markdown
Created March 19, 2022 16:20
Custom Animated Links with Psuedo Elements
@bishoplee
bishoplee / Poll.jsx
Created January 16, 2022 07:12 — forked from adrianhajdin/Poll.jsx
Agora
import React, { useState, useEffect, useContext } from "react";
import Modal from 'react-modal';
import { Line } from 'rc-progress';
import { Text } from 'react-native';
import chatContext, {controlMessageEnum} from './ChatContext';
import { PollContext } from './PollContext';
import styles from './pollStyles';
@bishoplee
bishoplee / index.html
Last active March 20, 2020 16:55
Using CSS Grid to build a page layout (Atom IDE like)
<div class="page">
<!--Sidebar-->
<div class="sidebar">
<div class="panel">
<div class="panel-header ">Project</div>
<!--Tree-->
<div class="panel-body">
@bishoplee
bishoplee / grid-list-toggle.markdown
Created March 20, 2020 16:54
Grid / List toggle
@bishoplee
bishoplee / index.html
Created December 18, 2019 14:54
lite-youtube
<lite-youtube videoid="ogfYd705cRs" style="background-image: url('https://i.ytimg.com/vi/ogfYd705cRs/hqdefault.jpg');">
<div class="lty-playbtn"></div>
</lite-youtube>
@bishoplee
bishoplee / index.html
Created August 4, 2019 00:45
Upload Play & Pause animation
<div class="upload">
<div class="text">
<strong><span>Uploading</span> 3 files</strong>
<div>
<small>%</small>
<div>
<small>
<span data-seconds>0</span> seconds left
</small>
<small>Paused</small>
@bishoplee
bishoplee / luhn.js
Created July 16, 2019 20:42 — forked from ShirtlessKirk/luhn.js
Luhn validation algorithm
/**
* Luhn algorithm in JavaScript: validate credit card number supplied as string of numbers
* @author ShirtlessKirk. Copyright (c) 2012.
* @license WTFPL (http://www.wtfpl.net/txt/copying)
*/
var luhnChk = (function (arr) {
return function (ccNum) {
var
len = ccNum.length,
bit = 1,
@bishoplee
bishoplee / validate_credit_card.js
Created July 13, 2019 20:08 — forked from DiegoSalazar/validate_credit_card.js
Luhn algorithm in Javascript. Check valid credit card numbers
// takes the form field value and returns true on valid number
function valid_credit_card(value) {
// accept only digits, dashes or spaces
if (/[^0-9-\s]+/.test(value)) return false;
// The Luhn Algorithm. It's so pretty.
var nCheck = 0, nDigit = 0, bEven = false;
value = value.replace(/\D/g, "");
for (var n = value.length - 1; n >= 0; n--) {
@bishoplee
bishoplee / index.html
Created June 27, 2019 15:17
Subvisual - Animated Logo
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg class="NavLogo NavLogo--color" id="NavLogo-color" width="442px" height="90px" viewBox="0 0 2210 446" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">
<!-- Generator: Sketch 3.3.2 (12043) - http://www.bohemiancoding.com/sketch -->
<title>Group + SUBVISUAL 52 Copy 66</title>
<desc>Created with Sketch.</desc>
<defs>
<linearGradient x1="72.2712425%" y1="39.1519547%" x2="-4.60414488%" y2="39.1519547%" id="NavLogo-linearGradient-1">
<stop stop-color="#517F96" offset="0%"></stop>
<stop stop-color="#466D81" offset="100%"></stop>
</linearGradient>
@bishoplee
bishoplee / index.html
Last active March 13, 2019 08:49
Scooped Selector | CSS-only cut-out tab navigation | @keyframers 1.16.0
<input type="radio" name="choice" id="nav-1" checked>
<input type="radio" name="choice" id="nav-2">
<input type="radio" name="choice" id="nav-3">
<div id="app">
<nav class="ui-nav">
<div class="ui-bg">
<div class="ui-cutout"></div>
<div class="ui-dot"></div>
</div>