For a project I’ve been working on I needed to use preg_match quite a bit. But I got really tired of having to punch in…
For a project I’ve been working on I needed to use preg_match quite a bit. But I got really tired of having to punch in…
Came across this the other day on Stack Overflow. Turns out there is a way to one line create an ArrayList and fill it all…
If you’ve got a robots.txt file and an XML sitemap, add the following line to robots.txt so that search engine spiders will pick up your…
Quick little snippet to redirect your visitors to another page after they leave a comment. Normally after leaving a comment in WordPress you’re sent back…
This came about from needing a way to automatically post to a Pinterest board. Unlike most social sites, Pinterest doesn’t have a public API to…
For a site I’m working on I needed a way to intercept a comment and block if a specific condition wasn’t met. This is what…
This comes from needing a quick and easy way to rotate a String in Java.
Needed a way to count how many quiz attempts students had on a specific quiz over a certain grade. The query below works with the…
Quick little snippet to toggle the value of a checkbox with jQuery. I needed this a couple days ago using a span with a font…