This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
public function isBot() { | |
$bots = array( | |
'googlebot', | |
'adsbot-google', | |
'feedfetcher-google', | |
'yahoo', | |
'lycos', | |
'bloglines subscriber', | |
'dumbot', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |