Skip to content

Instantly share code, notes, and snippets.

Deepankar Gupta dpnkrg

  • Mumbai
Block or report user

Report or block dpnkrg

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
dpnkrg /
Created Oct 30, 2018 — forked from bamthomas/
Pub/Sub redis python
from multiprocessing.process import Process
import time
import redis
def pub(myredis):
for n in range(10):
myredis.publish('channel','blah %d' % n)
def sub(myredis, name):
View file
This is an initial implementation of ReadSerial.
This version is directly implemented from github project.
Implemented as per initial requirements.
Working : -
1. Advanced version from Serial_v.0.1
1. File name is generated with current date time stamp.
View flask-method.txt
import os
from flask import Flask
from flask.ext.mysql import MySQL
app = Flask(__name__)
mysql = MySQL()
mysql_database_host = 'MYSQL_DATABASE_HOST' in os.environ and os.environ['MYSQL_DATABASE_HOST'] or 'localhost'
# MySQL configurations
You can’t perform that action at this time.