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 LZuint8Array = (function () { | |
/* | |
basic ranges of printable UTF16 values (as found in LZ-string): | |
[32, 127), [160, 55296), [63744, 65536) | |
We also have filter out string characters like: | |
" (34) | |
' (39) | |
` (44) | |
(Forward tick is safe: ´ (96)) | |
So: |
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
@import '~terriajs-variables'; | |
.panel { | |
composes: list-reset from 'terriajs/lib/Sass/common/_base.scss'; | |
composes: clearfix from 'terriajs/lib/Sass/common/_base.scss'; | |
composes: sm-show from 'terriajs/lib/Sass/common/_base.scss'; | |
} | |
.panel-btn { | |
composes: btn from 'terriajs/lib/Sass/common/_buttons.scss'; |
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 Web3 = require('web3'); | |
const solc = require('solc'); | |
// For localhost | |
const web3 = new Web3(new Web3.providers.HttpProvider("http://localhost:8545")); | |
let source = 'contract Hello{ string h = "hello"; function g() constant returns(string){ return h; } }'; | |
let helloCompiled = solc.compile(source, 1).contracts[':Hello']; | |
You may need to unlock the address which is going to deploy the contract (Make sure there is enough funds on this address): |