This file contains hidden or 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
// @flow weak | |
function now() { | |
return +new Date(); // timestamp in ms | |
} | |
// Count the number of events sent over the last period of time. | |
const count = { | |
minute: { | |
slot: 0, |
This file contains hidden or 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
// @flow weak | |
import raven from 'raven-js'; | |
import config from 'config'; | |
const SENTRY_DSN = 'https://[email protected]/YYYY'; | |
function sendQueue() { | |
const sentryOffline = JSON.parse(window.localStorage.sentryOffline); |
This file contains hidden or 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
'use strict'; | |
var inputs = readline().split(' '); | |
var players = { | |
list: [], | |
meId: parseInt(inputs[3]), // id of my player (0 = 1st player, 1 = 2nd player, ...) | |
me: {}, |
NewerOlder