Recent Snippets Part 1
Here are a few snippets that I’ve used recently. They are javascript, mysql, php and some apache directives: Select rows from a table in random order: SELECT * FROM `table` ORDER BY `field` RAND(); Fix...
View ArticlePHP File Loads Itself
This is weird idea I had right before I went to sleep last night. I might actually use it for something… have a look: loadme.php: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 <?php $file =...
View Article-webkit-transform : Use 3D for 2D
My students are often surprised when I show them web app demos for the iphone. They simply weren’t aware that you could use SVG or webkit-transform/transition to get some really smooth running...
View ArticleRaphael Pie Chart Part 1
So awhile back I created a pie chart in raphael without the use of the SVG arc command. So, my old pie chart works, but it has lots of vector points – it’s all done with moveTo and lineTo. Rather than...
View ArticleMustache Twitter
mustache.js is really nice. Here is a quick demo of mustache being used in conjunction with the twitter search api: demo Here is the code: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24...
View ArticleZTXT 3.2 (coming soon)
I’ve been working on the ZTXT code editor for over two years now and its really come a long way. See the below link for how to install and take a look at this youtube video demoing the prerelease:...
View ArticleBring any DOM Element to Top
myEl.parentNode.appendChild(myEl); Bring myEl to the top within its `parentNode`.
View Article
More Pages to Explore .....