Skip to content

Instantly share code, notes, and snippets.

M Hazwan hazxone

  • Datafyt
  • Malaysia
Block or report user

Report or block hazxone

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
hazxone /
Created Aug 29, 2019 — forked from BroHui/
Remove comments and docstrings from a python fille.
""" Strip comments and docstrings from a file.
import sys, token, tokenize
def do_file(fname):
""" Run on just one file.
source = open(fname)
hazxone /
Created Dec 7, 2018
Flask Simple Upload File
import os
from flask import Flask, request, redirect, url_for
app = Flask(__name__)
@app.route('/', methods=['GET', 'POST'])
def upload_file():
You can’t perform that action at this time.