Skip to content

Instantly share code, notes, and snippets.

View aaronmauro's full-sized avatar
:octocat:
Focusing

Aaron Mauro aaronmauro

:octocat:
Focusing
View GitHub Profile
@aaronmauro
aaronmauro / scholar_data.py
Created February 29, 2024 02:14
A Python script to scrape Google Scholar.
#!/usr/bin/env python
# coding: utf-8
# # Scraping Google Scholar
#
# Sources: https://beautiful-soup-4.readthedocs.io/en/latest/ and https://requests.readthedocs.io/en/latest/
#
# User Agents: Available at https://www.useragents.me/.
# You may need to change your user agent from time to time.
# Just copy and paste to reflect your set up!
@aaronmauro
aaronmauro / alphametic_puzzle_solver.py
Created November 28, 2020 02:30
A reimplementation of Raymond Hettinger's alphametic puzzle solver.
#!/usr/bin/python
"""
This is a reimplementation of Raymond Hettinger's alphametics solver from 2009
on the website Activestate: https://code.activestate.com/recipes/576615-alphametics-solver/.
The program works to solve the alphametic puzzle called, Send + More = Money.
H.E. Dudeney published the problem in the July 1924 edition of The Strand
Magazine. The original problem appears within his articled title "Perplexities."
The text for the problem appears under the heading, "708.-VERBAL ARITHMETIC"
and reads as follows: ADDITION is an imposition, SEND + MORE = MONEY.
SUBTRACTION is as bad; EIGHT - FIVE = FOUR. MULTIPLICATION is vexation TWO *
@aaronmauro
aaronmauro / ultrasonic_beacon_detector.py
Last active April 9, 2024 08:12
Detects ultrasonic beacons commonly used in advertising and online advertising
#!/usr/bin/python
"""
Warning: This software is for research and educational purposes only.
Please do not violate any local or international laws. Please do not break terms of
service with other entities. Please read and understand the code before using it.
This code listens to the surrounding environment for ultrasonic beacons commonly used to track
individuals for advertising purposes. If an ultrasonic beacon is discovered, this code will
save a sample audio file as well as display a warning dialogue box.
@aaronmauro
aaronmauro / stuff_google.py
Created January 29, 2020 17:24
Deletes all content on Google Drive and uploads custom message
#!/usr/bin/python3
#pip install PyDrive
"""
Warning: This software is for research and educational purposes only.
Please do not violate any local or international laws. Please do not break terms of service with other entities.
Please read and understand the code before using it.
This code deletes all content from Google Drive and replaces it with a custom message for Google's algorithms to process.
You can control the size and content of this message by modifying two variables below!