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.5.0; | |
| import "openzeppelin-solidity/contracts/ownership/Ownable.sol"; | |
| class ShortNameController is Ownable { | |
| BaseRegistrar base; | |
| ProxyRegistry proxyRegistry; | |
| address whitelistedCaller; | |
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
| def transform_text(text, desired_width): | |
| words = text.split(" ") | |
| current_line = [] | |
| for word in words: | |
| current_line_width = sum([len(x) for x in current_line]) | |
| num_spaces = len(current_line) - 1 |
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
| 0xf95a76450f1bd5ad3eb68f18caf08de7bc20a50b |
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
| 0x389A0d00aF1060548f88A6B54d50B9ae5a91832F |
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
| c = "!git add -A && git commit -m " |
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
| [alias] | |
| amend = !git add -A && git commit --amend --no-edit | |
| p = !git push origin $(git rev-parse --abbrev-ref HEAD) | |
| c = "!git add -A && git commit -m " | |
| cc = "!git commit --amend -m " | |
| co = !git checkout |
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
| [alias] | |
| amend = !git add -A && git commit --amend --no-edit |
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
| new-alias() { | |
| local last_command=$(echo `history |tail -n2 |head -n1` | sed 's/[0-9]* //') | |
| echo alias $1="'""$last_command""'" >> ~/.bash_profile | |
| . ~/.bash_profile | |
| } |