Wednesday, October 31, 2012
Retrieving the results of last command in ZSH
If you ever wished to retrieve the output of the last command to use it as an argument.
Saturday, October 20, 2012
Sluggish streaming with AirPlay
If you experience sluggish sometime stopping streaming with AirPlay try switching the Wireless Channel from Automatic to a specific channel (i.e. Channel 9).
Other AirPlay devices may interfere with yours.
This happened when my neighbour turned on his own AirPort Express.
Other AirPlay devices may interfere with yours.
This happened when my neighbour turned on his own AirPort Express.
Friday, October 12, 2012
SASS support in Chrome web inspector
Google Chrome has experimental SASS support in web inspector.
To turn it on, open
chrome://flags
and
enable Enable Developer Tools experiments.
You may have to reload web inspector to make settings apply.
Then open web inspector settings (the little cog icon on the bottom right)
You see a new tab, Experiments
Select Support for SASS.
To make it work your generated CSS needs to include line numbers, which with Chrome can connect your CSS to SASS.
If you're using the command line compiler --line-numbers will do the job.
If everything works you should see SASS code when inspecting elements.
To turn it on, open
chrome://flags
and
enable Enable Developer Tools experiments.
You may have to reload web inspector to make settings apply.
Then open web inspector settings (the little cog icon on the bottom right)
You see a new tab, Experiments
Select Support for SASS.
To make it work your generated CSS needs to include line numbers, which with Chrome can connect your CSS to SASS.
If you're using the command line compiler --line-numbers will do the job.
If everything works you should see SASS code when inspecting elements.
Friday, October 5, 2012
When you should use Mixins, Extend, Functions in SCSS
SCSS provides three powerful ways of code reuse, Mixins, Extend and Functions.
Use Mixins if similar sets of properties used multiple times with small variations.
Use Extend if sets of properties that match exactly.
Use Functions for commonly-used operations to determine values
Use Mixins if similar sets of properties used multiple times with small variations.
Use Extend if sets of properties that match exactly.
Use Functions for commonly-used operations to determine values
Subscribe to:
Posts (Atom)