TTFB test, monitoring, api, performance testing
Queue/workflows processing https://temporal.io/
TTFB test, monitoring, api, performance testing
Queue/workflows processing https://temporal.io/
/*Parses ICU messages format https://messageformat.github.io/messageformat/guide/ | |
like | |
{from} - {to} {results, plural, | |
one { # result } | |
many { # results } | |
} text {vr} rmm | |
{s, select, | |
man { He is "#"#"#" } | |
woman { She is # } | |
} |
import { promises } from "fs"; | |
import crypto from "crypto"; | |
import path from "path"; | |
import { print, parse } from "graphql"; | |
const plugin = { | |
name: "relay", | |
setup: build => { | |
build.onLoad({ filter: /\.tsx$/, namespace: "" }, async args => { | |
let contents = await promises.readFile(args.path, "utf8"); |
This gist is a submission for a lightning talk on the ReactiveConf 2018.
const stream = require('stream') | |
const cache = new Map() // you might wanna use an lru here | |
function createCacheStream (url) { | |
const buf = [] | |
return stream.Transform({ | |
transform: function (data, enc, cb) { | |
buffer.push(data) | |
cb(null, data) | |
}, |
class Frame extends Component { | |
componentDidMount() { | |
this.iframeHead = this.node.contentDocument.head | |
this.iframeRoot = this.node.contentDocument.body | |
this.forceUpdate() | |
} | |
render() { | |
const { children, head, ...rest } = this.props | |
return ( |
{ | |
"version": 8, | |
"name": "Qwant Style Basic", | |
"metadata": { | |
"mapbox:autocomposite": false, | |
"mapbox:type": "template", | |
"maputnik:renderer": "mbgljs", | |
"openmaptiles:version": "3.x" | |
}, | |
"center": [ |
#!/bin/bash | |
# Copyright © 2017 Google Inc. | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software |
// @flow | |
declare module 'react-relay' { | |
declare export type RecordState = 'EXISTENT' | 'NONEXISTENT' | 'UNKNOWN'; | |
declare export type onCompleted = (response: ?Object, errors: ?Array<PayloadError>) => void | |
declare export type onError = (error: Error) => void | |
declare export type CommitOptions = { | |
onCompleted: onCompleted, |