Open terminal and type:
1. Create a directory at ~/bin:
mkdir ~/bin
2. Copy sublime executable to your ~/bin directory:
| # Install ipython3 on Mac OS X Maverics | |
| # Update brew | |
| brew update | |
| brew upgrade | |
| # Install Python 3 | |
| brew install python3 | |
| # Install ipython |
| echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
| . ~/.bashrc | |
| mkdir ~/local | |
| mkdir ~/node-latest-install | |
| cd ~/node-latest-install | |
| curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
| ./configure --prefix=~/local | |
| make install # ok, fine, this step probably takes more than 30 seconds... | |
| curl https://npmjs.org/install.sh | sh |
| add_filter('post_thumbnail_html', 'slug_responsive_img', 5, 5); | |
| //Image sizes for Interchange | |
| add_image_size( 'fd-lrg', 1024, 99999); | |
| add_image_size( 'fd-med', 768, 99999); | |
| add_image_size( 'fd-sm', 320, 9999); | |
| function slug_responsive_img($html, $post_id, $post_thumbnail_id, $size, $attr) { | |
| //make image links | |
| $attachment_id = $post_thumbnail_id; | |
| $default = wp_get_attachment_image_src($attachment_id); |
npm install -g yoyo webappnpm install grunt-contrib-jade --save-dev| var countDown = function (endDate, el) { | |
| el = el || $('body'); | |
| var leadingZero = function (nb) { | |
| return (nb < 10) ? "0" + nb : + nb; | |
| }; | |
| var updateTimer = function (seconds) { | |
| var days = Math.floor(seconds / 86400); | |
| seconds -= days * 86400; | |
| var hours = Math.floor(seconds / 3600); | |
| seconds -= hours * (3600); |