This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| # Copyright 2014 Gerwin Sturm, FoldedSoft e.U. / www.foldedsoft.at | |
| # | |
| # Licensed under the Apache License, Version 2.0 (the "License"); | |
| # you may not use this file except in compliance with the License. | |
| # You may obtain a copy of the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.0 | |
| # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <polymer-element name="demo-element"> | |
| <template> | |
| <paper-toggle-button checked="{{a}}"></paper-toggle-button> | |
| <paper-toggle-button checked="{{b}}"></paper-toggle-button> | |
| </template> | |
| <script> | |
| Polymer({ | |
| a: false, | |
| b: false, | |
| aChanged: function () { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Creates a menu entry in the Google Sheets UI when the document is opened. | |
| */ | |
| function onOpen(e) { | |
| SpreadsheetApp.getUi().createAddonMenu() | |
| .addItem('Start', 'showSidebar') | |
| .addToUi(); | |
| } | |
| /** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <link rel="import" href="../bower_components/polymer/polymer.html"> | |
| <link rel="import" href="../bower_components/google-signin/google-signin.html"> | |
| <link rel="import" href="../bower_components/paper-shadow/paper-shadow.html"> | |
| <link rel="import" href="../bower_components/paper-input/paper-autogrow-textarea.html"> | |
| <link rel="import" href="../bower_components/paper-input/paper-input-decorator.html"> | |
| <link rel="import" href="../bower_components/paper-button/paper-button.html"> | |
| <link rel="import" href="../bower_components/google-apis/google-client-api.html"> | |
| <polymer-element name="rick-roll"> | |
| <template> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Google Sign-in 2.0 - Necessary Client</title> | |
| <script src="https://apis.google.com/js/client:platform.js?onload=clientLoaded" async defer></script> | |
| </head> | |
| <body> | |
| <button id="enable_offline_access">Enable Offline Access</button> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <dom-element id="demo-hangout-app"> | |
| <template> | |
| <hangout-app on-ready="readyCallback"> | |
| <h1>My Hangout App</h1> | |
| </hangout-app> | |
| </template> | |
| </dom-element> | |
| <script> | |
| Polymer({ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Polymer({ | |
| is: 'with-debounce', | |
| properties: { | |
| property1: { | |
| type: String, | |
| observer: '_doSomething' | |
| }, | |
| property2: { | |
| type: String, | |
| observer: '_doSomething' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <dom-module id="request-data-binding1"> | |
| <template> | |
| <discovery-api-elements | |
| name="plus" version="v1"></discovery-api-elements> | |
| <google-signin | |
| client-id="..." | |
| scopes="..." | |
| is-authorized="{{isAuthorized}}"></google-signin> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| gulp.watch(['dev/**'], $.batch(function (events, cb) { | |
| var paths = []; | |
| events.on('data', function (evt) { | |
| paths.push(evt.path); | |
| }).on('end', function () { | |
| lr.changed({ | |
| body: { | |
| files: paths | |
| } | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // take all bower dependencies | |
| gulp.src(['bower_components/**/*']) | |
| // run all html files through crisper for CSP | |
| .pipe($.if('*.html', $.crisper())) | |
| // put everything into ./{{dest}}/components/ | |
| .pipe(gulp.dest(path.join(destDir, 'components'))); |