EmpireAvenue - Pretty Neat

Tips & Snippets

In one of my past articles, Two Column Layout with Divider without Images, I introduced a method to create a two column layout, with a divider without needing images. At the end, I mentioned that you can also apply this technique to three columns. How It Works This works exactly the same as the two-column [...]

I’m working on this handy little plugin so I can create code demos, so I can demo HTML, CSS, and Javascript pages for my articles, without having to create a page and FTP it up. I want to just be able to create and edit it directly from the WordPress back-end. Lucky for me, it [...]

When I was designing this site, I decided I wanted to have a two column layout with a border dividing the two. The tricky part with multi-column layouts is vertical spacing. Since elements only extend as far as they need to vertically, it is often very tricky to get your columns to both go all [...]

I’ve been tinkering here and there trying to make an awesome website (how am I doing? ;)). One thing I’ve done is created a handy dandy code block parser to my WordPress, so I can quickly add code in an easy to read format. This way I can spend more time writing and less time [...]

In a previous article, I discussed binary searching and mentioned that you could modify the function a bit to get the index of where to put the value to keep it sorted. This eliminates the need to sort it on demand and lose all the performance gains of the binary search. The Binary Search Sort [...]

So, you have an awesome site, filled with pages of awesome content. You’re PR is on the rise and you get 5,000 views a day… great! But, are you really giving them what they want when they first get to your site? If you have a high bounce rate, you may not be. What is [...]

If you went to school for programming, you’ve likely seen the binary search algorithm. If you’re self taught, as many great programmers are, you may not have come across it before. What is the Binary Search Algorithm? The binary search algorithm is an algorithm which searches through a collection of sorted values. It does so [...]

A common problem that you may run into when you want to output a number is to add commas. It’s much easier to understand 1,000,000 than it is to read 1000000. I haven’t done this in a while so I did a quick search to see what others were doing to tackle this problem. A [...]

Yesterday when I was working on a little Javascript for showing all unicode characters yesterday, I needed a way to pad the string. I did a bit of research and came across a very interesting and handy approach. The Typical Approach The typical approach is pretty simple. You create a loop and just add whatever [...]

While I was working on this theme, I wanted to use the content CSS property to add some right-pointing double-angle quotation marks (») for my list elements. So, of course, I used the good ole &raquo; to add it in. However, it didn’t work! It took me a bit to realize that you can’t use [...]