Skip to content

Instantly share code, notes, and snippets.

[
"34.73.0.0/16",
"34.74.0.0/16",
"35.100.0.0/14",
"35.104.0.0/13",
"35.112.0.0/12",
"35.128.0.0/9",
"104.1.1.1/32",
"104.1.1.2/31",
"104.1.1.4/30",
# HELP app1_parse_errors_total Total number of log file lines that could not be parsed
# TYPE app1_parse_errors_total counter
app1_parse_errors_total 0
# HELP go_gc_duration_seconds A summary of the GC invocation durations.
# TYPE go_gc_duration_seconds summary
go_gc_duration_seconds{quantile="0"} 0.0005835
go_gc_duration_seconds{quantile="0.25"} 0.0005835
go_gc_duration_seconds{quantile="0.5"} 0.000606
go_gc_duration_seconds{quantile="0.75"} 0.000606
go_gc_duration_seconds{quantile="1"} 0.000606
@adambisek
adambisek / detect app installed in browser
Last active May 7, 2019 19:09 — forked from mcxiaoke/index.html
detect app installed in browser
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>App Redirection</title>
</head>
<body>
<!-- iframe used for attempting to load a custom protocol -->
<iframe style="display:none" height="0" width="0" id="loader"></iframe>
// @flow
import React from 'react'
export default class Router extends React.PureComponent {
constructor(props) {
super(props)
this.state = {}
}
query findByUrl($url: String!) {
url(url: $url) {
httpStatusCode
httpStatus
title
url
httpHeaders
... on UrlStatus401Unauthorized {
realm
}
{
"data":{
"url":{
"httpStatusCode":200,
"httpStatus":"200 OK",
"title":"My page title",
"url":"/last-minute/",
"httpHeaders":null,
"adgenPageAplCode":"last-minute",
"template":"LAST_MINUTE",
@adambisek
adambisek / vscode-setup.md
Created March 8, 2018 13:23 — forked from viktorbezdek/vscode-setup.md
Useful VSCode extensions/settings for React Development

Useful VSCode extensions/settings for React Development

Extensions

  • CoenraadS.bracket-pair-colorizer
  • DavidAnson.vscode-markdownlint
  • DeepScan.vscode-deepscan
  • Dennitz.vscode-generact
  • EditorConfig.EditorConfig
  • GregorBiswanger.package-watcher
"scripts": {
"commit": "git cz",
"precommit": "yarn lint:diff",
"commitmsg": "commit-message-validator",
"lint": "eslint ./src/ & stylelint ./src/**/*.scss",
"lint:diff": "lint-staged"
},
"lint-staged": {
"src/**/*.js": [ "eslint" ],
"src/**/*.jsx": [ "eslint" ],
module.exports = {
types: [
{ value: 'feat', name: 'feat: A new feature' },
{ value: 'bug', name: 'bug: A bug fix' },
{ value: 'hotfix', name: 'fix: A hotfix' },
{ value: 'docs',name: 'docs:Documentation only changes' },
],
messages: {
type: 'Select the type of change that you\'re committing:',
scope: 'Denote the SCOPE of this change (optional):',
import faker from 'faker';
import { ApolloClient } from 'react-apollo';
import MockNetworkInterface from 'apollo-mocknetworkinterface';
const createResponse = (request) => { // pure function returning data
console.log('creating mocked response for request:', request); // eslint-disable-line no-console
// will log: creating mocked response for request: { query: { kind: 'Document' ...
return {
data: {
component: {