Skip to content

Instantly share code, notes, and snippets.

View adam-binks's full-sized avatar
🦊

Adam Binks adam-binks

🦊
View GitHub Profile
@adam-binks
adam-binks / latexdiff.md
Created May 7, 2022 17:18
How to LaTeX diff your Overleaf project

How to LaTeX diff your Overleaf project

Set up local latex environment

Grab the two versions

  • Download the original version
    • Go to Overleaf > history > find the version > view single version > download project at this version
  • Download the current version
@adam-binks
adam-binks / preload_guidedtrack_images.py
Created March 3, 2022 16:47
Generate GuidedTrack code to invisibly load all a program's images on its first page, so that they load instantly on later pages
# NB: you may need to convert tabs to spaces when you copy it into your GT program
gt_program = r"""copy and paste your program here>"""
lines = gt_program.split('\n')
images = []
for command in ["*image: ", "\t\t*picture: "]:
images.extend([line[len(command):] for line in lines if line.startswith(command)])
Option Compare Database
Sub ImportFromExcel(filename As String)
' remove any previous data
CurrentDb.Execute "DELETE * from tbl_excelImport"
CurrentDb.Execute "DELETE * from tbl_requests" ' delete all previously recorded requests
CurrentDb.Execute "DELETE * from tbl_clients" ' delete all previously recorded clients