dustindiaz.com
Programming Brain Teaser
http://www.dustindiaz.com/programming-brain-teaser
I am dustin diaz. Don't worry about it. Tuesday Jul 8 2008. The problem is simple. First, you have an array. It looks like this:. Var arr = ['a', 'b', 'c', 'c', 'd','e', 'e', 'e', 'e', 'e', 'f', 'e', 'f', 'e', 'f', 'a', 'a', 'a', 'f', 'f', 'f'];. Be sure to use the array above in your example. You can iterate through an array easily with a batch function like forEach. ArrforEach(funciton(item, index, ar) { / do stuff here });. In the end, we'd like to have an output that looks like the following:. Hi, my...
dustindiaz.com
JavaScript Fading Tooltips
http://www.dustindiaz.com/sweet-titles
I am dustin diaz. Don't worry about it. Wednesday Aug 31 2005. No It's not a knock-off from NICE Titles. Nor is it trying to improve on Dunstan's revised attempt. And it most definitely isn't ripped from one of those event-handler infested scripts from Dynamic Drive. No It's none of those. Instead I had two goals for this script. Make the code cleaner and much more condense - with in fact - less code. Improve the tooltip effect. Download Sweet Titles 1.0. What's the big deal? How do I implement this on '...
headstart.io
Headstart
https://headstart.io/js-setup
Home — What and Why. Folder Structure. The default boilerplate files comes bundled with a few libraries and patches and a basic setup to get you started right away. Light enough for projects needing basic javascript or jQuery, but easily extendible for larger sites or applications. 126; Patches for IE. 126; Plugins and third-party libraries. 126; Main and page-specific code. Files prefixed with an underscore will be excluded. From the build process. By enabling the conditional comment in. 126; A bullet...
dustindiaz.com
Something changed
http://www.dustindiaz.com/something-changed
I am dustin diaz. Don't worry about it. Thursday Apr 29 2010. And not just this website. Things are different now like, for example, my friends, my interests, and to sound nerdy, the web. All different for the better. I've been a bit under the blog radar this last year. @Erin and I have been busy with our separate jobs, also creating our joint photography effort with Flash Bullet. Preview. Some folks already have. A full bar sits in my living room. Erin has an American visa. I like fish, more. Unofficial...
dustindiaz.com
Asynchronous method queue chaining in JavaScript
http://www.dustindiaz.com/async-method-queues
I am dustin diaz. Don't worry about it. Asynchronous method queue chaining in JavaScript. Thursday May 6 2010. It's an extremely popular pattern these days in JavaScript. It's easily achieved by continually returning a reference to the same object between linked methods. However one technique you don't often see is queueing up a chain of methods,. By which functions can be linked together. Independent of a callback. Ajax('/server/results.json').filter(remove duplicates).append('div#results');. In the gra...
dustindiaz.com
Crouching Ender, hidden command
http://www.dustindiaz.com/ender-cli
I am dustin diaz. Don't worry about it. Crouching Ender, hidden command. Saturday Apr 23 2011. For those of you following Ender. Matador: The Obvious MVC Framework for Node. Crouching Ender, hidden command. Enderjs - The open submodule library. Qwery - The Tiny Selector Engine. Smallest DOMReady code, ever. Script.js - Another JavaScript loader. About that slowness on Twitter. Asynchronous method queue chaining in JavaScript. Unofficial Twitter Widget Documentation. Get JS Design Patterns.
dustindiaz.com
JavaScript Animate
http://www.dustindiaz.com/javascript-animate
I am dustin diaz. Don't worry about it. Saturday Jul 3 2010. Sort of an old topic for these times, but I thought I'd share a small snippet I wrote about a year ago for the live updating Twitter widgets. Which required a tad bit of animation without the use of a library. Of course, anyone doing a large amount of animation will use some JavaScript library. Or, when available in a browser - CSS transitions. The background on its design was from a technique Y.U.I. Elstyle.webkitTransitionProperty; }();.
dustindiaz.com
Better ways to writing JavaScript
http://www.dustindiaz.com/javascript-no-no
I am dustin diaz. Don't worry about it. Better ways to writing JavaScript. Sunday Dec 2 2007. Let me say it up front before you read the rest of this. This article is for beginners. This past week I decided to get involved with support requests in development forums for the sake of giving back (and it being close to Christmas time). I particularly cruised the Sitepoint JavaScript forum. Be doing in JavaScript, but here are most common. Stop writing document.getElementById. Foo', 'bar', 'baz');. Var addEv...
dustindiaz.com
Seven hottest web 1.0 techniques to trick out your webpage
http://www.dustindiaz.com/web-1-point-oh-techniques
I am dustin diaz. Don't worry about it. Seven hottest web 1.0 techniques to trick out your webpage. Thursday Nov 22 2007. Today the web is full of poorly written scripts with a low level of attention to detail. In this article I'm going to share with you some of the hottest development techniques of our time that will no doubt streamline your development and impress you friends. So without further ado: The seven hottest web 1.0 techniques to trick out your webpage. Feel free to use any size! For example,...
SOCIAL ENGAGEMENT