Javascript is a programming language with a peculiar twist. Its event driven model means that nothing blocks and everything runs concurrently. This is not to be confused with the same type of concurrency as running in parallel on multiple cores. Javascript is single threaded so each program runs on a single core yet every line of code executes without waiting for anything to return. This sounds weird but it's true. If you want to have any type of sequential ordering you can use events, callbacks, or as of late promises.
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
async function quickstart() { | |
const vision = require('@google-cloud/vision'); | |
const client = new vision.ImageAnnotatorClient(); | |
const fileName = 'hindi.png' | |
// Read a local image as a text document | |
const [result] = await client.documentTextDetection(fileName); |
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
#!/usr/bin/env python | |
""" | |
author: [email protected] | |
version: 0.0.1 | |
Reads the buy details from a csv file (coins.csv) and calculates the wallets profit | |
Uses Koinex API tracker | |
csv format | |
Coin,Date,Quantity,BuyPrice,Cost |
type below:
brew update
brew install redis
To have launchd start redis now and restart at login:
brew services start redis