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
var Lynx = require('lynx'); | |
function _onError(err) { | |
console.log(err); | |
} | |
var _options = { | |
host : 'sfast-grafana.cloudapp.net', | |
port : 8125 | |
}; | |
var metrics = new Lynx(_options.host, _options.port, {on_error: _onError}); | |
var timer = null; |
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
var Lynx = require('lynx'); | |
function _onError(err) { | |
console.log(err); | |
} | |
var _options = { | |
host : 'sfast-grafana.cloudapp.net', | |
port : 8125 | |
}; | |
var metrics = new Lynx(_options.host, _options.port, {on_error: _onError}); | |
var timer = null; |
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
package com.heremap.react.map; | |
import android.app.Activity; | |
import com.facebook.react.uimanager.ThemedReactContext; | |
import com.facebook.react.uimanager.ViewGroupManager; | |
public class HereMapManager extends ViewGroupManager<HereMapView> { | |
static final String METHOD_NAME = "HereMapView"; |
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
let t = n + m; |
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
let n = 2, m = 3; | |
let t = n + m; | |
console.log(t); // 5 | |
n = 3; | |
console.log(t); // 5 |
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 Rx = require('rxjs'); | |
const n$ = new Rx.Observable((observer) => { | |
observer.next(2); | |
setTimeout(() => { | |
observer.next(3); | |
observer.complete(); | |
}, 200); | |
}); |
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
n$ = [2] | |
m$ = [3] | |
c$ = n$.concat(m$).reduce(sum) | |
c$ // 2 + 3 = 5 | |
n$.push(3) | |
c$ // 3 + 3 = 6 |
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 express = require('express') | |
const app = express() | |
const port = process.argv[2] | |
app.get('/', (req, res) => res.send(`Hello World!, port: ${port}`)) | |
app.listen(port, () => console.log(`Example app listening on port ${port}!`)) |
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
upstream api { | |
server 127.0.0.1:3000; | |
server 127.0.0.1:3001; | |
} | |
server { | |
listen 8080; | |
location / { | |
proxy_pass http://api; |
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
upstream api { | |
zone api 64k; | |
server 127.0.0.1:3000; | |
server 127.0.0.1:3001; | |
} | |
server { | |
listen 8080; | |
location / { |
OlderNewer