Animated perspective while scrolling the page. Each section appear as a 3d block. Full CSS, no javascript.
A Pen by Wesley DEGLISE on CodePen.
Animated perspective while scrolling the page. Each section appear as a 3d block. Full CSS, no javascript.
A Pen by Wesley DEGLISE on CodePen.
Canvas based radar chart.
A Pen by Wesley DEGLISE on CodePen.
A Pen by Wesley DEGLISE on CodePen.
int notificationId = 001; | |
// Create a WearableExtender to add functionality for wearables | |
NotificationCompat.WearableExtender wearableExtender = | |
new NotificationCompat.WearableExtender() | |
.setBackground(bigBitmap); | |
// Build the notification | |
NotificationCompat.Builder notificationBuilder = | |
new NotificationCompat.Builder(this) |
<link rel="import" href="../core-icon-button/core-icon-button.html"> | |
<link rel="import" href="../core-toolbar/core-toolbar.html"> | |
<link rel="import" href="../core-header-panel/core-header-panel.html"> | |
<link rel="import" href="../paper-tabs/paper-tab.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { |
#AngularJS: encapsulate components and template together
AngularJS best pratices recommends to organise your code by components, however, when you need to declare template (ie. templateUrl attribute in your directive) then you are supposed to provide a path relative to your main script (usually app.js) which makes your components dependent of their positione in the file tree.
##Let's do it
Since javascript provide Document and HTMLDocument types and since document.scripts exists and do part of the job, I've decided to extend the Document prototype to provide getScriptAbsPath().
You can do it the AngularJS way by implementing a service, but to me it was more a problem at Javascript level.
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |