Skip to content

Instantly share code, notes, and snippets.

View MarkNwilliam's full-sized avatar
😀

Nkugwa Mark William MarkNwilliam

😀
View GitHub Profile
@MarkNwilliam
MarkNwilliam / main.dart
Last active October 21, 2022 10:36
keen-cliff-1139
num add(num one, num two){
num ans = one + two;
return ans;
}
num subtraction(num one, num two){
num ans = one - two;
return ans;
}
num division(num one, num two){
num ans = one / two;
@MarkNwilliam
MarkNwilliam / main.dart
Created October 22, 2022 11:20
crimson-eucalyptus-7278
void main() {
String name = "Nkugwa Mark";
num accountnumber = 564;
num accountbalance = 0;
account c = new account();
c.setaccount_name(name);
c.setaccount_number(accountnumber);
c.deposit(5000);
c.withdraw(5000);
@MarkNwilliam
MarkNwilliam / YeeTrade.sol
Created November 30, 2022 07:20
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=
pragma solidity ^0.8.0;
contract YeeExchange {
// The asset structure
struct Asset {
address creator;
bytes6 id; // 6 bytes string
string link
int price;
int quantity;
}
@MarkNwilliam
MarkNwilliam / Yee Contract...YeeTradeExchanges.sol
Created November 30, 2022 07:25
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=
pragma solidity ^0.8.0;
contract YeeExchange {
// The asset structure
struct Asset {
address creator;
bytes6 id; // 6 bytes string
string link
int price;
int quantity;
}
@MarkNwilliam
MarkNwilliam / Yee Contract...YeeTradeExchanges.sol
Created November 30, 2022 07:26
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=
pragma solidity ^0.8.0;
contract YeeExchange {
// The asset structure
struct Asset {
address creator;
bytes6 id; // 6 bytes string
string link
int price;
int quantity;
}
@MarkNwilliam
MarkNwilliam / Yee Contract...YeeTradeExchanges.sol
Created November 30, 2022 07:40
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 YeeExchange {
// The asset structure
struct Asset {
address creator;
bytes6 id; // 6 bytes string
string link;
int price;
int quantity;
@MarkNwilliam
MarkNwilliam / .git...HEAD
Created November 30, 2022 07:47
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=
ref: refs/heads/main
@MarkNwilliam
MarkNwilliam / .git...HEAD
Created November 30, 2022 07:47
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=
ref: refs/heads/main