Coding Resources

What is this?

A collection of PHP/JS/CSS/Images for quick use with coding ideas and mini projects, so I can hit the ground running.

Styles

Simple text formatting for headings, paragraphs, code, links and lists.

To Do

  1. Table CSS
  2. Forms CSS
  3. Make Blockquote style
  4. Make background gradients
  5. Phase out old lib dir
  6. Move this page
  7. Look at proper line-height typography / margins
  8. Fix more link positioning
  9. Describe layout classes
  10. Make right col in 2/3col layouts match

Project Ideas

Static Resources

A collection of images, Javascript and CSS for quick re-use.

Images

Assorted imagery, backgrounds, gradients, faux rounded corners and 1000 Icons

CSS

Javascript

There's a local version of jQuery (Compressed).

<script type="text/javascript" src="/code/_static/js/jquery.js"></script>

Analytics Include

<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script> <script type="text/javascript">_uacct = "UA-609105-1"; urchinTracker();</script>

Dynamic Resources

Load the dynamic resources, functions and classes.

require $_SERVER['DOCUMENT_ROOT'] . 'code/_resources/main.php';

Database

Get the single instance of a PEAR_DB object connected to staff_david table

$db = DBConn::getInstance();

PEAR

Available PEAR packages includes

More Code