Skip to content

Instantly share code, notes, and snippets.

View cega's full-sized avatar

Carlos GALINDEZ cega

  • Córdoba, CORDOBA, ARGENTINA
View GitHub Profile
@cega
cega / pdf.py
Created January 21, 2016 14:20 — forked from grantmcconnaughey/pdf.py
Outputting PDFs with Django 1.8 and FDFgen
# -*- coding: utf-8 -*-
import codecs
import subprocess
from fdfgen import forge_fdf
from django.core.exceptions import ImproperlyConfigured
from django.template import engines
from django.template.backends.base import BaseEngine
from django.template.engine import Engine, _dirs_undefined
@cega
cega / mm2oo.py
Created December 6, 2015 12:42 — forked from mattbowen/mm2oo.py
Mindmeister to OPML: Convert the JSON file in mindmeister's native format into OPML to open with OmniOutliner
"""
Mindmeister to OPML
Convert the JSON file embedded in mindmeister's native format
to OPML 1.0 that can be opened by OmniOutliner. For use with
python 2.6 and above. For usage, run python mm2oo.py --help
Copyright (c) 2011 Matt Bowen (https://github.com/mattbowen)
Permission is hereby granted, free of charge, to any person obtaining a copy of
#!/usr/bin/python
# All SSH libraries for Python are junk (2011-10-13).
# Too low-level (libssh2), too buggy (paramiko), too complicated
# (both), too poor in features (no use of the agent, for instance)
# Here is the right solution today:
import subprocess
import sys