background preloader

Javascript

Facebook Twitter

Underscore.js. Underscore is a JavaScript library that provides a whole mess of useful functional programming helpers without extending any built-in objects.

Underscore.js

It’s the answer to the question: “If I sit down in front of a blank HTML page, and want to start being productive immediately, what do I need?” … and the tie to go along with jQuery's tux and Backbone's suspenders. Underscore provides 80-odd functions that support both the usual functional suspects: map, filter, invoke — as well as more specialized helpers: function binding, javascript templating, deep equality testing, and so on. The project is hosted on GitHub. You can report bugs and discuss features on the issues page, on Freenode in the #documentcloud channel, or send tweets to @documentcloud. Collection Functions (Arrays or Objects) _.each(list, iterator, [context]) Alias: forEach Iterates over a list of elements, yielding each in turn to an iterator function.

Var sum = _.reduce([1, 2, 3], function(memo, num){ return memo + num; }, 0); => 6. QuoJS - Micro JavaScript Library. Aligning DOM Elements around a Circle « Ben Knows Code. I've been working on a project that requires elements to be positioned relative to an imaginary circle.

Aligning DOM Elements around a Circle « Ben Knows Code

I need to be able to support two different alignment scenarios. Both of these are illustrated below: I've added the imaginary circles as a reference for the alignment: I decided to start by figuring out where I needed to align my elements. We can any point on the circle using the following formula: (x',y')=(cx+r*cos(α),cy+r*sin(α)) TodoMVC. Gator - Simple Event Delegation in Javascript. Alertifyjs - An unobtrusive customizable JavaScript notification system. Unfortunately, I will no longer be maintaining alertify.js.

alertifyjs - An unobtrusive customizable JavaScript notification system

I have many ongoing projects that aren't leaving me with enough time to do what needs to be done. If anyone wants to create a fork and maintain - by all means go for it! It's been great seeing people use it and enjoy it and this decision is simply because I don't believe it's fair that developers are looking for help and not getting it. I wish I had more time or contributions to keep it going and make it better, but the sad reality is that not usually the case on these kinds of projects. Forks I will be updating this site to list forks of alertify.js. Documentation - Meteor.

Is it possible to use any HTML5 fanciness to export local storage to Excel. Base64.js - stringencoders - A collection of high performance c-string transformations. Essential Sublime Text 2 Plugins and Extensions. Best of JavaScript, HTML5 & CSS3 - Week of September 10, 2012 : Remote Synthesis. Best of JavaScript, HTML5 & CSS3 - Week of September 10, 2012 Posted on Sep 17, 2012 Lots of tutorials this week and, even though there were fewer new library releases, the Yoeman release garnered a ton of attention and a number of follow up posts, including a beginner tutorial on the Adobe Developer Connection thanks to Andy Matthews.

Best of JavaScript, HTML5 & CSS3 - Week of September 10, 2012 : Remote Synthesis

Yoeman seems deserving of the attention and I definitely recommend checking it out. While there are a lot of good posts this week, I also highly recommend the article on drawing pixels to the canvas by Dominic Szablewski - it is a fascinating read. Tutorials Eric Bidelman created a demo that captures live video from the webcam and creates a .webm file from it.Creating .webm video from getUserMedia() Pragmatic.js is a new style guide for JavaScript by Thomas Fuchs based upon his work on Zepto.Pragmatic.js—A pragmatic style guide to JavaScript Dr. Frameworks and Libraries Yeoman isn't supported on Windows (yet!) Mobile New and Updated Frameworks and Libraries Etc. Badass JavaScript. Yeoman, At Your Service. When kicking off a new application, we always seem to have libraries we need to manually find and add, boilerplate code that needs to be written and a thorough build and testing process we need to get setup.

Yeoman, At Your Service.

Today we’re excited to announce the launch of Yeoman – a project which hopes to simplify these steps in your developer workflow. Package management At the moment, adding and managing the libraries used in our applications is a very manual process for most developers. Take jQuery: navigate to the project page for the library, grab the latest version and then have to manually save or copy it into our project. With Yeoman, this can be done using one line in your terminal: yeoman install jquery. When jQuery releases a new version, we no longer have to go back to jQuery.com to fetch it. Thanks to Jacob Thornton, Alex MacCaw and their team for working on the Bower registry solution that makes these libraries available. Generators – scaffolds for your projects LiveReload Watch Process.

Jacobmarble/Lechosa. Canvas Tutorial - Draw a Circle. AppJS.

Single Page Apps

Techniques. Patterns. Store Libraries. Books. Tools. Yeoman. NodeJS. Javascript OOP. Template Engines. Jquery. AngularJS. BackboneJS. UnderscoreJS.