Skip to content

Instantly share code, notes, and snippets.

View dlmoody's full-sized avatar

David Moody dlmoody

View GitHub Profile
import React, {Component, PropTypes} from 'react';
import {provideReactor} from 'nuclear-js-react-addons';
import cx from 'classnames';
import Form from './form';
import Input from './form-input';
import Label from './form-label';
@provideReactor({
Actions: PropTypes.object.isRequired
})
@benbuckman
benbuckman / intercept-stdout.js
Created May 20, 2012 15:42 — forked from pguillory/gist:729616
Hooking into Node.js stdout, pipe stdout to telnet
var _ = require('underscore'),
util = require('util');
// intercept stdout, passes thru callback
// also pass console.error thru stdout so it goes to callback too
// (stdout.write and stderr.write are both refs to the same stream.write function)
// returns an unhook() function, call when done intercepting
module.exports = function interceptStdout(callback) {
var old_stdout_write = process.stdout.write,
old_console_error = console.error;
@napcs
napcs / .tmux.clipboard
Created August 15, 2011 19:28
My tmux config
# configuration for osx clipboard support
set-option -g default-command "reattach-to-user-namespace -l sh"