HTML

Prettying up your code
31 Mar 2013 09:37 0

I hate working with messy, inconsistant code. I'm sure I'm not alone in saying that. But sometimes, writing neat code can be a bit of a chore and that's where a couple of online services may come in handy! Firstly, I like my code beautifully indented and presented. I don't like mumble jumble like... Continue reading...


Wikidot: from forgiving, to strict...
29 Oct 2012 10:34 4.7

Recently, Wikidot has introduced strict YAML rules for Data Forms and prevented users from saving malformed YAML syntax in dataforms. TeRq explains the reason behind the move: Quote from TeRq When forgiving mode is used unpredictable things may [happen] (it also caused a lot of warnings on backend... Continue reading...


Running JS in a private context
27 Oct 2012 23:41 5

I've been writing Javascript-based extensions for Google Chrome, which manipulates the information on the screen. One important thing that I always neglect the possibility of variable collision. Especially with my *cough* poorly written code *cough*, variables like i, index and count always collide.... Continue reading...


Wikidot: Traffic Table
24 Oct 2012 21:23 5

A recent addition to Wikidot sites is the ability to check/monitor traffic bandwidth. This comes as Wikidot announced it will be providing a new type of sites Community Sites, benefiting popular community-driven sites providing them with assistance when needed. Along with it came the news that... Continue reading...


Simple PHP Templating System
22 Oct 2012 09:21 5

As part of a new project I've just begun working on, I've started employing HTML templates. One of the main uses of HTML templates is to allow for easier debugging and management in the long run. It keeps dynamic code off the actual static part of the page and placeholders are replaced by dynamic... Continue reading...


Useful Snippets #1
21 Oct 2012 20:38 5

Here are a couple of Javascript snippets that I've found useful in the past weeks: JS: getElementById Shortcut Depending on if you use jQuery (or similar libraries), your $ variable may be assigned to that. This example shows how you can utilize the $ variable for a shortcut to getElementById //... Continue reading...


Unless otherwise stated, all of the site's contents (including articles, blog post and code snippets) is:
Copyright © Kenneth Tsang 2014