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 pingWorker = new Worker('ping_worker.js'); | |
pingWorker.addEventListener('message', function(event) { | |
if($scope.online != event.data) { | |
$scope.online = event.data; | |
$scope.$apply(); | |
} | |
console.log('Are we online?', event.data); | |
}, false); |
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
#!/bin/bash | |
DEVICE="$1" | |
ACTION="$2" | |
if [ "$ACTION" = "up" ]; then | |
IP=$(ifconfig ${DEVICE} | grep "inet Adresse" | cut -b 24-32) | |
echo $IP | |
if [ "$IP" = "10.15.225" ]; then | |
echo "We're at Bucher, use dat TC-proxy!" |
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
<input type="date" ng-model="reportCtrl.formCtrl.travelFrom" required min="{{ minFromDate | date:'yyyy-MM-dd' }}"> | |
<input type="date" ng-model="reportCtrl.formCtrl.travelTo" required min="{{ reportCtrl.formCtrl.travelFrom | date:'yyyy-MM-dd' }}"> | |
$scope.minFromDate = new Date(); |
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
multifactSumAggregator = function() { | |
return function(facts) { | |
return function() { | |
var summedFacts = {}; | |
for (_i = 0, _len = facts.length; _i < _len; _i++) { | |
summedFacts[facts[_i]] = 0 | |
} |