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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>Aliased</title> | |
</head> | |
<body> | |
<example-app></example-app> | |
<script type="module" src="./dist/app.js"></script> | |
</body> | |
</html> |
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
const GENESIS_TIME = "2020-12-01T12:00:23Z" | |
const MILLISECONDS_PER_SLOT = 12000 | |
function toUTCTimestamp(time) { | |
return Date.UTC( | |
time.getUTCFullYear(), | |
time.getUTCMonth(), | |
time.getUTCDate(), | |
time.getUTCHours(), | |
time.getUTCMinutes(), |
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
{ | |
"__inputs": [ | |
{ | |
"name": "DS_PROMETHEUS", | |
"label": "Prometheus", | |
"description": "", | |
"type": "datasource", | |
"pluginId": "prometheus", | |
"pluginName": "Prometheus" | |
}, |
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
// | |
// 8% ETA: 53 minutes @ 1477.9bps | |
// 9% ETA: 27 minutes @ 2918.6bps | |
// 9% ETA: 34 minutes @ 2323.4bps | |
// 10% ETA: 34 minutes @ 2304.8bps | |
// 10% ETA: 37 minutes @ 2149.6bps | |
// 11% ETA: 36 minutes @ 2186bps | |
// 11% ETA: 35 minutes @ 2268bps | |
// 12% ETA: 30 minutes @ 2630.4bps | |
// |
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
/** | |
* Uses JavaScripts Internationalization to convert a gregorian date into | |
* an islamic hijri date. The W3C Spec included a format "ca-islamic" which | |
* makes this all happen. | |
*/ | |
export function getHijriDate(date = new Date()) { | |
const locale = navigator.language | |
return new Intl.DateTimeFormat(locale + '-u-ca-islamic', { | |
day: 'numeric', | |
month: 'long', |
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
{ | |
"annotations": { | |
"list": [ | |
{ | |
"builtIn": 1, | |
"datasource": "-- Grafana --", | |
"enable": true, | |
"hide": true, | |
"iconColor": "rgba(0, 211, 255, 1)", | |
"name": "Annotations & Alerts", |
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
{ | |
"annotations": { | |
"list": [ | |
{ | |
"builtIn": 1, | |
"datasource": "-- Grafana --", | |
"enable": true, | |
"hide": true, | |
"iconColor": "rgba(0, 211, 255, 1)", | |
"name": "Annotations & Alerts", |
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
""" | |
Originally developed by https://github.com/pietjepuk2 | |
Ported to Prysm by https://twitter.com/mohamedmansour | |
Support my gitcoin https://gitcoin.co/mohamedmansour | |
""" | |
import json | |
import math | |
import time | |
import urllib | |
import sys |
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
# Copyright (c) 2017 The Chromium Authors. All rights reserved. | |
# Use of this source code is governed by a BSD-style license that can be | |
# found in the LICENSE file. | |
""" | |
This script converts two %time% compatible strings passed to it into seconds, | |
subtracts them, and prints the difference. That's it. It's used by timeit.bat. | |
""" | |
from __future__ import print_function |
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
{ | |
// Use IntelliSense to learn about possible attributes. | |
// Hover to view descriptions of existing attributes. | |
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"type": "chrome", | |
"request": "launch", | |
"name": "Debug", |
NewerOlder