Friday, November 16, 2012

Copy a file from a different branch in Git

where BRANCH can be any ref (branch, tag, HEAD, ...)

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.

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.

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

Wednesday, September 12, 2012

Questions For Job Candidates To Ask

What do you expect me to accomplish in the first 60 to 90 days?

What are the common attributes of your top performers?

What are a few things that really drive results for the company?

What do employees do in their spare time?

How do you plan to deal with technological changes/competitors entering the market/shifting economic trends?

You can find details in this Inc's article.

Tuesday, August 21, 2012

Smiling profile pictures make a difference

At my company one employee took the effort to take a profile picture of every employee. He only took photos where people smiling, it took some time but within few weeks (100+ employees) it is done.

Then everyone was asked to replace their profile picture in hipchat/google apps/yammer to the one taken. Everyone agreed, and as a result I only see smiling faces in the apps these days.

It feels good.

Smiling pictures make a difference.