Skip to content

Instantly share code, notes, and snippets.

@Felipe-UnB
Felipe-UnB / ExportVisualBasicCode.bas.vb
Last active February 3, 2016 18:35 — forked from steve-jansen/ExportVisualBasicCode.bas.vb
Excel macro to export all VBA source code in this project to text files for proper source control versioning
' Excel macro to export all VBA source code in this project to text files for proper source control versioning
' Requires enabling the Excel setting in Options/Trust Center/Trust Center Settings/Macro Settings/Trust access to the VBA project object model
'A little modification in the original code was made in order to export the different components to different folders.
Public Sub ExportVisualBasicCode()
Const Module = 1
Const ClassModule = 2
Const Form = 3
Const Document = 100
Const Padding = 24
@Felipe-UnB
Felipe-UnB / grab_pdfs.py
Last active March 3, 2021 18:11 — forked from elssar/grab_pdfs.py
Download all the pdf files linked in a given webpage.
def get_pdf(base_url, base_dir):
#!/usr/bin/env python
"""
Download all the pdfs linked on a given webpage
Usage -
python grab_pdfs.py url <path/to/directory>
url is required
path is optional. Path needs to be absolute
will save in the current directory if no path is given