Skip to content

Instantly share code, notes, and snippets.

unnamalai-kb

Block or report user

Report or block unnamalai-kb

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@unnamalai-kb
unnamalai-kb / httpsserver.py
Created Jan 31, 2019
Python 3 Simple HTTPS Server
View httpsserver.py
# python ../httpsserver.py
# in your browser, visit:
# https://localhost:4443
from http.server import HTTPServer, SimpleHTTPRequestHandler
import ssl
httpd = HTTPServer(("localhost", 4443), SimpleHTTPRequestHandler)
httpd.socket = ssl.wrap_socket (httpd.socket, certfile="../httpsserver.pem", server_side=True)
httpd.serve_forever()
View bigquery.js
////////////////////////////////////////////////////////////////////
//
// This javascript code queries a Google Cloud BigQuery database
//
// Prerequisites:
// 1. Setup a service account (Bigquery.admin) by following the below link
// https://cloud.google.com/video-intelligence/docs/common/auth#set_up_a_service_account
// 2. create a folder adminkey on the path of the javascript and save the service account json file
// 3. Execution in NodeJS
// npm install --save @google-cloud/bigquery
You can’t perform that action at this time.