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
elasticSearchService.post('_all/_search',query).then(function (response){ | |
$scope.graph1Data = []; | |
$scope.graph2Data = []; | |
$scope.graph3Data = []; | |
var locationData = response.data.aggregations.UniqueLocation.buckets; | |
var tempData = []; | |
// for filling in 0 for blank data point | |
var rawArray = []; |
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
<div class="controls" ng-if="floorPlanDataChunkCount > 1"> | |
<div class="checkbox-group"> | |
<label for="show-cumulative">Totals</label> | |
<input id="show-cumulative" type="checkbox" ng-model="showTotal" /> | |
</div> | |
<div ng-hide="showTotal" class="heat-map-controls"> | |
<img src="static/images/videoPlayIcon.png" class="play-animation-icon" ng-click="startAnimation()" ng-if="!isAnimating" /> | |
<div class="play-animation-icon" ng-if="isAnimating"></div> | |
<div jquery-slider callback="setInstanceData" chunk-count="floorPlanDataChunkCount"></div> | |
</div> |
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
<div class="controls" ng-if="floorPlanDataChunkCount > 1"> | |
<div class="checkbox-group"> | |
<label for="show-cumulative">Totals</label> | |
<input id="show-cumulative" type="checkbox" ng-model="showTotal" /> | |
</div> | |
<div ng-hide="showTotal" class="heat-map-controls"> | |
<img src="static/images/videoPlayIcon.png" class="play-animation-icon" ng-click="startAnimation()" ng-if="!isAnimating" /> | |
<div class="play-animation-icon" ng-if="isAnimating"></div> | |
<div jquery-slider callback="setInstanceData" chunk-count="floorPlanDataChunkCount"></div> | |
</div> |
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
scope.upload = $upload.upload({ | |
url: '192.168.1.8:2002/upload', | |
file: 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
<div ng-if="dataType === 'manualUrl'"> | |
<label for="manualUrl">URL*</label> | |
<input id="manualUrl" style="width:300px" type="text" name="URL" ng-model="urls.manualUrl" validate required /> | |
urls inside: {{urls.manualUrl}} | |
</div> | |
urls outside: {{urls.manualUrl}} |
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
bitnami@ip-10-169-229-184:~/stack/berlin-node-api$ ps aux | grep node | awk {'print$11,$2'} | grep node | |
/opt/bitnami/nodejs/bin/.node.bin 19795 | |
/opt/bitnami/nodejs/bin/.node.bin 19797 |
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
bitnami@ip-10-169-229-184:~/stack/berlin-node-api$ ps -aux | grep [n]ode | |
bitnami 19795 0.0 0.2 662284 10424 pts/3 Sl+ 21:00 0:00 /opt/bitnami/nodejs/bin/.node.bin /opt/bitnami/berlin-node-api/main.js | |
bitnami 19797 0.2 0.6 665208 25952 pts/3 Sl+ 21:00 0:00 /opt/bitnami/nodejs/bin/.node.bin /opt/bitnami/berlin-node-api/main.js |
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
var http = require('http'); | |
module.exports = function (req, res, next) { | |
console.log('In the authenticate middleware'); | |
console.log('our account uuid is', req.headers.accountuuid); | |
console.log('our bearer token is in here', req.headers); | |
http.get({ | |
host: 'dev.api.scala.com', |
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
_headers: | |
{ accountuuid: 'c1f505c3-efe6-487c-858c-741bf1c73d92', | |
authorization: 'Bearer 049f7516639f7762e79e94bcb946398ff7b3312e0f4012b1debab111b236e8a9foobar', | |
host: 'dev.api.scala.com:8080' }, |
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
Console.getMonitors().then(function(results) { | |
$scope.monitors = results.data.monitors; | |
angular.forEach(results['data']['monitors'], function(value, key) { | |
var id = value.Monitor.Id; | |
Console.daemonStatus(id, 'zmc').then(function(results) { | |
$scope[id] = { | |
zmc: results.data.status | |
}; |