Skip to content

Instantly share code, notes, and snippets.

View mohammedvaghjipurwala's full-sized avatar
🎯
Focusing

Mohammed Vaghjipurwala mohammedvaghjipurwala

🎯
Focusing
View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
###############################################################
#
# Sample Section : Implementation of SSL Certificates
#
###############################################################
server {
listen 80;
server_name <Domain name or ip>; # add DNS or server public IP
return 301 https://$server_name$request_uri; # redirect to https
@mohammedvaghjipurwala
mohammedvaghjipurwala / Gunicorn_kafka.py
Last active July 26, 2020 06:16
Implementation of Kafka Consumer & Producer with Flask & Gunicorn with Gevent
# Run with:
#
# $ gunicorn flaskapp:app
#
# pip install kafka-python gevent
#
###############################
# Author : mohammed.vaghjipurwala@gmail.com
# Version : 1.0
# Description : Implementation of Kafka Consumer & Producer with

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

import requests
from bs4 import BeautifulSoup
import time
# We've now imported the two packages that will do the heavy lifting
# for us, reqeusts and BeautifulSoup
# This is the URL that lists the current inmates
# Should this URL go away, and archive is available at
# http://perma.cc/2HZR-N38X
####################################################################################################
'''
Create a tic tac toe game
'''
####################################################################################################
Start_Mat = [[0, 0, 0],
[0, 0, 0],
[0, 0, 0]]
####################################################################################################
'''
Create a tic tac toe game
'''
####################################################################################################
Start_Mat = [[0, 0, 0],
[0, 0, 0],
[0, 0, 0]]
game = [[0, 0, 0],
[0, 0, 0],
[0, 0, 0]]
i = 1
#### Prints the list in matrix form
def PrintMat(game):
return ('\n'.join(str(i) for i in game))