Huntly Cameron ­//My blog type thing…

This is (probably) not the blog you’re looking for…

This is more just a collection of things I’ve found useful enough to save for future use.

Vim delete range

More powerful delete than “dd” or visual select and then “d”

html5 number field

Use the step attr to change how the value changes when the user selects the up or down buttons

Non greedy Regex

Overshooting the mark when trying to grab attribute values from HTML strings or text in tags? Here’s how to fix that

Git ignore file change

Those god dam database connections getting committed, pushed, and overwritten. Tell git to ignore the file.