Skip to content

Instantly share code, notes, and snippets.

/*
I can't seem to override net.Socket.write.
Expected output:
> Sending...
> Ending socket...
> Server received data: test write
> test end
@erikbrannstrom
erikbrannstrom / keybase.md
Created May 14, 2014 16:22
Confirm my identity for Keybase.

Keybase proof

I hereby claim:

  • I am erikbrannstrom on github.
  • I am erikbrannstrom (https://keybase.io/erikbrannstrom) on keybase.
  • I have a public key whose fingerprint is D788 8E14 D3AD B9A3 4C4C DCE2 9EE8 0CBB ABB2 C86B

To claim this, I am signing this object:

@erikbrannstrom
erikbrannstrom / ConfirmButton.jsx
Created March 21, 2014 15:16
ConfirmButton component for React. Require two clicks with a minimum delay between in order to go through with the action.
var React = require('react');
var ConfirmButton = React.createClass({
propTypes: {
onClick: React.PropTypes.func,
waitTime: React.PropTypes.number,
confirmText: React.PropTypes.string,
},
getInitialState: function() {