Here is the setup for my Apple M1 Pro:
$ rustup show
Default host: x86_64-apple-darwin
rustup home: /Users/bruno/.rustup
installed toolchains
--------------------
Here is the setup for my Apple M1 Pro:
$ rustup show
Default host: x86_64-apple-darwin
rustup home: /Users/bruno/.rustup
installed toolchains
--------------------
# NOTE: assumes `substrate-docs` is locally `docs` | |
# Build Spec | |
./target/release/polkadot build-spec --chain rococo-local --disable-default-bootnode > rococo-custom-2-plain.json | |
./target/release/polkadot build-spec --chain rococo-custom-2-plain.json --raw --disable-default-bootnode > rococo-custom-2-raw.json | |
# (OPTIONAL) modify from snipets to copy and make 3 & 4 validator plain specs | |
# ./target/release/polkadot build-spec --chain rococo-custom-3-plain.json --raw --disable-default-bootnode > rococo-custom-3-raw.json | |
# ./target/release/polkadot build-spec --chain rococo-custom-4-plain.json --raw --disable-default-bootnode > rococo-custom-4-raw.json |
[relaychain] | |
default_command = "../polkadot/target/release/polkadot" | |
default_args = [ "-lparachain=debug" ] | |
chain = "rococo-local" | |
[[relaychain.nodes]] | |
name = "alice" | |
validator = true |
// Collator flags | |
var flags = ["--", "--execution=wasm"]; | |
var config = { | |
relaychain: { | |
bin: "./bin/polkadot", | |
chain: "rococo-local", | |
nodes: [ | |
{ | |
name: "alice", |
{ | |
"relaychain": { | |
"bin": "./bin/polkadot", | |
"chain": "rococo-local", | |
"nodes": [ | |
{ | |
"name": "alice", | |
"wsPort": 9944, | |
"port": 30444 | |
}, |
{ | |
"relaychain": { | |
"bin": "./bin/polkadot", | |
"chain": "rococo-local", | |
"nodes": [ | |
{ | |
"name": "alice", | |
"wsPort": 9944, | |
"port": 30444 | |
}, |
const test = () => { | |
console.log("It works!"); | |
} | |
test(); |
const ugly = | |
(x) => true | |
console.log(ugly( | |
{ | |
name: 'sweater', | |
type: 'xmas' | |
} | |
) ? | |
'UGLY XMAS SWEATER' |
cd into your react app and do the following:
npm run build
cd build/
mv index.html 200.html
npx surge
``` | |
brew uninstall ruby | |
\curl -sSL https://get.rvm.io | bash -s stable --ruby | |
rvm install ruby-2.4 | |
rvm use ruby-2.4 | |
gem install bundler | |
bundle install | |
``` |