This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use opencv::{ | |
Result, | |
prelude::*, | |
objdetect, | |
highgui, | |
imgproc, | |
core, | |
types, | |
videoio, | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import os | |
def get_urls(content): | |
''' | |
Parses the css file and retrieves the font urls. | |
Parameters: | |
content (string): The data which needs to be parsed for the font urls. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import shutil | |
import ctypes | |
from ctypes import wintypes | |
import sys | |
import ntpath | |
try: | |
import winreg | |
except ImportError: | |
import _winreg as winreg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
# CC0, dedicated to public domain by Akihiro Uchida | |
import argparse | |
import urllib2, os | |
from HTMLParser import HTMLParser | |
import re | |
import calendar | |
ARXIV_ID_RE = re.compile(r'arXiv:((\d\d)(\d\d)\.\d+)') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
HTTP Reuests has following parameters: | |
1)Request URL | |
2)Header Fields | |
3)Parameter | |
4)Request body | |
''' | |
#!/usr/bin/env python | |
import requests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import markdown2 # pip install markdown2 | |
import os | |
import sys | |
import pdfkit # for pdf output (uses wkhtml2pdf, which must be in your PATH) | |
# adapted from http://is.gd/yetava | |
# usage: python mkdown2html_and_pdf.py input.md your_custom_stylesheet.css | |
DEFAULT_EXTRAS = [ | |
'fenced-code-blocks', |