This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# A C Makefile Template | |
# Author: Jeremy Barenholtz | |
# ------------------------- | |
# This is a fully functional but primarily an educational document, with far | |
# too many explanatory comments. I hope you consolidate and modify this to | |
# suit your particular project's needs. | |
# The names of the programs you want to compile. The convention is that you | |
# have a <program>.c file containing the main() of the program. E.g., if | |
# you have a program named myprogram and defined in file myprogram.c, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import errno | |
import fcntl | |
from pathlib import Path | |
def lock_script() -> bool: | |
""" | |
Locks a file pertaining to this script so that it cannot be run simultaneously. | |
Since the lock is automatically released when this script ends, there is no | |
need for an unlock function for this use case. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
############################################################################ | |
# | |
# Copyright (C) 2016 The Qt Company Ltd. | |
# Contact: https://www.qt.io/licensing/ | |
# | |
# This file is part of Qt Creator. | |
# | |
# Commercial License Usage | |
# Licensees holding valid commercial Qt licenses may use this file in | |
# accordance with the commercial license agreement provided with the |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
""" | |
Retrieve intraday stock data from Google Finance. | |
""" | |
import csv | |
import datetime | |
import re | |
import codecs |