This file contains hidden or 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 <QCoreApplication> | |
#include <QDebug> | |
#include <QStringList> | |
#include <QJsonObject> | |
#include <QJsonArray> | |
#include <QJsonDocument> | |
#include <QVariant> | |
#include <QJsonValue> | |
#include <QByteArray> | |
#include <QDataStream> |
This file contains hidden or 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
// >>>> code below <<<< | |
var request = require('request'); | |
request({ | |
url: 'http://192.168.4.1', | |
body: JSON.stringify({ | |
a: "c", | |
b: "d" | |
}) | |
}, function (error, response, body) { |
This file contains hidden or 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
npm install -g @angular/[email protected] | |
/home/vic/.nvm/versions/node/v6.9.1/lib | |
├── @angular/[email protected] | |
├── UNMET PEER DEPENDENCY [email protected] | |
└── UNMET PEER DEPENDENCY zone.js@^0.7.2 | |
npm WARN @angular/[email protected] requires a peer of [email protected] but none was installed. | |
npm WARN @angular/[email protected] requires a peer of zone.js@^0.7.2 but none was installed. | |
This file contains hidden or 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 fs = require('fs'); | |
let CombinedStream = require('combined-stream2'); | |
let path = require('path'); | |
let parseStream = require('json-parse-stream'); | |
let getStreamedDir = (file) => { | |
let combinedStream = CombinedStream.create(); | |
let extensions = ['.json']; | |
if (fs.lstatSync(file).isDirectory()) { | |
fs.readdirSync(file) |
This file contains hidden or 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
Error: ./~/serialport/lib/list-unix.js | |
Module not found: Error: Can't resolve 'child_process' in '/home/wd/dev/MyProject/src/node_modules/serialport/lib' | |
resolve 'child_process' in '/home/wd/dev/MyProject/src/node_modules/serialport/lib' | |
Parsed request is a module | |
using description file: /home/wd/dev/MyProject/src/node_modules/serialport/package.json (relative path: ./lib) | |
Field 'browser' doesn't contain a valid alias configuration | |
after using description file: /home/wd/dev/MyProject/src/node_modules/serialport/package.json (relative path: ./lib) | |
resolve as module | |
looking for modules in /home/wd/dev/MyProject/src/node_modules | |
using description file: /home/wd/dev/MyProject/src/package.json (relative path: ./node_modules) |
This file contains hidden or 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
Error: ./~/serialport/lib/bindings/linux-list.js | |
Module not found: Error: Can't resolve 'child_process' in '/home/wd/dev/MyProject/src/node_modules/serialport/lib/bindings' | |
resolve 'child_process' in '/home/wd/dev/MyProject/src/node_modules/serialport/lib/bindings' | |
Parsed request is a module | |
using description file: /home/wd/dev/MyProject/src/node_modules/serialport/package.json (relative path: ./lib/bindings) | |
Field 'browser' doesn't contain a valid alias configuration | |
after using description file: /home/wd/dev/MyProject/src/node_modules/serialport/package.json (relative path: ./lib/bindings) | |
resolve as module | |
looking for modules in /home/wd/dev/MyProject/src/node_modules | |
using description file: /home/wd/dev/MyProject/src/package.json (relative path: ./node_modules) |
OlderNewer