- use case for read slip payment https://aofiee.dev/ocr-scan-text/
pipenv install opencv-python
pipenv install tesseract-ocr
pipenv install tesseract
# for mac
brew install tesseract| package main | |
| import ( | |
| "fmt" | |
| ) | |
| func main() { | |
| ch := make(chan int) | |
| ch2 := make(chan int) |
| # Possibly obsolete: k3d create --name testcls1 --workers 3 | |
| k3d create --name testcls1 --workers 3 --server-arg "--no-deploy=traefik" --server-arg "--no-deploy=servicelb" | |
| # UPDATE: in newer versions onwards, this has evolved to (thanks to comments below): | |
| k3d cluster create --k3s-arg "--no-deploy=traefik@server:*" |
| class ApiClient { | |
| final Dio dio; | |
| final NetworkInfo networkInfo; | |
| final FlutterSecureStorage secureStorage; | |
| String? accessToken; | |
| /// The base options for all requests with this Dio client. | |
| final BaseOptions baseOptions = BaseOptions( | |
| connectTimeout: 5000, | |
| receiveTimeout: 3000, |
| --- | |
| METHOD 1 | |
| This should roughly sort the items on distance in MySQL, and should work in SQLite. | |
| If you need to sort them preciser, you could try using the Pythagorean theorem (a^2 + b^2 = c^2) to get the exact distance. | |
| --- | |
| SELECT * | |
| FROM table | |
| ORDER BY ((lat-$user_lat)*(lat-$user_lat)) + ((lng - $user_lng)*(lng - $user_lng)) ASC |
| import os | |
| from selenium import webdriver | |
| path = os.getcwd() | |
| options = webdriver.ChromeOptions() | |
| options.add_argument("user-data-dir=/Users/voratham/Library/Application Support/Google/Chrome/Profile 1") |
pipenv install opencv-python
pipenv install tesseract-ocr
pipenv install tesseract
# for mac
brew install tesseract| console.log("hello world !") | |
| var x = 2; | |
| function test(){ | |
| x = 3 | |
| } | |
| // function sum(a ,b){ | |
| // return a +b; | |
| // } |
| package main | |
| import ( | |
| "bufio" | |
| "bytes" | |
| "fmt" | |
| "io" | |
| "log" | |
| "os" | |
| ) |
| import "dart:html"; | |
| import "dart:async"; | |
| void main() { | |
| final InputElement input = querySelector("input"); | |
| final DivElement div = querySelector("div"); | |
| final validatorEmailFormatter = | |
| new StreamTransformer.fromHandlers(handleData: (inputValue, sink) { |
| class Deck { | |
| List<Card> cards = []; | |
| Deck() { | |
| var ranks = ["Ace", "Two", "Three", "Four", "Five"]; | |
| var suits = ["Diamonds", "Hearts", "Clubs", "Spades"]; | |
| for (var suit in suits) { | |
| for (var rank in ranks) { |