Skip to content

Instantly share code, notes, and snippets.

View CovenantJunior's full-sized avatar
:octocat:
Debugging code, battling semicolons, multitasking with a cup of coffee, NBD 💪

Tea CovenantJunior

:octocat:
Debugging code, battling semicolons, multitasking with a cup of coffee, NBD 💪
View GitHub Profile
@CovenantJunior
CovenantJunior / index.html
Created January 4, 2022 09:28
Todost - Todo
<html lang="en" >
<head>
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-57635392-5"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-57635392-5');
</script>
<?php
public function isBot() {
$bots = array(
'googlebot',
'adsbot-google',
'feedfetcher-google',
'yahoo',
'lycos',
'bloglines subscriber',
'dumbot',
@CovenantJunior
CovenantJunior / ActiveProfilesComponent.js
Created June 26, 2023 15:13
ActiveProfiles Component for Commentor Information Modal (Improved)
import React from 'react';
export const ActiveProfiles = ({ profiles, onLaunchProfile }) => {
const active = profiles.filter(profile => {
const lastSeenTime = new Date(profile.last_seen_time);
const withinLast24Hours = lastSeenTime > new Date(Date.now() - 24 * 60 * 60 * 1000);
return !profile.disabled && withinLast24Hours;
});
const filteredActive = active.filter(profile => profile.email !== window.currentUser.email);