Skip to content

Instantly share code, notes, and snippets.

View dchun's full-sized avatar

David Chun dchun

View GitHub Profile
{
"info": {
"name": "Your Store"
},
"products": {
"sku_001": {
"amount": 1000
}
},
"server": {
const http = require('http');
const fs = require('fs');
const url = require('url');
const cv = require('opencv');
const server = http.createServer( (req, res) => {
var request = url.parse(req.url, true);
var action = request.pathname;
if (action == '/copy.png') {