Got my Google Galaxy Nexus the other day, it’s pretty freaking awesome.
Got my Google Galaxy Nexus the other day, it’s pretty freaking awesome.
On November 24-27 I was at the amazing Dreamhack LAN in Jönköping in Sweden.
Three days of some amazing LAN environment with 10k or so other people, I’m more than satisified.
Have you ever run into a wall trying to handle dates in JavaScript in different format in different browsers? I know I have.
I just found this amazing JavaScript library for dates, Moment.js. It looks like it’s pretty easy to use, you can tell it what format the date you are parsing is in, or even define a couple different formats to try.
It also has a way to show times relative to some other time, like “a couple seconds ago”, “2 minutes ago” and lets you define your own languages and stuff, it’s really powerful.
Another cool feature are the chainable .add() and .subtract() functions that lets you add or subtract time to your date.
It’s gonna be awesome to use whenever I need to handle dates in JavaScript in the future.
On GitHub: https://github.com/timrwood/moment
Probably one of the coolest games out there right now, make your dreams of launching rockets into space come true today!
Kerbal Space Program gives you the ability to design your own rockets and launch them into space around the fictional planet of Kearth, and with the latest experimental release (0.12) you can even launch missions to the Mun.
I can’t wait to see what the KSP team brings in the future, but I’m pretty sure that it will be awesome!
One of the first things I add to a project when I start a new one. You can put it in something like functions.php and include it on all your pages.
http://gist.github.com/1342928
Usage:
echo F("This is a %s.", "string");
Output:
This is a string.
Call me lazy, but I find it easier to just type F() instead of sprintf().