This file contains hidden or 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 fpdf | |
from PyPDF2 import PdfFileWriter, PdfFileReader | |
overlay_pdf_file_name = 'overlay_PDF.pdf' | |
pdf_template_file_name = 'base_PDF_template.pdf' | |
result_pdf_file_name = 'final_PDF.pdf' | |
# This section creates a PDF containing the information you want to enter in the fields | |
# on your base PDF. |
This file contains hidden or 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 matplotlib.pyplot as plt | |
def betterstep(bins, y, **kwargs): | |
"""A 'better' version of matplotlib's step function | |
Given a set of bin edges and bin heights, this plots the thing | |
that I wish matplotlib's ``step`` command plotted. All extra | |
arguments are passed directly to matplotlib's ``plot`` command. | |
Args: |
This file contains hidden or 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
# coding:utf-8 | |
from gevent import monkey, sleep, spawn, joinall | |
monkey.patch_all() | |
import datetime | |
from sqlalchemy import Column, Integer, String, DateTime, Numeric, create_engine, VARCHAR, UniqueConstraint | |
from sqlalchemy.ext.declarative import declarative_base | |
from sqlalchemy.orm import sessionmaker | |
import sqlalchemy | |
import time |
This file contains hidden or 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
""" | |
Example of interfacing numpy to pyroot. Additionally, the great package | |
root_numpy implements interfaces between various pyroot objects and numpy | |
through a cython extension module. | |
""" | |
import numpy as np | |
import ROOT | |
data = ROOT.TGraph("filename") | |
# Create buffers |
This file contains hidden or 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
;;; auto-rsync-mode -- minor mode for auto rsync | |
;; | |
;; Author: @l3msh0 | |
;; | |
;;; Example | |
;; | |
;; (require 'auto-rsync) | |
;; (auto-rsync-mode t) | |
;; (setq auto-rsync-dir-alist |