Welcome to our readme. Check out Google.
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
{ | |
"services": [ | |
{ | |
"id": 12345, | |
"slug": "label-service", | |
"name": "Label Service", | |
"docs": "https://raw.githubusercontent.com/jimthedev/example-svc-docs/master/" | |
}, | |
{ | |
"id": 91234, |
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 distr = {}; | |
let x = 1000; | |
while(x--) { | |
const nums = Array.from(crypto.getRandomValues(new Uint8Array(65536)).filter(n => n < 27).slice(0, 81)); | |
nums.forEach(n => distr[n] = distr[n] ? distr[n] + 1 : 1); | |
} | |
console.log(distr); |
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
(function (global, factory) { | |
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('whatwg-fetch'), require('graphql/language/printer'), require('redux'), require('graphql-anywhere'), require('symbol-observable'), require('apollo-link-core')) : | |
typeof define === 'function' && define.amd ? define(['exports', 'whatwg-fetch', 'graphql/language/printer', 'redux', 'graphql-anywhere', 'symbol-observable', 'apollo-link-core'], factory) : | |
(factory((global.apollo = {}),null,global.graphql_language_printer,global.Redux,global.graphqlAnywhere,global.$$observable,global.apolloLinkCore)); | |
}(this, (function (exports,whatwgFetch,graphql_language_printer,redux,graphqlAnywhere,$$observable,apolloLinkCore) { 'use strict'; | |
graphqlAnywhere = graphqlAnywhere && graphqlAnywhere.hasOwnProperty('default') ? graphqlAnywhere['default'] : graphqlAnywhere; | |
$$observable = $$observable && $$observable.hasOwnProperty('default') ? $$observable['default'] : $$observable; | |
function isStringValue(value) { |
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 this at https://developer.github.com/v4/explorer/ | |
query { | |
user(login: "bahmutov") { | |
repositories(first: 100) { | |
nodes { | |
description | |
repositoryTopics(first: 100) { | |
nodes { | |
topic { |
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 https = require('https') | |
const { run, send } = require('micro') | |
const getDevelopmentCertificate = require('devcert-san').default; | |
async function startServer() { | |
const PORT = process.env.PORT || 3443; | |
let ssl; | |
if (!process.env.NODE_ENV || process.env.NODE_ENV === 'development') { | |
try { |
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
javascript:(function()%7B var style %3D document.createElement(%27style%27), styleContent %3D document.createTextNode(%27%23main-content>div %7B overflow-y: visible !important%3B overflow-x: visible !important%3B white-space: normal !important%3B %7D .speaker-details %7B float: inherit !important%3B overflow: visible !important%3B %7D%27)%3B style.appendChild(styleContent )%3B var caput %3D document.getElementsByTagName(%27head%27)%3B caput%5B0%5D.appendChild(style)%3B %7D)()%3B |
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 htmlString = ` | |
<!doctype html> | |
<html lang="en" prefix="og: http://ogp.me/ns#"> | |
<head> | |
<meta charset="utf-8"> | |
<title>css</title> | |
<meta name="description" content="CSS parser / stringifier"> |
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
# Assuming your tests are in test/testcafe/index.test.js | |
# Assumes you are using this setup: objectpartners.com/2017/04/13/how-to-install-and-use-headless-chrome-on-osx/ | |
$(npm bin)/testcafe path:\''{"path":"/Applications/Google Chrome Canary.app/Contents/MacOS/Google Chrome Canary","cmd":"--headless --remote-debugging-port=9222 --disable-gpu"}'\' test/testcafe/index.test.js |
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
// Note: This is a very simple example | |
// Typically the deviceHeight would be most useful inside of a scrollview's contentContainerStyle | |
// or some other view whose parent has no height itself. minheight in react native needs a parent | |
// to have a height. | |
// | |
import React, {Component} from 'react'; | |
import { | |
Text, | |
View | |
} from 'react-native'; |