Copied from Alexandre Alapetite page - http://alexandre.alapetite.fr/doc-alex/html5-webcam/
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
| /* | |
| ********************* Node.js Static Site Serving *********// | |
| project/ | |
| server/ | |
| server.js | |
| dispatcher.js | |
| www/ | |
| index.html |
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 time | |
| class Block: | |
| def __init__(self, index, proof_no, prev_hash, data, timestamp=None): | |
| self.index = index | |
| self.proof_no = proof_no | |
| self.prev_hash = 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
| # initializing two arrays | |
| a = np.array(2) | |
| b = np.array(1) | |
| print(a,b) |
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 express = require('express'); | |
| var bodyParser = require('body-parser'); | |
| var app = express(); | |
| // --> 7) Mount the Logger middleware here | |
| app.use(express.static(__dirname + "/public")); |
NewerOlder