useful snippets used in day-to-day web-development