Code

 
  VBScript Routines  
  Decimal to Binary
  Binary to Decimal
  Hex. to Decimal   Decimal to Hex.
 
JavaScript Routines
  setTimeout
  Rollovers
 
HTML
  Web Safe Colors
  Web Safe Color Picker

Coding for Fun and Profit

I write code for a living and as a hobby. Here are some snippets that I have found useful. Use them. Share them. Make friends.

Any code you find here may be used freely. No warranties are expressed or implied. Use at your own risk. Not labeled for individual resale. No animals were harmed in the writing of these code snippets. Warning: some code snippets may contain artificial colors. Not for use by children under the age of 3 years. May be too intense for some viewers. Subject to change without notice. No user-servicable parts inside. Not responsible for direct, indirect, incidental or consequential damages resulting from any defect, error or failure to perform. Sanitized for your protection. Use only in a well-ventilated area.

Contributions are welcome

VBScript Routines

Convert a decimal number into binary      255     11111111
Convert a binary number into decimal 11111111 255
Convert a hexadecimal number into decimal FF 255
Convert a decimal number into hexadecimal 255 FF

JavaScript Routines

setTimeout
Rollovers
Window Status
Format Currency

ASP Tidbits (VBScript)

I spend most of my day at work writing ASP. The challenge of writing web pages for e-commerce has long since faded, so I have turned to creating fun stuff with ASP.

A random maze generator in ASP
using a very simple random maze generator algorithm.

C/C++

Real programmers write in C/C++. And Assembly.

I wrote an application called POV-Modeler (using Microsoft Visual C++) to create 3D models for use with the POV-Ray raytracer. It is not complete, but it is useful in its current form.

DirectX, the graphics & sound programming library from Microsoft is fun to play around with.

Assembly

Lately I've been getting back into assembly programming, specifically assembly for PIC processors.

HTML and Related Materials

New Architect (formerly Web Techniques) magazine published two articles, co-authored by yours truely, on the subject of cross-browser compatability. You can find the articles here and here.

Here are a few bits on the subject of web safe colors.
Web Safe Colors
Web Safe Color Picker

 

Tell me what you think