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
const superagent = require('superagent') | |
var agent = superagent.agent() | |
var pattern = /<tr>\s*<td>\s*([^<]+)<span[^>]+>([^<]*)<\/span>\s*<\/td>\s*<td>\s*<span class="AutoUpdateValue ID([0-9]*)[^>]+>([^<]*)<\/span>\s*<\/td>\s*<\/tr>/g | |
var fetch = module.exports = function (user, password, systemId) { | |
return new Promise((resolve, reject) => { | |
agent | |
.post('https://www.nibeuplink.com/LogIn') | |
.send(`Email=${user}`) | |
.send(`Password=${password}`) |
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
module['exports'] = function simpleHttpRequest (hook) { | |
var request = require('request') | |
var async = require('async') | |
var Hoek = require('hoek') | |
var _ = require('lodash') | |
var host = hook.params.domain | |
var password = hook.params.password | |
var IPs = [] |
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
Uncaught TypeError: Cannot read property 'test' of undefined | |
SwaggerUi.Views.OperationView.Backbone.View.extend.showStatus @ index.js:24 | |
SwaggerUi.Views.OperationView.Backbone.View.extend.showCompleteStatus @ index.js:24 | |
9.Operation.execute.obj.on.response @ index.js:568 | |
(anonymous function) @ spec-converter.js:505 | |
111.Request.callback @ index.js:24 | |
(anonymous function) @ index.js:24 | |
112.Emitter.emit @ index.js:24 | |
111.Request.end.xhr.onreadystatechange @ index.js:24 |
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
--- | |
swagger: "2.0" | |
host: "localhost:8000" | |
schemes: | |
- "http" | |
paths: | |
/simple/test: | |
post: | |
tags: | |
- "api" |
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 fs = require('fs'); | |
var path = require('path'); | |
var async = require('async'); | |
module.exports = function(rootPath, next) { | |
rootPath = path.normalize(rootPath); | |
var files = []; | |
var directories = []; | |
var totalSize = 0; |
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
brew update | |
brew versions FORMULA | |
cd `brew --prefix` | |
git checkout HASH Library/Formula/FORMULA.rb # use output of "brew versions" | |
brew install FORMULA | |
brew switch FORMULA VERSION | |
git checkout -- Library/Formula/FORMULA.rb # reset formula | |
## Example: Using Subversion 1.6.17 | |
# |