References:
https://github.com/tesseract-ocr/tesseract/wiki/Compiling
http://stackoverflow.com/questions/33588262/tesseract-ocr-on-aws-lambda-via-virtualenv
| ["js/ios-websocket-hack.js", "js/apprtc.debug.js", "js/appwindow.js"].forEach(function (path) { | |
| var script = document.createElement("script"); | |
| script.type = "text/javascript"; | |
| script.src = path; | |
| script.async = false; | |
| document.getElementsByTagName("head")[0].appendChild(script); |
| 1. Try running this simple Nightmare scripts , it returns nothing: | |
| 1 Nightmare = require ('nightmare'); | |
| 2 var show = process.argv.length>2 && process.argv[2]=='true' | |
| 3 console.log('show = '+show) | |
| 4 | |
| 5 const nightmare = Nightmare({ show: show }); | |
| 6 | |
| 7 nightmare | |
| 8 .goto('http://google.com') |
| 'use strict'; | |
| var AWS = require('aws-sdk'); | |
| var S3 = new AWS.S3(); | |
| var readline = require('readline'); | |
| exports.handler = function (event, context) { | |
| //Get S3 file bucket and name | |
| //Make sure to loop through event.Records, don't assume there is only 1 in production!!! | |
| var bucket = event.Records[0].s3.bucket.name; | |
| var key = event.Records[0].s3.object.key; |
| var targetEmail = '{TARGET_EMAIL_ADDRESS}' | |
| var fromEmail = '{FROM_EMAIL_ADDRESS}' | |
| var bccEmail = '{BCC_EMAIL_ADDRESS-TO_VERIFY}' | |
| var sesAccessKey = '{ACCESS_KEY}' | |
| var sesSecretKey = '{SECRET_KEY}' | |
| exports.handler = function(event, context) { | |
| sendMail(context); | |
| }; |
| console.log("%cWarning message", "font: 2em sans-serif; color: yellow; background-color: red;"); | |
| }, 1); | |
| credit : https://stackoverflow.com/questions/21692646/how-does-facebook-disable-the-browsers-integrated-developer-tools | |
| initVideo () { | |
| // init video | |
| if (!navigator.mediaDevices || !navigator.mediaDevices.enumerateDevices) { | |
| console.log('video not support') | |
| return | |
| } | |
| navigator.mediaDevices.enumerateDevices() | |
| .then((xs) => { | |
| this.videoDevices = xs | |
| .filter((x) => x.kind.indexOf('video') >= 0) |
| Todo: | |
| ====== | |
| 1. | |
| 2.calendar | |
| 2.1 add 2 additionals fields | |
| https://www.wishbeer.com/th/home/328-hoegaarden-330-ml-49.html |