Skip to content

Instantly share code, notes, and snippets.

View Kremilly's full-sized avatar
👋
Hello, World!

Kremilly Kremilly

👋
Hello, World!
View GitHub Profile
@ravgeetdhillon
ravgeetdhillon / font-downloader.py
Last active October 24, 2023 16:39
Download Google font files using this python script.
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.
@tushortz
tushortz / font_installer.py
Created December 25, 2018 21:55
Python script to install multiple fonts at once on the Windows OS.
import os
import shutil
import ctypes
from ctypes import wintypes
import sys
import ntpath
try:
import winreg
except ImportError:
import _winreg as winreg
@uchida
uchida / arxiv2bib.py
Last active March 22, 2024 11:19
a simple BibTeX file generator from arxiv.org URL
#!/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+)')
@joshisumit
joshisumit / python_request_create_gist.py
Last active April 5, 2024 17:38
Create GIST from your python code with python requests module and OAuth token.
'''
HTTP Reuests has following parameters:
1)Request URL
2)Header Fields
3)Parameter
4)Request body
'''
#!/usr/bin/env python
import requests
@engineervix
engineervix / mkdown2html_and_pdf.py
Last active April 2, 2023 14:09
convert markdown to html and pdf using Python
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',