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
| <link rel="stylesheet" href="//fonts.googleapis.com/css?family=Roboto:300,300italic,700,700italic"> | |
| <link rel="stylesheet" href="//cdn.rawgit.com/necolas/normalize.css/master/normalize.css"> | |
| <link rel="stylesheet" href="//cdn.rawgit.com/milligram/milligram/master/dist/milligram.min.css"> | |
| <link rel="stylesheet" href="./css/styles.css"> |
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
| /(root)/ | |
| index.html <-- standard index file | |
| /js <-- all js files here | |
| app.js | |
| /firebase/ <-- firebase js code here | |
| __init.js | |
| crud.js | |
| /css/ <-- all styles here | |
| style.css |
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
| /(root)/ <-- collection | |
| /<auto-id>/ <-- document with unique autogenerated ID | |
| title: string! | |
| body: string! | |
| timestamp: timestamp! | |
| updateTimestamp: timestamp | |
| /<auto-id>/ <-- another document with autogenerated ID | |
| title: string! | |
| body: string! | |
| timestamp: timestamp |
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
| service cloud.firestore { | |
| match /databases/{database}/documents { | |
| match /{document=**} { | |
| // default is false to disallow any read, and write operation | |
| allow read, write: if true; // true allows unrestricted access | |
| } | |
| } | |
| } |
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
| // url: https://us-central1-contactform-1b262.cloudfunctions.net/currentFirebaseTime | |
| const functions = require('firebase-functions'); | |
| exports.currentFirebaseTime = functions.https.onRequest((req, res) => { | |
| let d = new Date(); | |
| res.send(d); | |
| }); |
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 hashlib | |
| import json | |
| EPOCH = "01/01/1970" | |
| class Block: | |
| def __init__(self, index, time_stamp, data, prev_hash=''): | |
| self.index = index | |
| self.prevHash = prev_hash |
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
| { | |
| 'users': [{ | |
| 'id': 'cde9e392-8cd2-404c-8800-3c9286c812f8', | |
| 'name': 'Ernest K. Gonzalez' | |
| }, { | |
| 'id': '15c3d4f9-7abd-4aec-8a44-e16631bdec53', | |
| 'name': 'Robert B Carlson' | |
| }], | |
| 'employees': [ | |
| { |
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
| data = json.loads(user_info) |
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
| { | |
| "added_words": | |
| [ | |
| "js", | |
| "jquery", | |
| "Tooltips", | |
| "href", | |
| "http", | |
| "https", | |
| "github", |
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 json | |
| user_info = ''' { | |
| "users": [ | |
| { | |
| "id": "cde9e392-8cd2-404c-8800-3c9286c812f8", | |
| "name": "Ernest K. Gonzalez" | |
| }, | |
| { | |
| "id": "15c3d4f9-7abd-4aec-8a44-e16631bdec53", |