Skip to content

Instantly share code, notes, and snippets.

% A Lab report of the style from the 2015/2016 lab manual, prepared by echarlie
% uses bibtex, and a number of features documented in the LaTeX wikibook
% Notice that copying this document Verbatim will result in Submission to Honour Court
% However, author releases it under CC-BY-SA as is standard for this wiki
% Contains all headers; ones not used in this report are commented out
\documentclass[12pt]{article}
\usepackage{enumerate}
\usepackage[margin=1in]{geometry}
\usepackage{natbib}
/**
* Initial State Event Streamer (non-buffered)
*
* Copyright 2016 David Sulpy
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
/**
* ST_Anything_Doors Device Type - ST_Anything_Doors.device.groovy
*
* Copyright 2015 Daniel Ogorchock
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
/**
* ST_Anything_Doors Device Type - ST_Anything_Doors.device.groovy
*
* Copyright 2015 Daniel Ogorchock
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
from driveify_config import *
import os, ast, time, sys
# Declare variables
fileList = []
bodyList = {}
templateStr = '{"url": "https://docs.google.com/document/d/' + id + '/edit?usp=drivesdk", "account_email": "' + email + '", "file_id": "' + id + '"}\n'
sync = True
def parseFiles(fileDir = "./"):