I hereby claim:
- I am neofreko on github.
- I am neofreko (https://keybase.io/neofreko) on keybase.
- I have a public key ASBOuUtqWIaiFCPUC_qesLBjMUSCr05Tjiaw2BZgk0j_vgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| # brew install tesseract | |
| # gem install rtesseract | |
| # gem install mini_magick | |
| # | |
| # example: | |
| # puts image_has_sentence?('/Users/me/Pictures/hi.png', 'hello world') | |
| require 'rtesseract' | |
| require 'mini_magick' |
| Wed Apr 25 07:10:44 UTC 2018 |
| const waitUntil = async (asyncCondition, timeoutMs) => { | |
| const wait = ms => new Promise(resolve => setTimeout(resolve, ms)); | |
| const intervalMs = 1000; | |
| const startTime = Date.now(); | |
| const result = await asyncCondition(); | |
| const endTime = Date.now(); | |
| const timeSpentMs = endTime - startTime; | |
| console.log(`checking waitUntil condition, timeout in: ${timeoutMs}ms`); |