This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pragma solidity ^ 0.4.18; | |
| contract Ownable { | |
| address public owner; | |
| constructor() public { | |
| owner = msg.sender; | |
| } | |
| modifier onlyOwner() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pragma solidity ^0.4.0; | |
| contract SimpleCoin { | |
| mapping (address => uint256) public coinBalance; | |
| // Allowance is used to limit the number of coins an address can | |
| // use in transferFrom | |
| mapping (address => mapping (address => uint256)) public allowance; | |
| mapping (address => bool) public frozenAccount; | |
| address public owner; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pragma solidity ^0.4.0; | |
| contract SimpleCoin { | |
| mapping (address => uint256) public coinBalance; | |
| mapping (address => mapping (address => uint256)) public allowance; | |
| mapping (address => bool) public frozenAccount; | |
| address public owner; | |
| event Transfer(address indexed from, address indexed to, uint256 value); | |
| event FrozenAccount(address target, bool frozen); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <stdbool.h> | |
| /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * | |
| * * | |
| * * | |
| * This program demonstrates how subscripted variables are used * | |
| * It uses 2 variables: * | |
| * matrix[10] - a 10 element subscripted variable * | |
| * also known as an array. The index * | |
| * values go from 0 -9. * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| rake new_post # You can't use the format new_post["Title"] in zsh | |
| vi {file_name_from_new_post} | |
| rake generate | |
| rake deploy | |
| git add . |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| puts "Hello World" |
NewerOlder