Skip to content

Instantly share code, notes, and snippets.

fn main() {
let s : &str = "world";
println! ("hello {:?}", s);
}
(module
(import "" "f" (func $f (param $n i32) (result i32)))
(func $_start (export "_start") (result i32)
i32.const 0
call $f
)
)
@bcdroid
bcdroid / Lottery1.sol
Created October 15, 2018 20:00
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=false&gist=
pragma solidity ^0.4.11;
contract Lottery2 {
address public owner;
bool public haveReceivedABid = false;
uint256 public maxBid;
address public maxBidder;
constructor () public {
owner = msg.sender;
@bcdroid
bcdroid / Lottery1.sol
Created October 15, 2018 19:14
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=false&gist=
pragma solidity ^0.4.11;
contract Lottery2 {
address public owner;
bool public haveReceivedABid = false;
uint256 public maxBid;
address public maxBidder;
constructor () public {
owner = msg.sender;
@bcdroid
bcdroid / Lottery1.sol
Created October 15, 2018 19:05
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=false&gist=
pragma solidity ^0.4.11;
contract Lottery2 {
address public owner;
bool public haveReceivedABid = false;
uint256 public maxBid;
address public maxBidder;
constructor () public {
owner = msg.sender;