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 / Learn.sol
Last active December 19, 2021 13:17
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-Lisence-Identifier: MIT
pragma solidity >=0.6.0 <0.9.0;
contract Learn{
//uint Count;
// we added public and a =1
uint public Count = 1;
// we can write the code to the uint256 above by calling it under contract
@Scofield-Idehen
Scofield-Idehen / docs.chain.link...hotel.sol
Created December 20, 2021 16:02
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=
@Scofield-Idehen
Scofield-Idehen / contracts...Lottery_Test.sol
Created January 2, 2022 07: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: MIT
pragma solidity ^0.8.0;
contract Lottery{
//manager is in charge of the contract
address public manager;
//new player in the contract using array[] to unlimit number
address[] public players;
@Scofield-Idehen
Scofield-Idehen / contracts...campain.sol
Created March 2, 2022 12:59
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.4.26+commit.4563c3fc.js&optimize=false&runs=200&gist=
//SPDX-License-Identifier: MIT
pragma solidity ^0.4.17;
contract Campaign{
struct Request{
string description;
uint value;
address recipient;
bool complete;
@Scofield-Idehen
Scofield-Idehen / contracts...campain.sol
Created March 2, 2022 14:44
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.4.26+commit.4563c3fc.js&optimize=false&runs=200&gist=
//SPDX-License-Identifier: MIT
pragma solidity ^0.4.17;
contract Campaign{
//class day 2
struct Request{
string description;
uint value;
@Scofield-Idehen
Scofield-Idehen / contracts...campain.sol
Created March 2, 2022 16:44
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.4.26+commit.4563c3fc.js&optimize=false&runs=200&gist=
//SPDX-License-Identifier: MIT
pragma solidity ^0.4.17;
contract Campaign{
//class day 2
struct Request{
string description;
uint value;
@Scofield-Idehen
Scofield-Idehen / README.txt
Created March 10, 2022 15:29
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.4.17+commit.bdeb9e52.js&optimize=false&runs=200&gist=
REMIX EXAMPLE PROJECT
Remix example project is present when Remix loads for the very first time or there are no files existing in the File Explorer.
It contains 3 directories:
1. 'contracts': Holds three contracts with different complexity level, denoted with number prefix in file name.
2. 'scripts': Holds two scripts to deploy a contract. It is explained below.
3. 'tests': Contains one test file for 'Ballot' contract with unit tests in Solidity.
SCRIPTS
from datetime import datetime
def sample_responses(input_text):
user_message = str(input_text).lower()
if user_message in ("hello", "hi", "sup"):
return "Hey! Wh o goes you!!!"
if user_message in ("who are you", "can you help me", "who are you"):
return "I am a bot, how can i help you!!!"
from datetime import datetime
def sample_responses(input_text):
user_message = str(input_text).lower()
if user_message in ("hello", "hi", "sup"):
return "Hey! Wh o goes you!!!"
if user_message in ("who are you", "can you help me", "who are you"):
return "I am a bot, how can i help you!!!"
from datetime import datetime
def sample_responses(input_text):
user_message = str(input_text).lower()
if user_message in ("hello", "hi", "sup"):
return "Hey! Wh o goes you!!!"
if user_message in ("who are you", "can you help me", "who are you"):
return "I am a bot, how can i help you!!!"