Skip to content

Instantly share code, notes, and snippets.

View Ernesto-tha-great's full-sized avatar
🏠
Working from home

Ernesto Ernesto-tha-great

🏠
Working from home
View GitHub Profile
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.13;
import "@pythnetwork/pyth-sdk-solidity/IPyth.sol";
contract EthBettingDapp {
IPyth public pyth;
bytes32 public ethUsdPriceId;
struct Bet {
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
contract HotelBooking {
address public owner;
IERC20 public token;
enum RoomCategory { Presidential, Deluxe, Suite }
import * as React from "react";
import deployedContracts from "@celo-composer/hardhat/deployments/hardhat_contracts.json";
import { useCelo } from "@celo/react-celo";
import AppLayout from "@/components/layout/AppLayout";
import { HomePage } from "./HomePage";
export default function App() {
const { network } = useCelo();
const contracts =
import * as React from "react";
import deployedContracts from "@celo-composer/hardhat/deployments/hardhat_contracts.json";
import { useCelo } from "@celo/react-celo";
import AppLayout from "@/components/layout/AppLayout";
import HomePage from "./HomePage";
export default function App() {
const { network } = useCelo();
const contracts =
@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;1,200;1,300;1,400;1,500;1,600&display=swap");
@tailwind base;
@tailwind components;
@tailwind utilities;
body {
background-color: rgb(224, 247, 229);
color: #333;
}
module.exports = {
content: [
"./pages/**/*.{js,ts,jsx,tsx}",
"./components/**/*.{js,ts,jsx,tsx}",
],
mode: "jit",
darkMode: "media", // or 'media' or 'class'
theme: {
extend: {
colors: {
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;
import "hardhat/console.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
contract NewsFeed {
uint256 totalFeeds;
using Counters for Counters.Counter;
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
// Importing OpenZeppelin's SafeMath Implementation
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import './Project.sol';
contract CrowdFund {
// SafeMath for safe integer operations