Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
| git describe --exact-match --tags 2> /dev/null || git rev-parse --short HEAD |
| /* Sometimes it's pretty easy to run ito troubles with React ES6 components. | |
| Consider the following code: */ | |
| class EventStub extends Component { | |
| componentDidMount() { | |
| window.addEventListener('resize', this.onResize.bind(this)); //notice .bind | |
| } | |
| componentWillUnmount() { | |
| window.removeEventListener('resize', this.onResize.bind(this)); |
| var amqpConnectionOptions = { | |
| host: process.env['RABBITMQ_PORT_5672_TCP_ADDR'], | |
| port: 5672, | |
| login: 'guest', | |
| password: 'guest' | |
| }; | |
| var amqpQueueOptions = { | |
| durable: true, | |
| autoDelete: false | |
| }; |
Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
| #!/bin/bash | |
| # | |
| # Open new Terminal tabs from the command line | |
| # | |
| # Author: Justin Hileman (http://justinhileman.com) | |
| # | |
| # Installation: | |
| # Add the following function to your `.bashrc` or `.bash_profile`, | |
| # or save it somewhere (e.g. `~/.tab.bash`) and source it in `.bashrc` | |
| # |