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, { useEffect, useState } from "react"; | |
import "./VideoCard.css"; | |
import { useNavigate } from "react-router-dom"; | |
import { MdOutlineWatchLater } from "react-icons/md"; | |
import { useData } from "../../context/DataContext"; | |
export const VideoCard = ({ videoInfo }) => { | |
const { title, creator, thumbnail, views, category, _id } = videoInfo; | |
const navigate = useNavigate(); | |
const { dispatch } = useData(); |
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
sap.ui.define( | |
[], function(){ | |
"use strict"; | |
return sap.ui.controller("todo.app.todoapp1.ext.controller.ListReportExt", { | |
promiseToRead: function(sPath){ | |
var oModel = this.oModel; | |
return new Promise(function(resolveCallback, rejectCallback){ |
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
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.0; | |
// This line imports the ERC-20 token standard from OpenZeppelin (OZ). OZ is an Ethereum security company. | |
// Among other things, OZ develops reference contracts for popular smart contract standards which are thoroughly | |
// tested and secure. Whenever implementing a smart contract which needs to comply with a standard, try to | |
// find an OZ reference implementation rather than rewriting the entire standard from scratch. | |
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/ERC20.sol"; |
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
//SPDX-License-Identifier: MIT | |
pragma solidity >=0.6.0 <0.9.0; | |
// to get latest price data | |
import "@chainlink/contracts/src/v0.8/interfaces/AggregatorV3Interface.sol"; | |
contract FundMe { | |
mapping(address => uint256) public addressToAmountFunded; |
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
//SPDX-License-Identifier: MIT | |
pragma solidity >=0.6.0 <0.9.0; | |
contract FundMe { | |
mapping(address => uint256) public addressToAmountFunded; | |
// "payable" function -> accespts payment | |
// Every transaction has some inbuilt variables | |
// "msg" |
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
//SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.1; | |
import "./SimpleStorage.sol"; | |
// This is a contract that will let you create and deploy SimpleStorage contracts | |
// A Contract that creates other contracts - Contract Factory | |
// In the end, we also inherited SimpleStorage here so that | |
// SimpleStorageFactory gets all functionalities of SimpleStorage |
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
//SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.1; | |
contract SimpleStorage{ | |
struct People { | |
uint256 favoriteNumber; | |
string name; | |
} |