Skip to content

Instantly share code, notes, and snippets.

@raininglemons
raininglemons / getAffiliate.js
Last active November 28, 2017 14:35
seo script example (as used on foxy)
// @flow
import store from '../store';
import getCookie from './Cookie/get';
export default () => {
const { isLoggedIn, profile } = store.get('player').getState();
if (isLoggedIn) {
if (!profile || (!profile.id && !profile.tag)) {
return null;
@raininglemons
raininglemons / index.html
Created July 26, 2018 10:52
World Clock v2
<div id="app"></div>
const intervals = (() => {
/**
setInterval watcher
**/
const setIntervalCounter = [];
const setIntervalMap = {};
let startTime = Date.now();
let lastTime = startTime;
setInterval(() => {
const now = Date.now();