background preloader

Welcome - Polymer

Welcome - Polymer

Stapes.js - a (really) tiny Javascript MVC microframework Introduction For a quick introduction to Stapes, follow the tutorial, and write a todo app in less than 100 lines of code. Write your Stapes modules like this Then, use it like this. var module = new Module('Emmylou'); module.sayName(); Examples There are three examples available to get a taste on how to write a Stapes.js application. Code for these examples is available in the development download. Note that the two todo examples are also available from TodoMVC. Creation methods These methods aid in the creation and extension of classes, or modules. subclass Module.subclass( [object] ) Stapes.subclass( [object, classOnly] ) Create a new Stapes class that you can instantiate later on with new. Note that until Stapes 0.6.0 the preferred way of creating new modules was by using Stapes.create. You can add a constructor (the function that is run when you instantiate the class) property to the object. Note that it's perfectly valid to call subclass without any arguments at all. extend proto Event methods

Home - schema.org Polymer/polymer Thorax: Backbone + Handlebars Gamestorming Using elements - Polymer Edit on Github Introduction Polymer provides a large collection of elements for you to pick from. Of course, these elements have all of the features described in Custom Elements 101. Using them is straightforward: You don’t have to care how they work. Polymer’s set of elements includes the usual suspects like buttons and other UI components, but also includes non-UI elements like <polymer-ajax>. Installing elements The first step in using an element (or a set of elements) is to install it locally into your app using Bower. Installing a single element Elements can be installed individually as needed. bower install --save Polymer/polymer-ajax Note: Polymer/polymer-ajax is shorthand for the element’s github repo, Running this command adds a bower_components/ folder and fills it with <polymer-ajax>: yourapp/ bower_components/ platform/ polymer/ polymer-ajax/ Using the --save flag adds the element to your app’s bower.json file: Installing an element set <!

TodoMVC Custom elements 101 - Polymer Edit on Github Introduction If HTML was reinvented tomorrow, it would provide more features and greater capability than today’s built-in elements. For example, imagine you’re building a photo booth app to capture snapshots, display thumbnails, and cycle through recent photos. Fortunately, Custom Elements pave a path to Polymer’s “Everything is an element” philosophy. Custom element APIs A critical realization is that custom elements are no different than standard HTML elements. properties methods attributes events how the element handles its children Take an HTML <select>. <select selected="0"><option>Hello World</option></select> … or instantiated in JavaScript: var s = document.createElement('select'); s.innerHTML = '<option>Hello World</option>'; Once you have a reference to an element, you can attach event listeners, access properties, or call its methods: s.addEventListener('change', function(e) { alert(this.selectedIndex == 0); }); Guess what? Types of elements UI elements Non-UI elements

Getting Started with Android Studio Before installing the Android SDK, you must agree to the following terms and conditions. Terms and Conditions This is the Android Software Development Kit License Agreement 1. 1.1 The Android Software Development Kit (referred to in this License Agreement as the "SDK" and specifically including the Android system files, packaged APIs, and Google APIs add-ons) is licensed to you subject to the terms of this License Agreement. 2. 2.1 In order to use the SDK, you must first agree to this License Agreement. 3. 3.1 Subject to the terms of this License Agreement, Google grants you a limited, worldwide, royalty-free, non-assignable and non-exclusive license to use the SDK solely to develop applications to run on the Android platform. 3.2 You agree that Google or third parties own all legal right, title and interest in and to the SDK, including any Intellectual Property Rights that subsist in the SDK. 4. 5. 6. 7. 8. 9. 12. 13. 14. This download includes: Flexible Gradle-based build system.

Understanding Polymer - Polymer Edit on Github Polymer isn’t like other frameworks or libraries you might have used before. To fully understand what it is, you’ll need to understand Polymer’s world-view and take a quick tour through its three conceptual layers. Everything is an Element: The Polymer world-view The philosophy that “Everything is an element” is core to understanding Polymer. Ever since the beginning of the web, browsers have shipped with a default set of elements. Functional. Elements are pretty great. Polymer returns to our roots. That brings us back to the world-view of Polymer: Everything is an element When we say “element”, we mean a real element, with all of the great properties of a built-in element. The world looks different when you take this view. In the old world, script was your concrete, and the solution to most of your problems was to use gobs of it. Layers of Polymer There are three conceptual layers to Polymer: Next steps Custom Elements 101

Amazon hid a full app store in its Android app for six weeks and no one noticed | The Verge Back on September 9th of this year, Amazon released a big update to its main Android app, which lets you purchase things from your phone. That update added the ability to stream Prime Instant Video content on Android smartphones, albeit with a rather clunky set up process. Amazon was very vocal in touting the new Prime Instant Video features in its press release announcing them, but it didn't mention the fact that you can now download and install Android apps directly from Amazon's main app — no install of the separate Amazon Appstore needed. That little feature has flown under the radar for about six weeks or so, until TechCrunch discovered it earlier today. Amazon is offering an app store that competes with Google, yet can be downloaded from Google's own Play Store As TechCrunch notes, Amazon is essentially offering an app store that competes directly with Google's own Play Store and can be downloaded from the Play Store itself.

Related: