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
function openxcode() { | |
if pgrep -x "Xcode" > /dev/null; then | |
read -k 1 "USER_INPUT?Xcode is already running. Close running version first? (y/N) " | |
if [[ "$USER_INPUT" =~ ^[Yy]$ ]]; then | |
killall Xcode | |
fi | |
fi | |
ACTIVE_XCODE_DIRECTORY=$(xcode-select -p) | |
SUFFIX_LENGTH=19 # "/Contents/Developer" |
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
[ | |
{ | |
"constant":true, | |
"inputs":[ | |
], | |
"name":"name", | |
"outputs":[ | |
{ | |
"name":"_name", |
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
{ | |
"printWidth": 120, | |
"tabWidth": 2, | |
"useTabs": false, | |
"semi": false, | |
"singleQuote": true, | |
"bracketSpacing": true, | |
"jsxBracketSameLine": false | |
} |
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
{ | |
"parser": "babel-eslint", | |
"parserOptions": { | |
"ecmaVersion": 6 | |
}, | |
"extends": [ | |
"prettier/react", | |
"prettier", | |
"prettier/standard", | |
"standard", |
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
{ | |
"extends": "solium:recommended", | |
"plugins": ["security"], | |
"rules": { | |
"quotes": ["error", "double"], | |
"indentation": [0], | |
"arg-overflow": ["warning", 3], | |
"security/enforce-explicit-visibility": ["error"], | |
"security/no-inline-assembly": ["warning"] | |
} |
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
const SocialNetworkProxy = artifacts.require('SocialNetworkProxy') | |
const SocialNetworkV1 = artifacts.require('SocialNetworkV1') | |
const SocialNetworkV2 = artifacts.require('SocialNetworkV2') | |
module.exports = (deployer, network, accounts) => { | |
deployer.then(async () => { | |
/*********************************** | |
* 1. INITIAL DEPLOYMENT | |
***********************************/ | |
let proxy, socialNetworkV1, proxySocialNetwork |
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
const SocialNetworkProxy = artifacts.require('SocialNetworkProxy') | |
const SocialNetworkV1 = artifacts.require('SocialNetworkV1') | |
module.exports = deployer => { | |
deployer.then(async () => { | |
let proxy, socialNetworkV1 | |
// 1. Deploy SocialNetworkProxy | |
proxy = await deployer.deploy(SocialNetworkProxy) |
NewerOlder