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
ssh git@gitlab.com 2fa_recovery_codes |
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
import ComprehendMedical from 'aws-sdk/clients/comprehendmedical'; | |
import Config from 'react-native-config'; | |
import { getDrugDetails } from './utils'; | |
export function acm(text) { | |
return new Promise((resolve, reject) => { | |
let comprehendmedical = new ComprehendMedical({ | |
region: Config.AWS_REGION, | |
apiVersions: Config.AWS_MEDICAL_API_VERSION, | |
credentials: { |
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
const URL = `https://vision.googleapis.com/v1/images:annotate?key=${Config.GOOGLE_VISION_API_KEY}`; | |
export function ocr(base64) { | |
const request = { | |
requests: [ | |
{ | |
image: { | |
content: base64 | |
}, | |
features: [ | |
{ |
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
import React, { Component } from 'react'; | |
const requestUrls = [ | |
'https://jsonplaceholder.typicode.com/posts', | |
'https://jsonplaceholder.typicode.com/users', | |
'https://jsonplaceholder.typicode.com/todos', | |
'https://jsonplaceholder.typicode.com/comments', | |
'https://jsonplaceholder.typicode.com/albums', | |
'https://jsonplaceholder.typicode.com/photos' | |
] |
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
let count = 0; | |
self.addEventListener('message', e => { | |
console.log('web worker is starting...') | |
let { requestUrls } = e.data; | |
const req = () => { | |
fireRequest(requestUrls[count], token) | |
.then((data) => { | |
//posts to component to be store in db. |
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
initialValue | selling_price | cost_price | quantity | accumulator.TotalCost | accumulator.TotalRevenue | |
---|---|---|---|---|---|---|
0 | 20 | 5 | 4 | 20 | 80 | |
- | 25 | 5 | 10 | 70 | 330 | |
- | 10 | 10 | 2 | 90 | 350 | |
- | 15 | 15 | 8 | 210 | 470 | |
- | 20 | 5 | 4 | 230 | 550 |
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
accumulator | currentValue.selling_price | currentValue.quantity | Revenue | |
---|---|---|---|---|
0 | 20 | 4 | 80 | |
80 | 25 | 10 | 330 | |
330 | 10 | 2 | 350 | |
350 | 15 | 8 | 470 | |
470 | 20 | 4 | 550 |