nullisnull.blogspot.com
null is null or not an object: Adaptive Layout Algorithm
http://nullisnull.blogspot.com/2010/08/adaptive-layout-algorithm.html
Null is null or not an object. The difference between human hemispheres is in how they process information. We are told that one is "linear" and the other is "parallel", or that one uses images and the other uses words, etc. Stay with me while I attempt to explain how attention span is divided between them and how to design a hemisphere-balanced layout. Fundamentally, the difference is in the timing. If one is linear and another parallel, how many linear units (bitwidth) can be processed at a time? FACES...
nullisnull.blogspot.com
null is null or not an object: Filter Overload Pattern
http://nullisnull.blogspot.com/2010/08/filter-overload-pattern.html
Null is null or not an object. Assume you are working with the toggle. Function in jQuery and that you want to do something different with it. This would require writing a different plugin and naming it differently or changing the default toggle function. In the simplest terms, the pattern starts with a function:. Function stuff(s){ if (typeof s = 'string') doStuffWithAString(s) else throwOrIgnore(); }. To illustrate how amusing it is to write overcomplicated code, consider the following. Function transm...
nullisnull.blogspot.com
null is null or not an object: February 2011
http://nullisnull.blogspot.com/2011_02_01_archive.html
Null is null or not an object. Let's start with a simple case, fading in an element turning up the opacity on it. It's a good idea to start with the interface (how we want the call to look, ideally). Remember simple is always best:. Then the actual function definition:. Above, the scale is 10. The loop will then distribute 10 calls evenly, starting with the last one (500ms) and ending with the first, 10ms in the future. 8212;the element in this case— and what can change. Since there are at least two oper...
nullisnull.blogspot.com
null is null or not an object: Random content generator
http://nullisnull.blogspot.com/2010/08/random-content-generator.html
Null is null or not an object. Var i = 12;. While(i- ) links.push({. Title: 'This is a title',. New Array( 100*Math.random() 0 1). Join('Lots of dolorem in my ipsum. '),. Subscribe to: Post Comments (Atom). How to work with me. Tricky, Tricky JavaScript - part two: setup. Malware — a report from the trenches. Asynchronous library loading with jQuery.Deferred. Seriously, what is jQuery? Follow me on Twitter. Also penned by yours truly.
nullisnull.blogspot.com
null is null or not an object: Asynchronous library loading with jQuery.Deferred
http://nullisnull.blogspot.com/2012/09/asynchronous-library-loading-with.html
Null is null or not an object. Asynchronous library loading with jQuery.Deferred. A common pattern for asynchronous library loading, without the use of script loaders ( requirejs. Example Using Facebook API. The pattern is simple. If the library in question has already loaded, it simply continues straight to. Otherwise it will call the deferred loader. Example Using Google Maps API. Sensor=true&callback=' callback; / 1. load google maps $(' script ', { src: src }).appendTo('body'); window[callbac...
nullisnull.blogspot.com
null is null or not an object: Simple animation algorithm
http://nullisnull.blogspot.com/2011/02/simple-animation-algorithm.html
Null is null or not an object. Let's start with a simple case, fading in an element turning up the opacity on it. It's a good idea to start with the interface (how we want the call to look, ideally). Remember simple is always best:. Then the actual function definition:. Above, the scale is 10. The loop will then distribute 10 calls evenly, starting with the last one (500ms) and ending with the first, 10ms in the future. 8212;the element in this case— and what can change. Since there are at least two oper...
nullisnull.blogspot.com
null is null or not an object: Write your own work contract
http://nullisnull.blogspot.com/2011/08/write-your-own-work-contract.html
Null is null or not an object. Write your own work contract. If your work is hot, you get to set the price. Does this happen in practice? I would choose the freedom to work on my own company, as I want to further my own career and life beyond what is reasonable to work for someone else. I do want to be doing something in 5 to 10 years and nobody is going to complain much if I leave a company then. It is then in my best interest to add that clause. In law, things always get muddy. That would be ridiculous.
nullisnull.blogspot.com
null is null or not an object: timeout and interval
http://nullisnull.blogspot.com/2012/06/timeout-and-interval.html
Null is null or not an object. I CSS3 animation shorthand. Keyframes once { /* something */ } @keyframes repeat { /* something */ } #thing { animation:once 3s } .things { animation:repeat 3s 300ms infinite }. SetTimeout(function once(){ /* something */ }, 3e3); / no direct way to specify an initial delay setInterval(function repeat(){ /* something */ }, 3e3);. Thing').timeout(function once(){ /* something */ }, 3e3); $('.things').interval(function repeat(){ /* something */ }, 3e3, 300);.
nullisnull.blogspot.com
null is null or not an object: Tiny carousel
http://nullisnull.blogspot.com/2012/02/tiny-carousel.html
Null is null or not an object. Thinking always beats compression. SetInterval(function(){ $('#carousel img:last-child, #testimonials blockquote:last-child') .fadeOut(1e3, function(){ $(this).prependTo(this.parentNode).show() }); }, 5e3);. Take a look at a simple animation algorithm. Subscribe to: Post Comments (Atom). How to work with me. Tricky, Tricky JavaScript - part two: setup. Malware — a report from the trenches. Asynchronous library loading with jQuery.Deferred. Seriously, what is jQuery?