background preloader

CommonJS: JavaScript Standard Library

CommonJS: JavaScript Standard Library
Related:  JavaScriptJS Libraries

Spec Wiki JavaScript Charting Library - HTML5 Charts Build interactive HTML5 charts using our JavaScript charting library and feature-rich API set. Render them in any browser and on any device. Export them quickly and easily. Conquer your data visualization challenges. ZingChart offers the flexibility and resources to create stunning visualizations. View the Chart Gallery Want fast web charts? Want to do dataviz like the big boys? We needed a charting solution that is fast, scalable, and looks good. We now provide the most comprehensive and sophisticated financial charts in the industry and ZingChart helped us achieve that goal.Richard Radnay / CTO/CIOXTF, Inc. Download a Free Trial See Our Pricing

AMD · amdjs/amdjs-api Wiki This is a copy of the "AMD" document in the repo, kept here to maintain historical links. If this document differs from the one in the repo, the repo version is the correct one. The Asynchronous Module Definition (AMD) API specifies a mechanism for defining modules such that the module and its dependencies can be asynchronously loaded. It is unrelated to the technology company AMD and the processors it makes. API Specification define() function The specification defines a single function "define" that is available as a free variable or a global variable. define(id? id The first argument, id, is a string literal. module id format Module ids can be used to identify the module being defined, and they are also used in the dependency array argument. A module identifier is a String of "terms" delimited by forward slashes.A term must be a camelCase identifier, " The CommonJS module id properties quoted above are normally used for JavaScript modules. Relative module ID resolution examples: dependencies

Utiliser les différents tests d'égalité JavaScript fournit trois opérations permettant de comparer des valeurs : Selon la comparaison qu'on souhaite effectuer, on choisira une de ces opérations. En résumé, l'égalité faible effectuera une conversion des deux éléments à comparer avant d'effectuer la comparaison, l'égalité stricte effectuera la même comparaison mais sans conversion préalable (elle renverra toujours false si les types des deux valeurs comparées sont différents), enfin se comportera comme l'égalité stricte sauf pour les valeurs NaN, -0 et +0 : pour, -0 et +0 seront différents mais on aura, NaN) qui sera true. (Généralement, quand on compare NaN avec NaN en utilisant l'égalité stricte ou l'égalité faible, cela donne false afin de respecter la norme IEEE 754.). L'égalité stricte avec ===Edit L'égalité stricte compare deux valeurs et teste leur égalité. Ce test d'égalité stricte est presque toujours la meilleure des opérations à considérer pour ces tests. Égalité de valeursEdit

D3.js - Data-Driven Documents jehna/VerbalExpressions getify/You-Dont-Know-JS: A book series on JavaScript. @YDKJS on twitter. Best Practices for Node.js Development Last updated 13 October 2015 For most of the nearly twenty years since its inception, JavaScript lacked many of the niceties that made other programming languages like Python and Ruby so attractive: command-line interfaces, a REPL, a package manager, and an organized open-source community. Thanks in part to Node.js and npm, today’s JavaScript landscape is dramatically improved. What follows is a list of tips and techniques to keep you and your Node apps happy. This material is a curated and maintained version of a blog post on the same topic. Start new projects with npm init npm includes an init command which walks you through the process of creating a package.json file. It sets smart defaults for you, like inferring the module name from the parent directory name, reading your author info from ~/.npmrc, and using your git settings to determine repository. $ mkdir my-node-app $ cd my-node-app $ npm init Declare all dependencies $ npm install domready --save Specify a start script Try new things

2banner, which tells you when someone else is looking at the same web page 2banner, which tells you when someone else is looking at the same web page I was able to release a pretty nice piece of software today, courtesy of my employer, ZipRecruiter. If you have a family of web pages, and whenever you are looking at one you want to know when someone else is looking at the same page, you can use my package. The package is called 2banner, because it pops up a banner on a page whenever two people are looking at it. With permission from ZipRecruiter, I have put it on github, and you can download and use it for free. A typical use case would be a customer service organization. You can similarly trick out the menu page itself, to hide the menu items that someone is already looking out. I wanted to use someone else's package for this, but I was not able to find one, so I wrote one myself. The back-end database for recording who started looking at which pages and when. Often a project seems easy but the more I think about it the harder it seems.