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
<template> | |
<style> | |
/* styles for the custom element itself - lowest specificity */ | |
:host { display: block; } | |
</style> | |
<template if="{{ systemOk === false }}"> | |
<div class="alert alert-danger"> | |
Your browser don't support FileSystem api. <a href="https://www.google.com/intl/fr_fr/chrome/browser/">Please, download chrome</a><br/> |
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
/*! | |
* Html5 LocalFileSystem polymer webcomponent | |
* | |
* © AOÛT 2010 - MAI 2014 | Stéphane Labbé | |
* Released under the MIT license | |
* https://github.com/asicfr/polymerFileSystem/blob/master/LICENSE.txt | |
*/ | |
'use strict'; |
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
<!-- | |
* Html5 LocalFileSystem polymer webcomponent | |
* | |
* AOUT 2010 - MAI 2014 | Stephane Labbe | |
* Released under the MIT license | |
* https://github.com/asicfr/polymerFileSystem/blob/master/LICENSE.txt | |
--> | |
<!doctype html> | |
<html class="no-js"> |
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
<!-- | |
* Html5 LocalFileSystem polymer webcomponent | |
* | |
* AOUT 2010 - MAI 2014 | Stephane Labbe | |
* Released under the MIT license | |
* https://github.com/asicfr/polymerFileSystem/blob/master/LICENSE.txt | |
--> | |
<!doctype html> | |
<html class="no-js"> |
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
public class App implements FizzBuzzInterface { | |
private static final String result = "1\n2\nFizz\n4\nBuzz\nFizz\n7\n8\nFizz\nBuzz\n11\nFizz\n13\n14\nFizzBuzz\n16\n17\nFizz\n19\nBuzz\nFizz\n22\n23\nFizz\nBuzz\n26\nFizz\n28\n29\nFizzBuzz\n31\n32\nFizz\n34\nBuzz\nFizz\n37\n38\nFizz\nBuzz\n41\nFizz\n43\n44\nFizzBuzz\n46\n47\nFizz\n49\nBuzz\nFizz\n52\n53\nFizz\nBuzz\n56\nFizz\n58\n59\nFizzBuzz\n61\n62\nFizz\n64\nBuzz\nFizz\n67\n68\nFizz\nBuzz\n71\nFizz\n73\n74\nFizzBuzz\n76\n77\nFizz\n79\nBuzz\nFizz\n82\n83\nFizz\nBuzz\n86\nFizz\n88\n89\nFizzBuzz\n91\n92\nFizz\n94\nBuzz\nFizz\n97\n98\nFizz\nBuzz\n"; | |
@Override | |
public String call() { | |
return result; | |
} | |
} |
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
var montext = "test"; | |
var data = { | |
get text() { return montext; }, | |
set text(val) { montext = val; } | |
}; |
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
app.service('myService', ['$http', '$rootScope', function ($http, $rootScope) { | |
// data private access | |
var inData = { | |
cpt: 0, | |
mytext: 'hello who ?', | |
extData: undefined | |
}; | |
var loadData = function () { | |
console.log("loadData"); |
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
var app = angular.module('myApp', []); | |
app.controller('MainCtrl', ['$scope', 'myService', function ($scope, myService) { | |
console.log('online'); | |
$scope.data = myService.outData; | |
$scope.showData = function () { | |
myService.showData(); | |
}; | |
}]); |
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
<div data-ng-controller="MainCtrl"> | |
<h1>text: {{data.text}}</h1> | |
<input type="text" data-ng-model="data.text" /> | |
<h2>nb update: {{data.cpt}}</h2> | |
<button type="button" data-ng-click="showData()">Show</button> | |
<h2>text: {{data.extData}}</h2> | |
</div> |
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
/* | |
* http://techasite.blogspot.fr/ | |
* @author asic | |
*/ | |
print("begin javascript"); | |
print("instanciate Java ArrayList from javascript"); | |
var x = new java.util.ArrayList(4); |