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
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.4; | |
import "@openzeppelin/contracts/utils/Counters.sol"; | |
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol"; | |
import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; | |
import "hardhat/console.sol"; | |
contract NFTMarketplace is ERC721URIStorage { |
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 createDb() { | |
var db_name = 'jabber'; | |
var db_version = '1.0'; | |
var db_describe = 'Bro,its jabber'; | |
var db_size = 2048; | |
var db = openDatabase(db_name, db_version, db_describe, db_size, function(db) { | |
console.log(db); | |
console.log("Database opened Successfully! Or created for the first time !"); | |
createTable(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 ceaser_cipher(){ | |
this.alphabets=['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z']; | |
} | |
ceaser_cipher.prototype.encrypt=function(s,n){ | |
var plain_text=[...s]; | |
for(var i = 0, length1 = plain_text.length; i < length1; i++){ | |
plain_text[i]=this.alphabets[this.alphabets.indexOf(plain_text[i])+n]; | |
} | |
return plain_text.toString(); |