Prerequisites:
- One or more clients running a UNIX-like OS. Examples are given for Ubuntu 12.04 LTS, although all software components are available for other platforms as well (e.g. OS X). YMMV
- A cheap Ubuntu 12.04 VPS with storage. I recommend Backupsy, they offer 250GB storage for $5/month. Ask Google for coupon codes.
Software components used:
| // We're going to use Breakpoint to handle our media queries | |
| // http://github.com/team-sass/breakpoint | |
| @import "breakpoint"; | |
| @mixin element-query($sizes...) { | |
| @each $size in $sizes { | |
| @include breakpoint(nth($size, 2)) { | |
| #{nth($size, 1)} & { | |
| @content; | |
| } |
| // A named buffer. Will append to existing content captured there. | |
| // The buffer can be accessed via get-capture("foo") or @emit "foo". | |
| @capture "foo" { | |
| @media screen { | |
| .asdf { | |
| .qwerty { | |
| /* This is a comment */ | |
| color: red; | |
| } | |
| } |
If you have installed the standalone Command Line Tools for XCode on your Mac (i.e. without having XCode.app installed), some of these tools can get a bit confused due to a couple of oversights on Apple's part in finalising the setup.
Note: all commands below will need to be run from an Administrator account, or by an account with appropriate permission in /etc/sudoers.
Sometime when compiling against the preinstalled Frameworks (e.g. Ruby or Python), various tools will inexplicable fail to find header files that are quite clearly there. This is caused by the fact that no XCode has been selected for the command-line tools. Wait, I hear you cry, I don't have XCode installed! Indeed, but you nonetheless need to select one, and point it somewhere where the command line tools exist, like so
| <?php | |
| /** | |
| * Implements hook_form_FORM_ID_alter(). | |
| * | |
| * Adds menu 'class' attribute options to the edit menu item form. | |
| */ | |
| function mymodule_form_menu_edit_item_alter(&$form, $form_state) { | |
| // Get item | |
| $item = $form['original_item']['#value']; |
| @import "compass/css3/shared"; | |
| // NOTE: | |
| // All mixins for the 2009 spec have been written assuming they'll be fed property values that | |
| // correspond to the standard spec. Some mixins can be fed values from the 2009 spec, but don't | |
| // rely on it. The `legacy-order` mixin will increment the value fed to it because the 2009 | |
| // `box-ordinal-group` property begins indexing at 1, while the modern `order` property begins | |
| // indexing at 0. | |
| // if `true`, the 2009 properties will be emitted as part of the normal mixin call |
| var serialport = require('node-serialport') | |
| var sp = new serialport.SerialPort("/dev/ttyO3", { | |
| parser: serialport.parsers.raw, | |
| baud: 9600 | |
| }) | |
| sp.on('data', function(chunk) { | |
| console.log(chunk.toString('hex'), chunk.toString(), chunk) | |
| }) |
This is just a holding place for the things I find out until they make up a proper document or separate docs. This is a working doc - but it might be helpful to someone. I'm also trying to approach any changes I make in a non-destructive manner, in that it's easy to reverse out if I make a mistake.
The script /etc/init.d/rcS is kicked off. This boots up the wifi, and udev for listening to mounting drives.
-
Install Homebrew:
- Follow the install instructions found on this page.
-
Tap the wonderful homebrew-php from https://github.com/Homebrew/homebrew-php
$ brew tap homebrew-php