Feb 5 / ramol

Editplus/Symfony inv. like Netbeans light color scheme.

This is my Editplus like Netbeans light color scheme.
There are lots of dark schemes but a few light one.

My colors based on Editplus default colors and inverted Symfony 2 dark scheme.
Font: Consolas 12px

PHP:
Editplus/Symfony inv. like Netbeans light color scheme php

 

 

 

 

 

 

 

 

 

 

 

read more…

May 9 / ramol

Bought a new bike

So, today, I bought new one at garage sale.
Well it isn’t brand-new. It’s few years old but it’s still in fantastic condition.

It’s working like a charm.

May 7 / ramol

How to make a integer variable switch between 0 and 1 every time a method is invoked?

It’s very simple. I’m using it very often.

$offset = 0;
for($i = 0; $i<10; $i++) {
  $offset = 1 - $offset;
  echo $offset;
}

The above example will output:
1010101010