Skip to content

Instantly share code, notes, and snippets.

View 10dimensions's full-sized avatar
🎯
Focusing

10dimensions

🎯
Focusing
  • Bangalore, India
View GitHub Profile
/*
********************* Node.js Static Site Serving *********//
project/
server/
server.js
dispatcher.js
www/
index.html
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
@10dimensions
10dimensions / array.py
Created October 3, 2019 06:25 — forked from PulkitS01/array.py
Introduction to PyTorch
# initializing two arrays
a = np.array(2)
b = np.array(1)
print(a,b)
var express = require('express');
var bodyParser = require('body-parser');
var app = express();
// --> 7) Mount the Logger middleware here
app.use(express.static(__dirname + "/public"));
@10dimensions
10dimensions / html5-webcam-demo-with-getusermedia.markdown
Created June 7, 2019 13:31
HTML5 webcam demo with getUserMedia()