Michael's public fiddles
-
Testing Suite (assert & log)
My basic functions for testing. This contains assert to test a condition and list desciption of test color coded to display results(green pass, red fail) and also log() to simulate console.log in the actual body of the page.
-
Polyfils if needed
Collection of various Poilyfills added as needed. Mostyly IE8 stuff
-
Private Console
Private JavaScript menu based console
-
Patterns Factory, Decorator, Observer & "Module"
Short examples of a simple module, the Factory Pattern, Decorator Pattern and Observer. I made these as simple as I could just to show their basic functionality.
-
Event Handler Object
A wrapper object that will grab events and then send them to the proper place
-
Color Schemer
A Module to build color schemes
-
Fake Array Constructor
This is just an exercise in mimicking the native JavaScript Array constructor function. This code has no value besides educational.
-
ClSS Jmp3r
My class jumper console project
-
Mike's Convenience Store
This is a cache of convenience functions... Convenience Store.. I started this on 3/24/2914 and hope to add a function every couple days.
-
Draggable Divs
Module for dragging Divs around the screen. They are chosen by having the classname "draggable"
-
Testing Suite (assert & log)
My basic functions for testing. This contains assert to test a condition and list desciption of test color coded to display results(green pass, red fail) and also log() to simulate console.log in the actual body of the page.
-
Memoizing functions using closures
This is an example I replicated on my own from JavaScript Ninja. It should be identical to Listing 5.14 in the book
-
Recursive Closure timer
I can up with this timer for my game Rederannged. It is a timer object that is initialized via the objects startClock method and then it runs through a closure until the objects runClock property is set to false.
-
Testing Suite (assert & log)
My basic functions for testing. This contains assert to test a condition and list desciption of test color coded to display results(green pass, red fail) and also log() to simulate console.log in the actual body of the page.
-
Prototype Bind
From the Ninja book, dealing with Closures and Partial/Curry Functions. Binds an objects context to a Function via a bind method we add to the Function object
-
Closure Animation
This is basic 4 div animation, each doing different timers. Without closures these wouldn't work because they would all be fighting over the same variables
-
Testing Suite (assert & log)
My basic functions for testing. This contains assert to test a condition and list desciption of test color coded to display results(green pass, red fail) and also log() to simulate console.log in the actual body of the page.
-
Closures
Casual closure scope tests
-
Overload Method Function
Overload Methods with function length
-
Testing Suite (assert & log)
My basic functions for testing. This contains assert to test a condition and list desciption of test color coded to display results(green pass, red fail) and also log() to simulate console.log in the actual body of the page.