This file contains hidden or 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
var Datastore = require('nedb') | |
const path = require('path') | |
var crypto = require('crypto'); | |
var assert = require('assert'); | |
var algorithm = 'aes256'; | |
var key = 'password'; | |
var db = {} |
This file contains hidden or 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
function getUSD($amount){ | |
$url = "https://www.google.com/search?q=usd+to+inr"; | |
$ch = curl_init(); | |
curl_setopt($ch, CURLOPT_URL,$url); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); | |
$result = curl_exec($ch); | |
$data = explode("1 US Dollar = ",$result); | |
$OneUSD = (float) substr($data[1],0,10); |