wizard04


Member since 06/17/2008

Name: Andy Harrison

wizard04

Location: Woodbridge, VA

54 snippets

12 profile views

95 Comment(s) Posted

View their favorites

Profile

All time reputation: 119

Achievement

first submission:submitting first snipplet

wizard04's Recent Snippets



« Prev 1 2
  1. FAV

    ISO 8601 date conversion

    This requires my [date formatting script](http://snipplr.com/view/54806/javascript-date-formatting/). (date).toISO() converts the Date object to an ISO 8601 string Date.fromISO() converts an ISO 8601 string to a Date object
    JavaScript 5 views posted 8 years ago wizard04
  2. FAV

    Get time intervals between two Dates

    JavaScript 2 views posted 8 years ago wizard04
  3. FAV

    Get ID of last inserted record in Access

    Get the value of the autonumber field for the last record inserted into an Access database via the current connection.
    SQL 3 views posted 8 years ago wizard04
  4. FAV

    JavaScript Date Formatting

    Format a date into a string using several string variables. Usage: (new Date("6/6/2011")).format("%W, %B %d%o, %Y"); Result: Monday, June 6th, 2011
    JavaScript 8 views posted 8 years ago wizard04
  5. FAV

    typeOf - simple yet robust

    Brilliant solution using Object.prototype.toString() Test cases included (commented out)
    JavaScript 2 views posted 8 years ago wizard04
  6. FAV

    Cross-browser event registration

    Enhanced cross-browser event handling
    JavaScript 2 views posted 8 years ago wizard04
  7. FAV

    Mouse Event Button

    Returns an object with the `event.button` values of both the W3C and Microsoft models.
    JavaScript 3 views posted 8 years ago wizard04
  8. FAV

    MouseEnter/Leave Handlers 2

    These functions allow you to set a handler for a mouseleave/enter event.
    JavaScript 4 views posted 8 years ago wizard04
  9. FAV

    Remove tracking script in Google search results

    A recent update to either Google's search results page or Firefox's Tab Mix Plus add-on has prevented a locked tab from opening links in a new tab. This Greasemonkey script removes the tracking code on the Google links that causes the problem. I don'...
    JavaScript 4 views posted 9 years ago wizard04
  10. FAV

    List files in a directory

    ASP saved by 4 people 3 views posted 9 years ago wizard04
  11. FAV

    Serve HTML Table as Excel Worksheet

    ASP saved by 16 people 4 views posted 9 years ago wizard04
  12. FAV

    JavaScript Type Tests

    A more useful version of `typeof` and functions to test if a parameter is of a specified type.
    JavaScript 4 views posted 10 years ago wizard04
  13. FAV

    JavaScript Classes

    An implementation of class inheritance in JavaScript.
    JavaScript 1 views posted 10 years ago wizard04
  14. FAV

    --Snipplr-- Workaround: Code in Comments

    For some reason, Snipplr has decided not to HTML-encode <code>&lt;</code> and <code>&gt;</code> signs (i.e., replacing them with `&lt;` and `&gt;`) that a user inputs into a comment box, and instead strips anything that looks like a tag from the comm...
    Other 16 views posted 10 years ago wizard04
  15. FAV

    Google Translate Bookmarklet

    Select some text to translate, or don't select anything to translate the entire page.
    JavaScript 2 views posted 10 years ago wizard04
  16. FAV

    VBScript Regular Expression Search and Replace Functions

    Functions to make using regular expressions a bit easier. They're named after the respective PHP function.
    ASP saved by 18 people 3 views posted 10 years ago wizard04
  17. FAV

    Testing for Empty Arrays

    Checks if an array has been initialized, even if it is a dynamic array.
    ASP saved by 4 people 2 views posted 10 years ago wizard04
  18. FAV

    VBScript MS Access Database Connection

    ASP saved by 4 people 2 views posted 10 years ago wizard04
  19. FAV

    Apache Redirect from *.example.com to example.com

    Apache saved by 16 people 4 views posted 10 years ago wizard04
  20. FAV

    Embedding Objects in HTML

    For cross-browser code--which is not necessarily valid--the [Embedded Media HTML Generator](http://cit.ucsf.edu/embedmedia/step1.php) provides a great starting point.
    HTML saved by 9 people 6 views posted 10 years ago wizard04
  21. FAV

    DzR Master Stylesheet (Part III, IE)

    Fixes and fallbacks for IE for [my reset stylesheet](http://snipplr.com/view/16353/ "DzR Full CSS Reset"). Actually two separate stylesheets: one for IE in general and one for IE6 specifically. [Part I](http://snipplr.com/view/16353/ "DzR Maste...
    CSS 3 views posted 10 years ago wizard04
  22. FAV

    DzR Master Stylesheet (Part II, Classes)

    An add-on to [my reset stylesheet](http://snipplr.com/view/16353/ "DzR Full CSS Reset"). Many helpful classes for layout, writing styles, paged media, etc. For the `printHref` class, you'll need to replace "example.com" with your own domain. [P...
    CSS 4 views posted 10 years ago wizard04
  23. FAV

    DzR Master Stylesheet (Part I, Reset)

    A very thorough CSS reset stylesheet I created for HTML 4.01 using CSS 3 (and older). [Part II](http://snipplr.com/view/16354/"DzR Master Stylesheet (Part II, Classes)") [Part III](http://snipplr.com/view/16355/ "DzR Master Stylesheet (Part...
    CSS 5 views posted 10 years ago wizard04
  24. FAV

    Regex for "tel" URIs

    Regular Expression saved by 9 people 7 views posted 11 years ago wizard04
  25. FAV

    Good IE6 PNG Fixes

    There are several fixes out there that work in different ways, but none of them are perfect (especially regarding background images). Here's a list of the ones I've found that work reasonably well&mdash;try them out to find one that works for your w...
    JavaScript 0 views posted 11 years ago wizard04
  26. FAV

    CSS Media Type Support

    Test page to check the support of different CSS media types in browsers. If you go into Print Preview, for example, the Print media type should show as "In Use" if it is supported.
    CSS 3 views posted 11 years ago wizard04
  27. FAV

    Sort Gmail Messages by Subject

    This is a very simple bookmarklet that will temporarily sort the *visible* messages in Gmail by subject. You'll have to run it again each time Gmail refreshes the list. [Sort Gmail Messages](javascript:(function(&#41;{function%20f(r&#41;{var%20t=r...
    JavaScript 3 views posted 11 years ago wizard04
  28. FAV

    MouseEnter/Leave Handlers

    These functions allow you to easily set a handler for a virtual mouseleave/enter event. This requires my [MouseBoundaryCrossing](http://snipplr.com/view/8206/crossbrowser-mouseenterleave-solution/) class.
    JavaScript saved by 4 people 2 views posted 11 years ago wizard04
  29. FAV

    Snipplr Plain/Highlighted Text Greasemonkey Script

    When you're viewing an older version of a snippet, the Plain Text and Highlighted Text links point back to the latest version. This greasemonkey script fixes those links to point to the version you're currently viewing.
    JavaScript 1 views posted 11 years ago wizard04
  30. FAV

    Millisecond Equivalent of Time Interval

    JavaScript 1 views posted 11 years ago wizard04
« Prev 1 2