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
<?xml version="1.0" encoding="UTF-8"?> | |
<definitions xmlns:tns="urn:RpcExample" xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:RpcExample="urn:RpcExample" xmlns:SOAP="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:MIME="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:DIME="http://schemas.xmlsoap.org/ws/2002/04/dime/wsdl/" xmlns:WSDL="http://schemas.xmlsoap.org/wsdl/" xmlns="http://schemas.xmlsoap.org/wsdl/" name="urn:RpcExample" targetNamespace="urn:RpcExample"> | |
<types> | |
<schema xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:RpcExample="urn:RpcExample" xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:RpcExample" elementFormDefault="unqualified" attributeFormDef |
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
#include <nan.h> | |
#ifndef _WIN32 | |
#include <unistd.h> | |
#define Sleep(x) usleep((x)*1000) | |
#endif | |
using namespace v8; | |
class AsyncEmitter : public node::ObjectWrap |
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
Q_GLOBAL_STATIC(QVariantMap, settingsCache); | |
AgentSettings::AgentSettings() | |
: QSettings(/* detos.json using JSONSettings */) | |
{ | |
} | |
QVariant AgentSettings::value(const QString &key, const QVariant &default) | |
{ | |
if (settingsCache().contains(key)) | |
return settingsCache().value(key); |
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
<!doctype html> | |
<html> | |
<head> | |
<title>test</title> | |
</head> | |
<body> | |
<script src="http://d3js.org/d3.v3.min.js"></script> | |
<script> |
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 path_group = d3.select(selector + ' .path_group'); | |
var paths = path_group.selectAll("path") | |
.data(pie(Object.keys(data.status))) | |
.enter().append("path") | |
.style("fill", function(d, i) { | |
console.log(data.status[d.data]); | |
switch (data.status[d.data]) { | |
case 'enabled': | |
return '#98df8a'; | |
case 'disabled': |
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 Sequelize = require('sequelize'), | |
DataTypes = Sequelize, | |
sequelize = new Sequelize('groups_test', 'root', 'password'); | |
var Device = sequelize.define('Device', { | |
name: DataTypes.STRING | |
}, { | |
underscored: true, | |
timestamps: false | |
}); |
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 Sequelize = require('sequelize'), | |
DataTypes = Sequelize, | |
sequelize = new Sequelize('groups_test', 'root', 'password'); | |
var Device = sequelize.define('Device', { | |
name: DataTypes.STRING | |
}, { | |
underscored: true, | |
timestamps: false | |
}); |
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 Sequelize = require('sequelize'), | |
DataTypes = Sequelize, | |
sequelize = new Sequelize('groups_test', 'root', 'password'); | |
var Device = sequelize.define('Device', { | |
name: DataTypes.STRING | |
}, { | |
underscored: true, | |
timestamps: false | |
}); |
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 label_group = d3.select(selector + ' .label_group'); | |
label_group.selectAll("text").remove(); | |
label_group.selectAll("text") | |
.data(pie(Object.keys(data.status))) | |
.enter().append("svg:text") | |
.attr("dy", "1em") | |
.attr("dx", "0.5em") | |
.style("fill", "white") | |
.style("font", "bold 1.10em Arial") | |
.style("kerning", "1") |
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 Benchmark = require('benchmark'); | |
// this outputs nothing | |
new Benchmark.Suite() | |
.add("TestBuffer", { | |
'setup': function() { | |
this.buffer = new Buffer(); | |
}, | |
'fn': function() { | |
console.log(this.buffer); |
OlderNewer