Skip to content

Instantly share code, notes, and snippets.

View sadekxD's full-sized avatar
🏠
Working from home

Sadek sadekxD

🏠
Working from home
  • Self Employed
  • Hathazari, Chittagong
View GitHub Profile
import { Job } from "bullmq";
import dotenv from "dotenv";
import Stripe from "stripe";
import prisma from "../lib/db";
import { ProviderType } from "@prisma/client";
import { StripeImportJobData } from "../queues/stripeImport.queue";
import { refreshStripeOAuthToken } from "../lib/stripe";
dotenv.config();
@sadekxD
sadekxD / README.md
Created September 28, 2023 12:56 — forked from piyushgarg-dev/README.md
Kafka Crash Course
@sadekxD
sadekxD / .deps...npm...@openzeppelin...contracts...token...ERC20...ERC20.sol
Created July 19, 2022 18:01
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
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/ERC20.sol)
pragma solidity ^0.8.0;
import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";
/**
@sadekxD
sadekxD / contracts...SampleERC20.sol
Created July 18, 2022 10:18
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: GPL-3.0
pragma solidity >=0.7.0 <0.9.0;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
/**
* @title SampleERC20
* @dev Create a sample ERC20 standard token
*/
@sadekxD
sadekxD / [email protected]
Created July 18, 2022 10:16
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
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)
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