Skip to content

Instantly share code, notes, and snippets.

View deepak-likes-code's full-sized avatar
🏠
Working from home

Deepak deepak-likes-code

🏠
Working from home
View GitHub Profile
{
"name": "Product Video Agent",
"nodes": [
{
"parameters": {
"formTitle": "Product Details",
"formDescription": "Add the product details to get a stunning product video",
"formFields": {
"values": [
{
@deepak-likes-code
deepak-likes-code / apify.json
Created May 13, 2025 12:56
DaaS JSON format from Apify API
[{"id":"5aaf8c96a6da98c3450618f7","firstName":"Vinay","lastName":"Singh","emailAddress":"vinay.singh@esuccess.ai","headline":"Chief Executive Officer","linkedInProfileUrl":"http://www.linkedin.com/in/singhvinay","emailStatus":"verified","profilePictureUrl":null,"twitterProfileUrl":null,"githubProfileUrl":null,"facebookProfileUrl":null,"companyId":"658e503f7e04c00576d90d70","stateName":"Delhi","cityName":null,"countryName":"India","likelyToEngage":false,"departmentNames":["c_suite"],"subDepartmentNames":["executive"],"jobSeniority":"c_suite","jobFunctions":[],"contactPhoneNumbers":[],"intentStrength":null,"displayIntent":false,"catchallEmailDomain":false,"companyName":"eSuccess AI Technologies","rawAddress":"South Delhi, Delhi, India","linkedInUserId":null,"salesforceUserId":null,"creationDate":"2024-08-09T15:32:44.299Z","sourceOfEmail":"crm_csv","lastActiveDate":null,"hubspotVisitorId":null,"hubspotOrgId":null,"cleanedPhoneNumber":null,"lastUpdatedDate":"2024-08-09T15:32:44.299Z","presenceLevel":"full","custo
/*
* Header format:
*
* Bit
* Byte 7 4 3 0
* +----+----+
* 0 |xxxx|ffff|
* +----+----+
*
* +----+----+
@deepak-likes-code
deepak-likes-code / assembly_optimisation.sol
Created September 23, 2023 19:23
Node Guardian Gas Optimsation Quest
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.19;
abstract contract Challenge {
/**
* @notice Returns a copy of the given array in a gas efficient way.
* @dev This contract will be called internally.
* @param array The array to copy.
* @return copy The copied array.
@deepak-likes-code
deepak-likes-code / _document.js
Created December 20, 2021 07:55
Code wherein Freshchat has been integrated
import Document, { Html, Head, Main, NextScript } from 'next/document';
import DOMPurify from 'isomorphic-dompurify';
class JiraafDocument extends Document {
static async getInitialProps(ctx) {
const initialProps = await Document.getInitialProps(ctx);
return { ...initialProps };
}
render() {
@deepak-likes-code
deepak-likes-code / deploy.js
Created November 24, 2021 17:08
hardhat deploy to test
const { ethers } = require("hardhat");
async function main() {
const MyToken = await ethers.getContractFactory("CreatorNation")
const priceFeed = await ethers.getContractFactory("MaticPrice")
const nft = await MyToken.deploy("creatorNation", 2);
const matic = await priceFeed.deploy();
const txn = await nft.mint('0x99e4Ee279aE74e954fe06338379DD76219B072E0', //Enter the address to where the nft has to be minted
'Token1', //Token Name
// SPDX-License-Identifier:MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
contract MyToken is ERC1155, Ownable, ReentrancyGuard {
@deepak-likes-code
deepak-likes-code / gist:cda4205cf37fcb1c14fc98c23fa7eac6
Created November 1, 2021 18:03
Working ERC1155 Mint and Buying
// SPDX-License-Identifier:MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
contract MyToken is ERC1155, Ownable {
@deepak-likes-code
deepak-likes-code / contracts...marketPlace.sol
Created October 27, 2021 15:34
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.7+commit.e28d00a7.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT OR Apache-2.0
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
@deepak-likes-code
deepak-likes-code / .deps...npm...@openzeppelin...contracts...access...Ownable.sol
Created October 27, 2021 15:33
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.7+commit.e28d00a7.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.