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
app.directive('pauseChildrenWatchersIf', function(){ | |
return { | |
link: function (scope, element, attrs) { | |
scope.$watch(attrs.pauseChildrenWatchersIf, function (newVal) { | |
if (newVal === undefined) { | |
return; | |
} | |
if (newVal) { | |
toggleChildrenWatchers(element, true) |
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 child = require('child_process'); | |
var net = require('net'); | |
var dgram = require('dgram'); | |
// Create a new fd. | |
var sock = dgram.createSocket('udp4'); | |
sock.bind(4321, function() { | |
// Send that fd to another process. | |
// This keeps the file description open, | |
// even after we close our local fd. |