Skip to content

Instantly share code, notes, and snippets.

View moosabaloch's full-sized avatar
🎯
Focusing

Moosa Baloch moosabaloch

🎯
Focusing
View GitHub Profile
@moosabaloch
moosabaloch / nodejs-tcp-example.js
Created November 28, 2016 07:51 — forked from tedmiston/nodejs-tcp-example.js
Node.js tcp client and server example
/*
In the node.js intro tutorial (http://nodejs.org/), they show a basic tcp
server, but for some reason omit a client connecting to it. I added an
example at the bottom.
Save the following server in example.js:
*/
var net = require('net');
@moosabaloch
moosabaloch / BarTiming.py
Last active June 1, 2019 13:27
This is a solution for checking the working hours Or Business open hours via MySQL query. Python code is written for test purpose, It worked even for date change or night timings also.
import mysql.connector
host = "INSERT_HOST"
username = "ROOT_USER"
database = "MY_DB"
password = "INSER_PASS"
paramArray = [
# Sunday 12 - 15
"2019-05-26 00:20:07",