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 fs = require('fs'); | |
| const solc = require('solc'); | |
| const Web3 = require('web3'); | |
| // Connect to local Ethereum node | |
| const web3 = new Web3(new Web3.providers.HttpProvider("http://localhost:8545")); | |
| // Compile the source code | |
| const input = fs.readFileSync('Token.sol'); | |
| const output = solc.compile(input.toString(), 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
| <html> | |
| <body> | |
| <p>Here are Webber’s points:</p> | |
| <ul> | |
| <li>If a method can be static, declare it static. Speed improvement is by a factor of 4.</li> | |
| <li>echo is faster than print.(<em>* compare with list from phplens by John Lim</em>)</li> | |
| <li>Use echo’s multiple parameters instead of string concatenation.</li> | |
| <li>Set the maxvalue for your for-loops before and not in the loop.</li> | |
| <li>Unset your variables to free memory, especially large arrays.</li> | |
| <li>Avoid magic like __get, __set, __autoload</li> |
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
| apt-get update; | |
| apt-get install software-properties-common python-software-properties -y; | |
| add-apt-repository -y ppa:webupd8team/java; | |
| apt-get update; | |
| apt-get -y install oracle-java8-installer; | |
| wget https://github.com/wavesplatform/Waves/releases/download/v0.7.9/waves_0.7.9_all.deb; | |
| dpkg -i waves*.deb; | |
| service waves start; |
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
| #!/bin/bash | |
| apt-get install apt-transport-https; | |
| wget -qO - https://apt.z.cash/zcash.asc | sudo apt-key add -; | |
| echo "deb [arch=amd64] https://apt.z.cash/ jessie main" | sudo tee /etc/apt/sources.list.d/zcash.list; | |
| apt-get update && sudo apt-get install zcash; |
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
| #!/bin/bash | |
| apt-get update; | |
| apt-get upgrade; | |
| apt-get install git pkg-config libboost-all-dev libevent-dev build-essential autoconf libssl-dev libboost-dev libboost-chrono-dev libboost-filesystem-dev libboost-program-options-dev libboost-system-dev libboost-test-dev libboost-thread-dev libtool -y; | |
| apt-get install libdb5.3++-dev libdb5.3-dev libqrencode-dev bsdmainutils cmake libzmq-dev libzmq3-dev -y; | |
| wget http://miniupnp.free.fr/files/download.php?file=miniupnpc-1.8.tar.gz && tar -zxf download.php\?file\=miniupnpc-1.8.tar.gz && cd miniupnpc-1.8/; | |
| make && make install && cd .. && rm -rf miniupnpc-1.8 download.php\?file\=miniupnpc-1.8.tar.gz; |
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
| #!/bin/bash | |
| apt-get update; | |
| apt-get upgrade; | |
| apt-get install git pkg-config libevent-dev build-essential autoconf libssl-dev libboost-dev libboost-chrono-dev libboost-filesystem-dev libboost-program-options-dev libboost-system-dev libboost-test-dev libboost-thread-dev libtool -y; | |
| apt-get install libdb5.3++-dev libdb5.3-dev libqrencode-dev bsdmainutils -y; | |
| wget http://miniupnp.free.fr/files/download.php?file=miniupnpc-1.8.tar.gz && tar -zxf download.php\?file\=miniupnpc-1.8.tar.gz && cd miniupnpc-1.8/; | |
| make && make install && cd .. && rm -rf miniupnpc-1.8 download.php\?file\=miniupnpc-1.8.tar.gz; |
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
| #!/bin/bash | |
| apt-get update; | |
| curl -sL https://deb.nodesource.com/setup_9.x | sudo -E bash -; | |
| apt-get install -y nodejs; |
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
| #!/bin/bash | |
| apt-get update; | |
| apt-get install yum-utils alien; | |
| rpm -Uvh https://mirrors.ripple.com/ripple-repo-el7.rpm; | |
| yumdownloader --enablerepo=ripple-stable --releasever=el7 rippled; | |
| rpm --import https://mirrors.ripple.com/rpm/RPM-GPG-KEY-ripple-release && rpm -K rippled*.rpm; | |
| alien -i --scripts rippled*.rpm && rm rippled*.rpm; | |
| systemctl enable rippled.service; | |
| systemctl start rippled.service; |
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
| #!/bin/bash | |
| apt-get update; | |
| apt-get install git build-essential -y; | |
| wget https://storage.googleapis.com/golang/go1.9.2.linux-amd64.tar.gz; | |
| tar -xvf go1.9.2.linux-amd64.tar.gz; | |
| mv go /usr/local; | |
| export GOROOT=/usr/local/go; | |
| export GOPATH=$HOME/Projects/Proj1; | |
| export PATH=$GOPATH/bin:$GOROOT/bin:$PATH; |
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
| #!/bin/bash | |
| apt-get update; | |
| apt install apt-transport-https lsb-release ca-certificates -y; | |
| wget -O /etc/apt/trusted.gpg.d/php.gpg \ | |
| https://packages.sury.org/php/apt.gpg | |
| echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | | |
| tee /etc/apt/sources.list.d/php.list |
NewerOlder