- Header and a Brief description (should match package.json)
- Example (if applicable)
- Motivation (if applicable)
- API Documentation: This will likely vary considerably from library to library.
- Installation
- Tests
- Contributors
- License
var httpProxy = require('http-proxy'); | |
// | |
// Addresses to use in the round robin proxy | |
// | |
var addresses = [ | |
{ | |
host: 'ws1.0.0.0', | |
port: 80 | |
}, |
mkdir sandbox | |
curl https://gist.github.com/gists/1159290/download -o node-sandbox.tgz | |
tar zxvf node-sandbox.tgz | |
mv gist1159290*/* sandbox/ | |
rm -rf gist1159290* | |
cd sandbox |
const puppeteer = require('puppeteer'); | |
const util = require('util'); | |
const fs = require("fs"); | |
const path = require('path'); | |
(async (url) => { | |
const browser = await puppeteer.launch(); | |
const page = await browser.newPage(); | |
await page.coverage.startCSSCoverage(); | |
await page.goto(url); |
executeMultiple | start | |
executeMultiple | end | |
executeMultipleAsync | start | |
executeMultipleAsync | end | |
executeMultiple | execute1 | |
executeMultipleAsync | execute1 | |
executeMultiple | execute2 | |
executeMultipleAsync | execute2 | |
executeMultipleAsync | callback |
@salakar, @ashoat, @indexzero, @swaagie, @3rdeden, and @msluther met today to discuss this. This is the draft proposal written up during that meeting. We plan to iterate on this over the next week and then post it into a new proposal in
react-native-community
.A recording of that meeting can be found below in MP4 format.
- Push Notification packages
- react-native-push-notification
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"/> | |
<title>es6 proxy #jsbench #jsperf</title> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script> | |
<script src="./suite.js"></script> | |
</head> | |
<body> | |
<h1>Open the console to view the results</h1> |
Start | 1 | foo | |
Start | 2 | bar | |
Start | 3 | bazz | |
End | 2 | bar | |
End | 3 | bazz | |
End | 1 | foo | |
[ 'foo', 'bar', 'bazz' ] |
ESLint support for autofix has improved considerably in the last 12 months. With jscs
being formally deprecated for some time now and the notable problems with JSX autofix interop the time has come to drop it. Below you will find an as close as possible mapping of jscs
options to eslint
.
This is not a complete file including all the various exceptions and options that eslint
needs to mimic the current jscs
behavior, but it should illustrate that it is possible and worth pursuing.
{
"esnext": true,
"plugins": ["jscs-jsx-rules"],
"requireCurlyBraces": ["else","for","while","do","try","catch","switch"],
"requireSpaceBeforeKeywords": ["else","while","catch"], // keyword-spacing
var httpProxy = require('http-proxy') | |
var proxy = httpProxy.createProxy(); | |
var fulltld = 'my-own-domain.com'; | |
var options = { | |
'/first-target': 'first-target', | |
'/second-target': 'second-target' | |
} |