- Static data as of April 13, 2015, some updates as of October 1, 2015
| # | Metric | Haml | Slim | Winner |
|---|---|---|---|---|
| 1 | Issues | Slim | ||
| 2 | Stars | Slim | ||
| 3 | Quality | -- | Haml | |
| 4 | Test Coverage |  to completely uninstall node + npm is to do the following: | |
| # go to /usr/local/lib and delete any node and node_modules | |
| cd /usr/local/lib | |
| sudo rm -rf node* |
| # | Metric | Haml | Slim | Winner |
|---|---|---|---|---|
| 1 | Issues | Slim | ||
| 2 | Stars | Slim | ||
| 3 | Quality | -- | Haml | |
| 4 | Test Coverage |  | |
| Interface: [{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"proposals","outputs":[{"name":"recipient","type":"address"},{"name":"amount","type":"uint256"},{"name":"description","type":"string"},{"name":"votingDeadline","type":"uint256"},{"name":"executed","type":"bool"},{"name":"proposalPassed","type":"bool"},{"name":"numberOfVotes","type":"uint256"},{"name":"currentResult","type":"int256"},{"name":"proposalHash","type":"bytes32"}],"type":"function"},{"constant":false,"inputs":[{"name":"proposalNumber","type":"uint256"},{"name":"transactionBytecode","type":"bytes"}],"name":"executeProposal","outputs":[{"name":"result","type":"int256"}],"type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"memberId","outputs":[{"name":"","type":"uint |
| /** | |
| * Using Operator Mono in Atom | |
| * | |
| * 1. Open up Atom Preferences. | |
| * 2. Click the “Open Config Folder” button. | |
| * 3. In the new window’s tree view on the left you should see a file called “styles.less”. Open that up. | |
| * 4. Copy and paste the CSS below into that file. As long as you have Operator Mono SSm installed you should be golden! | |
| * 5. Tweak away. | |
| * | |
| * Theme from the screenshot (http://cdn.typography.com/assets/images/blog/operator_ide2.png): |
| // | |
| // In Solidity, a mapping is like a hashmap and works with `string` like this: | |
| // mapping (string => uint) a; | |
| // | |
| // However it doesn't support accessors where string is a key: | |
| // mapping (string => uint) public a; | |
| // | |
| // "Internal compiler error: Accessors for mapping with dynamically-sized keys not yet implemented." | |
| // | |
| // An accessor returns uint when called as `a(string)`. |
This guide assumes you have the emmet and language-babel packages already installed in Atom
keymap.cson file by clicking on Atom -> Keymap… in the menu bar'atom-text-editor[data-grammar~="jsx"]:not([mini])':| // | |
| // Needs web3.js from https://github.com/axic/web3.js/tree/swarm | |
| // | |
| var Web3 = require('web3') | |
| var url = require('url') | |
| var web3 = new Web3(new Web3.providers.HttpProvider('http://localhost:8545')) | |
| try { | |
| web3.eth.defaultAccount = web3.eth.coinbase |
| // Usage: | |
| // | |
| // const backspace = 8; | |
| // | |
| // export default withHotkeys({ | |
| // [backspace]: props => evt => { | |
| // ... | |
| // }, | |
| // })(YourComponent); |