Beeple | The First 5000 Days
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 NUMERALS = [ | |
{ value: 1000000000000000000000, str: 'sextillion' }, | |
{ value: 1000000000000000000, str: 'quintillion' }, | |
{ value: 1000000000000000, str: 'quadrillion' }, | |
{ value: 1000000000000, str: 'trillion' }, | |
{ value: 1000000000, str: 'billion' }, | |
{ value: 1000000, str: 'million' }, | |
{ value: 1000, str: 'thousand' }, | |
{ value: 100, str: 'hundred' }, | |
{ value: 90, str: 'ninety' }, |
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
// AVN TOKEN | |
pragma solidity ^0.6.12; | |
// SPDX-License-Identifier: MIT | |
interface IERC20 { |
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 { LOG_LEVEL, APP_ENV } = process.env; | |
const logFormatter = APP_ENV === 'dev' | |
? format.combine( | |
winston.format.timestamp(), | |
winston.format.colorize(), | |
winston.format.printf((meta: any) => { | |
const { level, message, timestamp, namespace, stack, ...restMeta } = meta; | |
const displayNamespace = namespace ? `[${namespace}] -` : ''; | |
const stackMessage = stack ? `\n${stack}` : ''; |
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
resources: | |
- type: compute.v1.instance | |
name: vm-test | |
properties: | |
zone: {{ properties["zone"] }} | |
machineType: https://www.googleapis.com/compute/v1/projects/{{ env["project"] }}/zones/{{ properties["zone"] }}/machineTypes/f1-micro | |
# For examples on how to use startup scripts on an instance, see: | |
# https://cloud.google.com/compute/docs/startupscript | |
metadata: | |
items: |
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 { createLogger, format, transports } = require('winston'); | |
const { combine, timestamp, printf, colorize, splat } = format; | |
const myFormat = printf((info) => { | |
if (info.meta && info.meta instanceof Error) { | |
return `${info.timestamp} ${info.level} ${info.message} : ${info.meta.stack}`; | |
}else if(info.stack){ | |
return `${info.timestamp} ${info.level} ${info.message} : ${info.stack}`; | |
} | |
return `${info.timestamp} ${info.level}: ${info.message}`; |
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 fetch = require('node-fetch'); | |
async function getContent(url, originRequest) { | |
console.log('Getting content from: ', url); | |
const { redirectUrl } = originRequest.query; | |
const { host, ...remainingHeaders } = originRequest.headers; | |
return fetch(url, { | |
method: originRequest.method, | |
headers: { ...remainingHeaders}, | |
rejectUnauthorized: false |
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
BranchA : // Commit verything | |
BranchA : git fetch origin master:master | |
BranchA : git rebase master | |
// If no conflicts, you are lucky | |
// possible there are some conflicts ==> RESOLVE theme | |
BranchA : git add all_conflicts_files | |
BranchA: git rebase --continue | |
The tag 'amp-accordion extension .js script' appears more than once in the document. This will soon be an error.
The tag 'amp-carousel extension .js script' appears more than once in the document. This will soon be an error.
AMPforWP is using AMP as dependencies, AMP will add amp-scripts base on the Post content somehow at some senarios, it cant add the amp-scripts, so missing script error will appear on the AMP validator.