Skip to content

Instantly share code, notes, and snippets.

View Scofield-Idehen's full-sized avatar

Scofield Idehen Scofield-Idehen

View GitHub Profile
@Scofield-Idehen
Scofield-Idehen / fundme.sol
Created December 14, 2023 16:57
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.22+commit.4fc1097e.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.18;
import {newfund} from "./test.sol";
contract fundme{
using newfund for uint;
address public owner;
uint minimunUsd = 5e18;
address[] public funders;
mapping(address funder => uint amountfunded) public valueofthefund;
@Scofield-Idehen
Scofield-Idehen / add5.sol
Created December 13, 2023 12:50
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.22+commit.4fc1097e.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.16;
import {scofield} from "./new1.sol";
contract addinherietance is scofield{
function store(uint _addnewfive) public override {
number = _addnewfive +5;
// Get references to page elements
const passwordModal = document.querySelector('.modal');
const passwordInput = document.querySelector('.modal input');
const unlockBtn = document.querySelector('.modal button');
const notesSection = document.querySelector('.notes');
// Open password modal
function openPasswordModal() {
passwordModal.style.display = 'flex';
}
/* Style navigation bar */
nav {
background: #333;
color: #fff;
display: flex;
justify-content: space-between;
padding: 10px;
}
nav ul {
@Scofield-Idehen
Scofield-Idehen / index.html
Created September 20, 2023 12:58
index.html
<!DOCTYPE html>
<html>
<head>
<title>Secure Notes</title>
<!-- CSS stylesheet -->
<link rel="stylesheet" href="styles.css">
</head>
<body>
import socket
import threading
from queue import Queue
target = "URL/IP"
queue = Queue()
ope_port = []
def scanner(port):
try:
---
#################################
#################################
## Super Linter GitHub actions ##
#################################
#################################
name: Lint Code Base
#
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@chainlink/contracts/src/v0.8/interfaces/AggregatorV3Interface.sol";
contract PriceOFETHTOUSD{
uint minimalValue = 50;
function PriceFeed() public payable{
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
contract Food{
uint NewFunction;
function store(uint _NewFunction) public{
NewFunction = _NewFunction;
from urllib import response
import constant as keys
from telegram.ext import *
import reponses as R
print ("Bot started...")
def start_command(update, context):