This file contains 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
// Download multiple pdf. this force download instead open on browser | |
// Warning: with esternal url a CORS may occour | |
urls.forEach((url, i) => { | |
fetch(url) | |
.then(resp => { | |
resp.blob() | |
.then(blob => { | |
var downloadLink = document.createElement('a') | |
downloadLink.target = '_blank' | |
downloadLink.download = `document${i}.pdf` |
This file contains 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
==== store.js ==== | |
const enhancers = [ | |
applyMiddleware(...middlewares), | |
devtools(), | |
testEnhancer(), | |
]; | |
===== pluginStateManager.js ===== | |
export const pluginStateManager = (state) => { | |
try { |
This file contains 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
{ | |
"name": "blankapp", | |
"description": "", | |
"version": "0.0.0", | |
"main": "main.js", | |
"engines": { | |
"node": ">=0.10.0" | |
}, | |
"dependencies": { | |
"mqtt":"^1.0.0" |
This file contains 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 mraa = require('mraa'); | |
console.log("\n"); | |
console.log("╦┌┐┌┌┬┐┌─┐┬ ┬ ┬ ┬ ┬┌─┬┌┬┐┌─┐┬ ┬┌─┐┌┐┌"); | |
console.log("║│││ │ ├┤ │ │ └┬┘ ├┴┐│ │ │ ├─┤├┤ │││"); | |
console.log("╩┘└┘ ┴ └─┘┴─┘┴─┘┴ ┴ ┴┴ ┴ └─┘┴ ┴└─┘┘└┘"); | |
console.log("\nWelcome to the Intelly Kitchen tutorial based on Intel Edison and Lelylan \n"); | |
console.log("(This is a proof of concept and could not properly work as expected. Any help appreciated [email protected]) \n"); | |