Skip to content

Instantly share code, notes, and snippets.

@dfinzer
dfinzer / gist:8059ce0b43c476fcb986e8b3096aeafd
Created April 30, 2016 21:35
Command for creating new aliases from the previous command
new-alias() {
local last_command=$(echo `history |tail -n2 |head -n1` | sed 's/[0-9]* //')
echo alias $1="'""$last_command""'" >> ~/.bash_profile
. ~/.bash_profile
}
[alias]
amend = !git add -A && git commit --amend --no-edit
[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
c = "!git add -A && git commit -m "
0x389A0d00aF1060548f88A6B54d50B9ae5a91832F
0xf95a76450f1bd5ad3eb68f18caf08de7bc20a50b
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
pragma solidity ^0.5.0;
import "openzeppelin-solidity/contracts/ownership/Ownable.sol";
class ShortNameController is Ownable {
BaseRegistrar base;
ProxyRegistry proxyRegistry;
address whitelistedCaller;