pandoc -V geometry:a4paper -V colorlinks=true -f rst --toc -o output.pdf input.rst
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
# Prototype to create an eml file using python | |
import os | |
import uuid | |
from email import generator | |
from email.mime.multipart import MIMEMultipart | |
from email.mime.text import MIMEText | |
# where to write the output file | |
directory = "C:\\Users\\Jeremy\Documents\\python\\email-prototype\\temp" |
pdfunite $(ls -p | grep -v / | tr '\n' ' ') output.pdf
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
from django.core.files import File | |
from django.core.files.storage import default_storage, FileSystemStorage | |
from django.conf import settings | |
from django.core.files.base import ContentFile | |
local_storage = FileSystemStorage() | |
local_storage.base_location = settings.MEDIA_ROOT | |
def get_local_file_from_object(obj): |
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 io | |
from PIL import Image | |
from django.core.urlresolvers import reverse | |
from django.conf import settings | |
from rest_framework import status | |
from rest_framework.test import APITestCase |
git branch -r | sed -r 's/origin\///g' | xargs -I {} git push origin :{}