a blog by Christian Snodgrass
about programming, web and game design, and everything else


Adding a Code Box with Word Wrap

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 [...]

June 25th, 2011 | No Comments | In HTML/CSS, PHP, Wordpress

Keep It Sorted: Binary Search Sort

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 [...]

June 19th, 2011 | No Comments | In Flash/ActionScript 3, Javascript, PHP

Classics to Remember: Binary Search

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 [...]

June 17th, 2011 | No Comments | In Flash/ActionScript 3, Javascript, PHP

Quick Tip: Adding Commas to Numbers

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 [...]

June 15th, 2011 | No Comments | In Flash/ActionScript 3, Javascript, PHP

Back to Top