Skip to content

Instantly share code, notes, and snippets.

View kingstenbanh's full-sized avatar

Kingsten Banh kingstenbanh

View GitHub Profile
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 = {
@kingstenbanh
kingstenbanh / index.html
Last active January 8, 2018 08:17
HTML
<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>
Verifying my Blockstack ID is secured with the address 19nXXVdrpHy3YWqD5XXBg6CGNkrfFgr6Db https://explorer.blockstack.org/address/19nXXVdrpHy3YWqD5XXBg6CGNkrfFgr6Db
randomOneToSix() / 6 * 15 = randomOneToSix() * 2.5
[1, 2, 3, 4, 5, 6] * 2.5 = [2.5, 5, 7.5, 10, 12.5, 15]
# 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
typeof noDefinedValue === undefined; // true
typeof noDefinedValue === null; // false
noDefinedValue == 'undefined'; // false
noDefinedValue == nullValue; // true
noDefinedValue == null; // true
var noDefinedValue; // undefined
var nullValue = null // null
var newWallet = null;