Skip to content

Instantly share code, notes, and snippets.

View Manasse228's full-sized avatar
🏠
Working from home

Last Pharaon Manasse228

🏠
Working from home
View GitHub Profile
@Manasse228
Manasse228 / index.html
Created May 24, 2022 17:36
Terrain Editor
<div id="threejs"></div>
pragma solidity ^0.4.15;
contract StringsAndBytes {
/* --- public variables for storing tests results */
string public lastTestStringResult; //
bytes32 public lastTestBytes32Result; //
bytes public lastTestBytesResult; // bytes: dynamically-sized byte array
bool public lastTestBoolResult; //
@Manasse228
Manasse228 / index.js
Created March 18, 2019 02:04
InfiniteCreativeSearchengine created by Manasse228 - https://repl.it/@Manasse228/InfiniteCreativeSearchengine
const rp = require('request-promise');
const requestOptions = {
method: 'GET',
uri: 'https://pro-api.coinmarketcap.com/v1/cryptocurrency/listings/latest',
qs: {
start: 1,
limit: 5000,
convert: 'USD'
},
headers: {
@Manasse228
Manasse228 / Colibri_Token.sol
Created March 2, 2019 21:22
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.25+commit.59dbf8f1.js&optimize=true&gist=
pragma solidity 0.5.0;
// ----------------------------------------------------------------------------
// Safe maths
// ----------------------------------------------------------------------------
library SafeMath {
function add(uint a, uint b) internal pure returns (uint c) {
c = a + b;
require(c >= a);
}
pragma solidity ^0.4.7;
contract CommitRevealElection {
// The two choices for your vote
string public choice1;
string public choice2;
// Information about the current status of the vote
uint public votesForChoice1;
uint public votesForChoice2;
@Manasse228
Manasse228 / MultiSigWallet.sol
Created July 30, 2018 21:48
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.24+commit.e67f0147.js&optimize=true&gist=
pragma solidity ^0.4.24;
/// @title Multisignature wallet - Allows multiple parties to agree on transactions before execution.
/// @author Stefan George - <stefan.george@consensys.net>
contract MultiSigWallet {
/*
* Events
*/
@Manasse228
Manasse228 / KrakenPriceTicker.sol
Created July 4, 2018 12:10
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.24+commit.e67f0147.js&optimize=false&gist=
pragma solidity ^0.4.24;
import "./Oraclize.sol";
contract KrakenPriceTicker is usingOraclize {
uint public ETHUSD;
event newOraclizeQuery(string description);
event newKrakenPriceTicker(string price);
@Manasse228
Manasse228 / Oraclize.sol
Created July 3, 2018 15:36
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.24+commit.e67f0147.js&optimize=false&gist=
/*
Copyright (c) 2015-2016 Oraclize SRL
Copyright (c) 2016 Oraclize LTD
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@Manasse228
Manasse228 / Nero.sol
Created June 22, 2018 10:54
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.24+commit.e67f0147.js&optimize=false&gist=
pragma solidity ^0.4.24;
contract MemphisContract {
string public name = "Memphis";
string public symbol = "MEM";
// it's design how many times can i divide 1 token
uint8 public decimals = 18;
uint public totalSupply;
uint public MemphisSupply = 5000000000;
@Manasse228
Manasse228 / Crowdfunding.sol
Created May 27, 2018 13:46
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.23+commit.124ca40d.js&optimize=false&gist=
pragma solidity ^0.4.19;
contract Crowdfunding {
uint public minimumEntryFee;
uint public campagneDeadline;
uint public projectProposalDeadLine;
uint public winningVote;
address winningProject;
address owner;