Skip to content

Instantly share code, notes, and snippets.

@siddartha
siddartha / index.html
Created September 19, 2019 10:15 — forked from bwarner/index.html
Example of auto refreshing ads
<!DOCTYPE html>
<html>
<head>
<script async="async" src="https://www.googletagservices.com/tag/js/gpt.js"></script>
<script async src="//acdn.adnxs.com/prebid/not-for-prod/1/prebid.js"></script>
<script>
var googletag = googletag || {};
googletag.cmd = googletag.cmd || [];
var pbjs = pbjs || {};
@siddartha
siddartha / local_db_test.py
Created January 7, 2018 20:54 — forked from macloo/local_db_test.py
Test your MySQL database connection for Flask-SQLAlchemy
#!/Users/username/Documents/python/projectname/env/bin/python
# change username and projectname above to match yours - the path must match the path in YOUR virtualenv
"""
edit line 1 to match what YOU get when you are in YOUR virtualenv and type:
which python
# NO SPACES in first 3 chars in line 1: #!/
# make sure env is activated!