Gerald's public fiddles
-
secrets of JS Ninja List 6.8
inheritance and overriding prototypes
-
secrets of JS Ninja List 6.2
instance methods versus prototype methods on a constructed class you wouldn't do this in practice it just shows operator precedence
-
secrets of JS Ninja List 5.18 immediate fns
using immediate functions to solve a loop problem.
-
example of memoization with closures
secrets of JS Ninja listing 5.14
-
example of Prototype binding
secrets of JS Ninja listing 5.9 creates a bind method on the Function prototype so that all it is easy to change the context on which something is operating
-
example of method overloading
secrets of JS Ninja listing 4.16 notice how the overloaded function definitions are contained within a recursive closure of ninjas. This closure is the function ninjas.find The functions that are returned are anonymous functions within ninjas.find. To prove this open the ninjas object and iterate through the function scope
-
example of overloading functions in JS
using variable length arguments list to effectively call diff't functions
-
secrets of JS Ninja Listing 3.3
secrets of JS Ninja List 3.3
-
secrets of JS Ninja figure 3.3
secrets of JS Ninja figure 3.3
-
secrets of JS Ninja List 2.6 async test
No-Library (pure JS), HTML, CSS, JavaScript
-
secrets of JS Ninja List 2.6 async test
No-Library (pure JS), HTML, CSS, JavaScript
-
secrets of JS Ninja List 2.5 trival test assertion
secrets of JS Ninja List 2-4 trival test assertion. added "results" variable
-
secrets of JS Ninja List 2-4 trival test assertion
secrets of JS Ninja List 2-4 trival test assertion
-
Ht4nr
jQuery 1.9.1, HTML, CSS, JavaScript
-
example of deferred resolving after attaching promises
see this http://stackoverflow.com/questions/8612894/how-to-chain-ajax-calls-using-jquery
-
alert blocks execution even async
SO question 20096590
-
poll url and reload when it responds
useful for kbox shutdown message
-
skillport p highlighting
this is a nice snippet that can be used as a bookmarklet on skillport to highlight the next paragraph
-
for kent fied's asset mapping
No-Library (pure JS), HTML, CSS, JavaScript
-
making select font bigger (for bill)
jQuery 1.9.1, HTML, CSS, JavaScript