A variant of the simple bar chart using d3-scale and d3-xhr to render to Canvas. Note that this doesn’t use D3’s selections or axes, so this code is somewhat more intricate.
forked from mbostock's block: Canvas Bar Chart
{ | |
"error": { | |
"message": "הממשק הושלם בהצלחה", | |
"number": "099", | |
"type": "S" | |
}, | |
"data": { | |
"grantCommReport": [ | |
{ | |
"periodNum": "010", |
A variant of the simple bar chart using d3-scale and d3-xhr to render to Canvas. Note that this doesn’t use D3’s selections or axes, so this code is somewhat more intricate.
forked from mbostock's block: Canvas Bar Chart
This gist provides a simple JavaScript implementation of the non-standard WebKit method scrollIntoViewIfNeeded
that can be called on DOM elements.
Just use the code in index.js
in your app or website. You can see usage in the test page test.html
.
The parent element will only scroll if the element being called is out of the view. The boolean can force the element to be centered in the scrolling area.
var ssh = require('ssh2'); | |
var Promise = require('bluebird'); | |
var sshConnection = new ssh.Client(); | |
sshConnection.connect({ | |
host: config['QN_Address'], | |
port: 22, | |
username: 'ec2-user', | |
privateKey: require('fs').readFileSync(config['QN_Key']) | |
}); |
var ssh = require('ssh2'); | |
var Promise = require('bluebird'); | |
var sshConnection = new ssh.Client(); | |
var sshConnectionReady = false; | |
sshConnection.connect({ | |
host: config['QN_Address'], | |
port: 22, | |
username: 'ec2-user', | |
privateKey: require('fs').readFileSync(config['QN_Key']) |
var ssh = require('ssh2'); | |
var Promise = require('bluebird'); | |
var sshConnectionReady = false; | |
var sshConnection; | |
const EventEmitter = require('eventemitter3'); | |
const emitter = new EventEmitter(); | |
function connect() { |
var Col = require('react-bootstrap/lib/Col') | |
var PageHeader = require('react-bootstrap/lib/PageHeader') | |
var React = require('react') | |
var Row = require('react-bootstrap/lib/Row') | |
var {connect} = require('react-redux') | |
var {reduxForm} = require('redux-form') | |
var DateInput = require('./DateInput') | |
var FormField = require('./FormField') | |
var LoadingButton = require('./LoadingButton') |
Search Bar* | |
Inactive* | |
focused -> Active | |
Active | |
canceled -> Inactive | |
typed -> Text Entry | |
Empty* |
Egg Timer* | |
Stopped* | |
wind forward -> Time over 10sec? | |
Ticking | |
wind forward -> Ticking | |
wind backward -> Done? | |
tick -> Done? | |
Dinging |
Video portal | |
Initial | |
joined empty room -> Waiting | |
joined busy room -> Ongoing | |
Call | |
master terminated call -> Call over | |
left -> Waiting | |
Waiting | |
joined -> Ongoing | |
Ongoing |