SexyDates indeed!
Here's another way to write conditional statements:
<?PHP
if(empty($value)):
echo 'This value is empty';
else:
handleValue($value);
endif;
?>
This is also available with other statements like for, foreach or while.
They are very useful when you have to combine php with html in the same files.
Very nice design, but unfortunately on my 13'' screen is very hard to read the content.
Add export EDITOR='sublime -w'</code> to .bash_profile</code>, in your home directory, so that the sublime is the default editor for all terminal sessions.
If the file doen't exist than you can create it: sublime -w .bash_profile</code>, but remember to be in your home directory cd ~/</code>.
I personally use Twitter Bootstrap.
It's a very flexible and highly customisable css framework, written in less</code>
, and allows you to use variables and functions in your stylesheets to write more reusable components .
It also includes a grid system, but when it comes to grids and aligments the CSS3 box flex</code> proprieties are more powerful and flexible.
Here's a great article on html5rocks.com
Or you could use the Appearance protocol :
UINavigationBar *appearance =[UINavigationBar appearance];
[appearance setBackgroundImage:[UIImage imageNamed:@"NavigationImage.png"] forBarMetrics:UIBarMetricsDefault];
</code>
This way you can customise your navigation bar in -viewDidLoad</code> method, or in ApplicationDelegate.m</code> or even better you could create a theme system that allows you to easily maintain your design and reuse it in other applications.
Great article. Is nice to know that CSS got finally awesome!!
Very helpful tip :)
Thank you!
You can use FIXME: in a comment if you want to mark a section of code which you now that has to be fix.
// FIXME: change the way this algorithm work
Thank's for noticing that! :)