Menu

Snippets

Yet another programmer blogging about code

VBScript For Next and Continue

I still get the occasional Classic ASP VBScript maintenance job from time to time, and it reminds me of the language statements it just doesn’t have. Like “continue”, great for skipping a bunch of logic inside a For loop. Turns out, there is a nice simple way to get that functionality.

Use Autoptimize effectively

Keeping your WordPress website fast can become pretty tricky once you start installing plugins and off-the-shelf themes. Everything seems to want to load at least one CSS stylesheet, and sometimes a dozen or more JavaScript script files. Some also inject great chunks of CSS and JavaScript into every page. Luckily, there’s the handy Autoptimize plugin to help you sort all of that out.

Set the tab size on GitHub, Gist, and Bitbucket

I indent with tabs. There, I said it. Viewing my code (and that of other tab indenters) on GitHub, Gist, or Bitbucket can be annoying because the default tab size in the browser is equivalent to 8 spaces. Modern browsers let you change that through CSS, and here’s some bookmarklets that do just that.

I twut

So I finally got a Twitter account. I figure everyone else is doing it so it must be nearly over, time to join. I’ll be twotting any new plugins and plugin updates there, so if you need notifications for those, please follow @webawareross. Just don’t expect to hear about which legumes I curried for breakfast (was borlotti beans today, will be split green peas tomorrow), what I’m listening to (Katalyst), or RT of k.rudd selfies.