Skip to content

Instantly share code, notes, and snippets.

Ed Hemphill edhemphill

  • Arm Inc.
  • Austin, TX
Block or report user

Report or block edhemphill

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
timelf123 / pauseChildrenWatchersIf.directive.js
Created Mar 29, 2016
Pauses all the children's $$watchers if the expression on the attribute evaluates to true, on false it restores any backed up $$watchers
View pauseChildrenWatchersIf.directive.js
app.directive('pauseChildrenWatchersIf', function(){
return {
link: function (scope, element, attrs) {
scope.$watch(attrs.pauseChildrenWatchersIf, function (newVal) {
if (newVal === undefined) {
if (newVal) {
toggleChildrenWatchers(element, true)
goffrie / libuv-epoll-bug.js
Last active Dec 19, 2015
node.js testcase for a bug in libuv.
View libuv-epoll-bug.js
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.
You can’t perform that action at this time.