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 express = require('express'); | |
| const cors = require('cors'); | |
| const app = express(); | |
| const bodyParser = require('body-parser'); | |
| const civicSip = require('civic-sip-api'); | |
| const https = require('https'); | |
| const fs = require('fs'); | |
| const path = require('path'); | |
| const sslOptions = { |
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 lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
| <link rel="stylesheet" href="https://hosted-sip.civic.com/css/civic-modal.min.css"> | |
| <script src="https://hosted-sip.civic.com/js/civic.sip.min.js"></script> | |
| <script src="https://unpkg.com/axios/dist/axios.min.js"></script> | |
| <title>Test Civic App</title> | |
| </head> |
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
| Verifying my Blockstack ID is secured with the address 19nXXVdrpHy3YWqD5XXBg6CGNkrfFgr6Db https://explorer.blockstack.org/address/19nXXVdrpHy3YWqD5XXBg6CGNkrfFgr6Db |
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
| randomOneToSix() / 6 * 15 = randomOneToSix() * 2.5 | |
| [1, 2, 3, 4, 5, 6] * 2.5 = [2.5, 5, 7.5, 10, 12.5, 15] |
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
| # install vue-cli | |
| npm install --global vue-cli | |
| # create a new project using "webpack" template | |
| vue init webpack google-vue | |
| # install dependencies and go! | |
| cd google-vue | |
| npm install | |
| npm run dev |
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
| typeof noDefinedValue === undefined; // true | |
| typeof noDefinedValue === null; // 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
| noDefinedValue == 'undefined'; // 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
| noDefinedValue == nullValue; // true | |
| noDefinedValue == null; // true |
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
| var noDefinedValue; // undefined | |
| var nullValue = null // null |
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
| var newWallet = null; |