Categories
Blog

The Comment Toggle Trick

This trick below can be used to toggle between two sets of code, with one symbol in the code with no additional short-keys to learn, and no tool dependencies!

//* /*
someCode(); someCode();
// //
someOtherCode(); someOtherCode();
/// ///

Here is a version for simply commenting code in and out:

//*
someCode();
//*/

Deactivated / commented out:

/*
someCode();
//*/

Categories
Blog

CSS Selectors

The key lies in using CSS selectors efficiently to maximize performance and minimize load time, though this efficient usage matters only for website with thousands of DOM elements and the speed is the key for the existence in the market.

Categories
Blog

TIL some Photoshop tricks

Today I learned some amazing Photoshop tricks. Check them out below and please add your own tips & tricks in the comment section.

  1.  TIL you can right-click with the eyedropper tool in Photoshop to get a “Copy Color’s Hex Code” option.
  2. By holding shift you can also sample up to 4 points at a time with the eyedropper tool.
  3. Pressing Shift + TAB will hide all panels (Layers, Channels,…) except the toolbar.