Code Samples by Mitch Sandow hire.mitch@proton.me

CompiledFile.coffee

Main base class for node transpiler for JS / Coffeescript / SASS / LESS with automatic sourcemapping and compression.

expressRouteEventSource.coffee

An express middleware router that manages a pool of JS eventsource connections and uses node events to push messages to clients in the pool.

mithrilExtension.coffee

Custom helper extension for Mithril JS to add various features and shared data.

PDFGen.coffee

Module function to generate a report PDF in the browser, using various pieces of client data, as either a blob or URI string

HTML.php

A static class for use in managing and spawning instances from the HTMLObject / related classes. Including a static object pool to keep track of every HTML object spawned, to help with global searching and collection management and generic utilities.

HTMLBase.php

The base class for HTML objects and style block objects to share common interface features.

HTMLObject.php

The root class for interacting with HTMLObjects including nested HTMLObjects

SessionManager.php

A class for managing the session data for users logged into CMS portals, with built in forgery detection.

ballistic.js

An experimental physics program using real-world physical force calculations to simulate rocket trajectories and flight paths calculated in real-time second intervals, using Google Maps as a display engine.

bp.ui.elements.js

Part of a custom CMS system called Blueprint, this file allowed for uniform creation of specific form elements and other user interactive DOM items. Allowing for consistent styling and event binding for the entire CMS.

') .bind('setValue',function(e,v){ $(this).data('value',v).val(v); }) .data({ ...

bp.core.js

Also part of the Blueprint CMS showing a custom templating engine I wrote that behaves similar to SPRINTF in PHP, but accept jQuery items to be inserted in place of tokens, including any associated event handlers.

jamboo.js

The core library for the Jamboo unit testing engine I wrote for testing javascript code that relies on a browser in order to function and be tested properly. Similar to other unit testing frameworks it allows for the creation of custom test suites and sub-test that allow the user to define what a passing test would consist of, but also define if that test should be different from one browser to another.

runner.php

The master run file for the Jamboo unit testing engine that collects all the test suites that are to be run for that specific browser, runs all of then, waits to hear the results back from each one, and then creates an aggregate test result.

creativeEditor.classes.js

The various class definitions used for the Creative Editor library

creativeEditor.utilities.js

Helper methods and object prototypes to assist in some of the more common coordinate math problems and similar shared calculations

creativeEditor.core.js

The core of the Creative Editor system for managing user tool states, object manipulation based off user interaction, as well as direct pixel RGB modifications / effects.

You're Hired!

Quick Links

Coffeescript

CompiledFile.coffee •

expressRouteEventSource.coffee •

mithrilExtension.coffee •

PDFGen.coffee •

PHP

HTML.php •

HTMLBase.php •

HTMLObject.php •

SessionManager.php •

Javascript

ballistic.js •

bp.ui.elements.js •

bp.core.js •

jamboo.js •

creativeEditor.classes.js •

creativeEditor.utilities.js •

creativeEditor.core.js •

Mixed

runner.php •