Skip to content

Instantly share code, notes, and snippets.

View anshuman73's full-sized avatar
🏗️
Building the Future

Anshuman Agarwal anshuman73

🏗️
Building the Future
View GitHub Profile
@nikramakrishnan
nikramakrishnan / gsoc_2018_report.md
Last active May 4, 2021 16:40
GSoC 2018: Redevelop FreeType's documentation using markdown
@keithweaver
keithweaver / split-video-by-frame.py
Created May 10, 2017 19:30
Using OpenCV takes a mp4 video and produces a number of images.
'''
Using OpenCV takes a mp4 video and produces a number of images.
Requirements
----
You require OpenCV 3.2 to be installed.
Run
----
Open the main.py and edit the path to the video. Then run:
@Zearin
Zearin / python_decorator_guide.md
Last active May 10, 2024 14:26
The best explanation of Python decorators I’ve ever seen. (An archived answer from StackOverflow.)

NOTE: This is a question I found on StackOverflow which I’ve archived here, because the answer is so effing phenomenal.


Q: How can I make a chain of function decorators in Python?


If you are not into long explanations, see [Paolo Bergantino’s answer][2].

@hellwen
hellwen / gist:8332740
Created January 9, 2014 11:28
CREATE EXCEL FILE WITH XLWT AND INSERT IN FLASK RESPONSE VALID FOR JQUERY.FILEDOWNLOAD
import xlwt
import StringIO
import mimetypes
from flask import Response
from werkzeug.datastructures import Headers
#... code for setting up Flask
@app.route('/export/')
def export_view():