Skip to content

Instantly share code, notes, and snippets.

View dziamid's full-sized avatar
🏠
Live in Tbilisi, Georgia

Dziamid dziamid

🏠
Live in Tbilisi, Georgia
View GitHub Profile
{
"error": {
"message": "הממשק הושלם בהצלחה",
"number": "099",
"type": "S"
},
"data": {
"grantCommReport": [
{
"periodNum": "010",
@dziamid
dziamid / README.md
Created December 21, 2015 16:21
Canvas Bar Chart
@dziamid
dziamid / README.md
Created May 24, 2016 11:27 — forked from hsablonniere/README.md
scrollIntoViewIfNeeded 4 everyone!!!

scrollIntoViewIfNeeded 4 everyone!!!

This gist provides a simple JavaScript implementation of the non-standard WebKit method scrollIntoViewIfNeeded that can be called on DOM elements.

Usage

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')
@dziamid
dziamid / SketchSystems.spec
Created September 8, 2018 16:50 — forked from lynaghk/SketchSystems.spec
Search Bar*
Search Bar*
Inactive*
focused -> Active
Active
canceled -> Inactive
typed -> Text Entry
Empty*
@dziamid
dziamid / SketchSystems.spec
Last active September 8, 2018 17:29 — forked from lynaghk/SketchSystems.spec
Egg Timer*
Egg Timer*
Stopped*
wind forward -> Time over 10sec?
Ticking
wind forward -> Ticking
wind backward -> Done?
tick -> Done?
Dinging
@dziamid
dziamid / SketchSystems.spec
Last active January 28, 2019 11:14
Video portal
Video portal
Initial
joined empty room -> Waiting
joined busy room -> Ongoing
Call
master terminated call -> Call over
left -> Waiting
Waiting
joined -> Ongoing
Ongoing