Code Examples

Here you can find a list of code examples. Most are just documented functions. This is becoming my sort of personal code documentation repository. However, some examples have file attachments that you can download. All code exposed here is free and can be used without permission. No warranty is implied, but if you have questions about something, feel free to ask by posting a comment.

  • Emergent Task Timer

    The Emergent Task Timer is a very handy little stand alone flash application that helps you keep track of your time as you develop.

    Features:

    1. Slots to track individual tasks
    2. Bubbles representing 15 minute intervals. Every 15 minutes you click one correcponding to the task you're currently working on.
    3. A small alarm bell that rings every 15 minutes.
  • Send SSH Keys

    Use this command to send your public ssh key to a remote server in one line

    cat ~/.ssh/id_dsa.pub | ssh someguy@somesite.com "cat - >> ~/.ssh/authorized_keys"

  • Separate Email Addresses

    This is a quick script to diff two files which contain email addresses putting the emails in file A which do not exist in file B into file C.
  • Javascript Ajax Form Submitter with Validation using Jquery

    This is an example of an ajax form with nice javascript validation. It is nice because it is object oriented and cleanly separated from the global namespace. It uses jquery to do the heavy lifting and thereby makes the code even easier. It contains a good example of email validation as well.
  • SliderCarousel

    This is an object that makes use of jquery to create a carousel with a nice sliding effect between slide transitions. I've included examples of the html it needs to work and the initialization of it.