Instantly better presentations - Damian Conway
It probably just makes more sense to just view his version online at:
http://damian.conway.org/IBP.pdf
But making notes is useful anyway.
| [ | |
| { "country": "Austria", "code": "AT" }, | |
| { "country": "Belgium", "code": "BE" }, | |
| { "country": "Bulgaria", "code": "BG" }, | |
| { "country": "Croatia", "code": "HR" }, | |
| { "country": "Cyprus", "code": "CY" }, | |
| { "country": "Czech Republic", "code": "CZ" }, | |
| { "country": "Denmark", "code": "DK" }, | |
| { "country": "Estonia", "code": "EE" }, | |
| { "country": "Finland", "code": "FI" }, |
| pragma solidity ^0.4.19; | |
| contract ERC721 { | |
| string constant private tokenName = "My ERC721 Token"; | |
| string constant private tokenSymbol = "MET"; | |
| uint256 constant private totalTokens = 1000000; | |
| mapping(address => uint) private balances; | |
| mapping(uint256 => address) private tokenOwners; | |
| mapping(uint256 => bool) private tokenExists; | |
| mapping(address => mapping (address => uint256)) private allowed; | |
| mapping(address => mapping(uint256 => uint256)) private ownerTokens; |
| contract ERC721 { | |
| // ERC20 compatible functions | |
| function name() constant returns (string name); | |
| function symbol() constant returns (string symbol); | |
| function totalSupply() constant returns (uint256 totalSupply); | |
| function balanceOf(address _owner) constant returns (uint balance); | |
| // Functions that define ownership | |
| function ownerOf(uint256 _tokenId) constant returns (address owner); | |
| function approve(address _to, uint256 _tokenId); | |
| function takeOwnership(uint256 _tokenId); |
Instantly better presentations - Damian Conway
It probably just makes more sense to just view his version online at:
http://damian.conway.org/IBP.pdf
But making notes is useful anyway.
| Short-circuit? | Short-circuits on? | Fulfilled on? | Rejected on? | |
|---|---|---|---|---|
| Promise.all | ✅ | First rejected promise | All promise fulfilled | First rejected promise |
| Promise.allSettled | ❌ | N/A | Always | N/A |
| Promise.race | ✅ | First settled | First promise fulfilled | First rejected promise |
| Promise.any | ✅ | First fulfilled | First promise fulfilled | All rejected promises |
After this lesson, you will be able to:
| <!doctype html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Example page</title> | |
| </head> | |
| <body> | |
| <h1>Hello world</h1> | |
| <p>Lorem ipsum dolor sit amet, consectetur.</p> |