Skip to content

Instantly share code, notes, and snippets.

View leovarmak's full-sized avatar
🎯
Focusing

Karthik Varma leovarmak

🎯
Focusing
View GitHub Profile
@yhdesai
yhdesai / index.js
Created April 1, 2019 13:40
Cloud Vision API NodeJS Sample
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);
@sidd607
sidd607 / price_tracker.py
Last active February 27, 2019 09:19
Tracks the profit/loss of cryptco currencies through koinex ticker API
#!/usr/bin/env python
"""
author: sidd607@gmail.com
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
@montanaflynn
montanaflynn / CONCURRENCY.md
Last active April 20, 2024 17:00
Examples of sequential, concurrent and parallel requests in node.js

Concurrency in JavaScript

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.

@tomysmile
tomysmile / mac-setup-redis.md
Last active March 18, 2024 22:12
Brew install Redis on Mac

type below:

brew update
brew install redis

To have launchd start redis now and restart at login:

brew services start redis