Skip to main content

Home/ javascript/ Group items tagged maps

Rss Feed Group items tagged

Javier Neira

Three map implementations in javascript. Which one is better? - Stack Overflow - 1 views

  • if (!Array.prototype.map) {  Array.prototype.map = function(fun /*, thisp*/)   {    var len = this.length >>> 0;  // make sure length is a positive number    if (typeof fun != "function") // make sure the first argument is a function      throw new TypeError();    var res = new Array(len);  // initialize the resulting array    var thisp = arguments[1];  // an optional 'context' argument    for (var i = 0; i < len; i++) {      if (i in this)        res[i] = fun.call(thisp, this[i], i, this);  // fill the resulting array    }    return res;  };}
  •  
    if (!Array.prototype.map) { Array.prototype.map = function(fun /*, thisp*/) { var len = this.length >>> 0; // make sure length is a positive number if (typeof fun != "function") // make sure the first argument is a function throw new TypeError(); var res = new Array(len); // initialize the resulting array var thisp = arguments[1]; // an optional 'context' argument for (var i = 0; i < len; i++) { if (i in this) res[i] = fun.call(thisp, this[i], i, this); // fill the resulting array } return res; }; }
Julian Knight

jQuery and Google Maps Tutorial: #1 Basics: jQuery, Google Maps - 0 views

  •  
    "There are many times I want to leverage jQuery's strengths to create a custom Google Maps mashup. In this tutorial, I will walk you through how to get started using jQuery inside the Google Maps environment. I will assume nothing, and explain each piece in detail."
mahesh 1234

Hibernate Tutorial - javatpoint - 0 views

  •  
    Hibernate Tutorial. In this hibernate tutorial, we will learn basics of hibernate, inheritance mapping, collection mapping, component mapping, HQL, HCQL, Named Query, Caching and Integration of Hibernate with other frameworks.
Ivan Pavlov

Service Mapping Description Proposal - JSON Schema - 0 views

  •  
    A Service Mapping Description (SMD) is a JSON representation describing web services. An SMD can defines the various aspects of a web service such that clients can coherently interact with the web services. An SMD can be used by generic tools to generate interfaces, human and programmatic, to access available web services. A wide array of web services can be described with SMD including REST services and JSON-RPC services. The SMD format is designed to be flexible, compact, simple, readable, and easily implemented.
Hussain M Elius

Building an interactive map with jQuery instead of Flash - 0 views

  •  
    A case study
Javier Neira

Ajaxian » ECMAScript Edition 5: WebKit JavaScriptCore Progress - 0 views

  •  
    * Object.getPrototypeOf * Object.getOwnPropertyDescriptor * Object.keys * Object.defineProperty * Object.defineProperties * Object.create * Object.getOwnPropertyNames * JSON.stringify * JSON.parse * Date.now: Has been in JSC for a long time. * Date.prototype.toISOString * Date.prototype.toJSON * String.prototype.trim * "Array extras": Array.prototype.{indexOf,lastIndexOf,every,some,forEach,map,filter,reduce,reduce
yc c

Ident Engine - 1 views

  •  
    Without much conscious thought, most of us have built identities across the web. We've filled in profiles, uploaded photos, videos, reviews and bookmarks. The Ident Engine uses semantic web API's to bring together these web footprints.
  •  
    JavaScript library that retrieves and aggregates social profiles from various sites and networks. Currently supports 72 sites and 149 endpoint mappings * 12seconds.tv * 43things.com * 43people.com * backnetwork.com * backtype.com * barcampbrighton3.backnetwork.com * barcamplondon5.backnetwork.com * blip.fm * blip.tv * blogspot.com * blogger.com * brightkite.com * claimid.com * cocomment.com * corkd.com * dconstruct08.backnetwork.com * del.icio.us * digg.com * disqus.com * djangopeople.net * dopplr.com * edenbee.com * emberapp.com * facebook.com * ffffound.com * flickr.com * fotb08.backnetwork.com * fotolog.com * friendfeed.com * getsatisfaction.com * github.com * google.com * hi5.com * huffduffer.com * identi.ca * jaiku.com * jpgmag.com * krop.com * last.fm * linkedin.com * livejournal.com * ufapi.lab.madgex.com * mashed08.backnetwork.com * meetup.com * microformats.org * mybloglog.com * mytvshows.org * mynameise.com * myopenid.com * myspace.com * newsvine.com * odeo.com * orkut.com * picasaweb.google.com * plaxo.com * plazes.com * profilactic.com * readernaut.com * seesmic.com * slideshare.net * stumbleupon.com * technorati.com * threadless.com * timespeople.nytimes.com * tumblr.com * twitter.com * upcoming.yahoo.com * vimeo.com * vox.com * spaces.live.com * yelp.com * youtube.com Content types definitions * Activity * Audio * Bookmarks * Entries * Events * Friends * Friends Status * Images * Interests * Lifestream * None * Profile * Resume * Services * Slides * Status * Video Schemas * Atom * FOAF * None * Rss * XFN * XFN-hCard * hAtom * hCalendar * hCard * hResume
yc c

Underscore.js - 4 views

  •  
    Underscore is a utility-belt library for Javascript that provides a lot of the functional programming support that you would expect in Prototype.js (or Ruby), but without extending any of the built-in Javascript objects. It's the tie to go along with jQuery's tux.
  •  
    Underscore is a utility-belt library for JavaScript that provides a lot of the functional programming support that you would expect in Prototype.js (or Ruby), but without extending any of the built-in JavaScript objects. It's the tie to go along with jQuery's tux. Collections each, map, reduce, detect, select, reject, all, any, include, invoke, pluck, max, min, sortBy, sortedIndex, toArray, size Arrays first, last, compact, flatten, without, uniq, intersect, zip, indexOf, lastIndexOf Functions bind, bindAll, delay, defer, wrap, compose Objects keys, values, extend, clone, isEqual, isElement, isArray, isFunction, isUndefined Utility noConflict, identity, uniqueId, template
Javier Neira

InfoQ: ECMAScript 5 released - 1 views

  • The introduction of strict mode aims to avoid common coding problems in ECMAScript applications. This is achieved with the presence of a lone string literal in a unit (script or function): "use strict;"
  • for either the entire script (if at the top of the script) or for a single function (if the first part of a function).
  • var i=3 is needed
  • ...10 more annotations...
  • and introducing new variables through eval cannot occu
  • delete cannot be used against arguments, functions or variables or other properties with the configurable flag set to false
  • with statements, often a source of errors, are no longer used and considered syntax errors
  • Functions can no longer have duplicate arguments with the same name Objects can no longer have duplicate properties with the same name
  • Access to the global object becomes a runtime error
  • A new JSON object with parse and stringify to support efficient generation of JSON data; like eval but without the security implications of being able to reduce code
  • Array now has standard functions, such as indexOf(), map(), filter(), and reduce()
  • Object now has seal()
  • and freeze()
  • Object.getPrototypeof() returns the prototype of the given object
1 - 11 of 11
Showing 20 items per page