References:
https://github.com/tesseract-ocr/tesseract/wiki/Compiling
http://stackoverflow.com/questions/33588262/tesseract-ocr-on-aws-lambda-via-virtualenv
| alias babel-node='babel-node --presets stage-0' | |
| ------ RECV ------ | |
| // babel-node recv2.js "#" | |
| // babel-node recv2.js "kern.*" | |
| const amqp = require('amqplib'); | |
| const args = process.argv.slice(2); | |
| if (args.length == 0) { |
| const Vision = require('@google-cloud/vision'); | |
| const vision = Vision(); | |
| const functions = require('firebase-functions'); | |
| const admin = require("firebase-admin"); | |
| admin.initializeApp(functions.config().firebase); | |
| exports.callVision = functions.storage.object().onChange(event => { | |
| const object = event.data; | |
| const fileBucket = object.bucket; | |
| const filePath = object.name; |
| const admin = require("admin"); | |
| function getFirebaseUser(req, res, next) { | |
| console.log("Check if request is authorized with Firebase ID token"); | |
| if ( | |
| !req.headers.authorization || | |
| !req.headers.authorization.startsWith("Bearer ") | |
| ) { | |
| console.error( | |
| "No Firebase ID token was passed as a Bearer token in the Authorization header.", |
| # Fast reading from the raspberry camera with Python, Numpy, and OpenCV | |
| # Allows to process grayscale video up to 124 FPS (tested in Raspberry Zero Wifi with V2.1 camera) | |
| # | |
| # Made by @CarlosGS in May 2017 | |
| # Club de Robotica - Universidad Autonoma de Madrid | |
| # http://crm.ii.uam.es/ | |
| # License: Public Domain, attribution appreciated | |
| import cv2 | |
| import numpy as np |
prettier-eslint |
eslint-plugin-prettier |
eslint-config-prettier |
|
|---|---|---|---|
| What it is | A JavaScript module exporting a single function. | An ESLint plugin. | An ESLint configuration. |
| What it does | Runs the code (string) through prettier then eslint --fix. The output is also a string. |
Plugins usually contain implementations for additional rules that ESLint will check for. This plugin uses Prettier under the hood and will raise ESLint errors when your code differs from Prettier's expected output. | This config turns off formatting-related rules that might conflict with Prettier, allowing you to use Prettier with other ESLint configs like eslint-config-airbnb. |
| How to use it | Either calling the function in your code or via [prettier-eslint-cli](https://github.co |
| /* | |
| * Copyright (C) 2015 Pavel Savshenko | |
| * Copyright (C) 2011 Google Inc. All rights reserved. | |
| * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. | |
| * Copyright (C) 2008 Matt Lilek <[email protected]> | |
| * Copyright (C) 2009 Joseph Pecoraro | |
| * | |
| * Redistribution and use in source and binary forms, with or without | |
| * modification, are permitted provided that the following conditions | |
| * are met: |
I’m looking for any tips or tricks for making chrome headless mode less detectable. Here is what I’ve done so far:
Set my args as follows:
const run = (async () => {
const args = [
'--no-sandbox',
'--disable-setuid-sandbox',
'--disable-infobars',| RN < 0.50 - watchman watch-del-all && rm -rf $TMPDIR/react-* && rm -rf node_modules/ && npm cache clean && npm install && npm start -- --reset-cache | |
| RN >= 0.50 - watchman watch-del-all && rm -rf $TMPDIR/react-native-packager-cache-* && rm -rf $TMPDIR/metro-bundler-cache-* && rm -rf node_modules/ && npm cache clean && npm install && npm start -- --reset-cache | |
| RN >= 0.63 - watchman watch-del-all && rm -rf node_modules && npm install && rm -rf /tmp/metro-* && npm run start --reset-cache | |
| npm >= 5 - watchman watch-del-all && rm -rf $TMPDIR/react-* && rm -rf node_modules/ && npm cache verify && npm install && npm start -- --reset-cache | |
| Windows - del %appdata%\Temp\react-native-* & cd android & gradlew clean & cd .. & del node_modules/ & npm cache clean --force & npm install & npm start -- --reset-cache |