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
BEGIN MESSAGE. | |
qPWzasbOcRuUgUg A8PTpKt6Vgud1aM 7bxKpG3bJXNzDWi jvFdV523JECg5Yp | |
rZRIH9h9FIceV9H 1l4bCXRSjsBTCKq 6Xr2MZHgg4Sa4jc ULOIwDFvPPto5SL | |
nodbaoE5jT2Oi0z e9wjyGla09T9Sa2 VGRZLxEcLY01ACm QPpgcRMNa0d4Yqz | |
WMlZx8B15qxDTyB vxPCIQZLJVgaD33 YbXne2IP. | |
END MESSAGE. |
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
{ | |
"title": "Microsoft Sculpt Mouse", | |
"rules": [ | |
{ | |
"description": "Mission Control, expose and launchpad with side button", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "delete_or_backspace", |
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 Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
[ | |
{ "x": 34 }, | |
{ "x": 35 }, | |
{ "x": 36 }, | |
{ "x": 35 }, | |
] |
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
class SvgBarchartStrategy extends SvgChart { | |
constructor(chartContext) { | |
super(chartContext); | |
//Create range function | |
this.xAxisName = 'x'; | |
this.yAxisName = 'y'; | |
// this.x = d3.scale.ordinal().rangeRoundBands([0, this.width], 0.1); | |
this.x = d3.scaleBand() | |
.rangeRound([0, this.width]) |
We want the developers to be able to create charts from the backend code. In order to achieve that, Proteus-backend may send WebSocket messages containing a chart identifier along its data, visualisation type and aditional information like a label. With this design, the Proteus-charts library should be able to create new charts on demand for new charts from the backend.
On the client side, the developer may set a container div
where the library will create additional div
containers for each new chart requested from the server.
The following is a proposed data format for the connector messages:
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
/** | |
* Add new data to the current graph. If it is empty, this creates a new one. | |
* @param {Object} datum - data to be rendered | |
*/ | |
keepDrawing(datum) { | |
super.keepDrawing(datum, 'replace'); | |
} |
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
[ | |
{ | |
"id":"1", | |
"children":[ | |
{ | |
"id":"2", | |
"value":"30" | |
}, | |
{ | |
"id":"3", |
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
String SQL_DRV = "com.mysql.jdbc.Driver"; | |
String SQL_URL = "jdbc:mysql://" | |
+ host + ":" + port | |
+ "/" + dbName | |
+ "?user=" + user | |
+ "&password=" + password; | |
Class.forName(SQL_DRV); | |
con = DriverManager.getConnection(SQL_URL); |
NewerOlder