Short description about drHEADer.
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 React, { ReactNode } from "react"; | |
| import { GatsbyImage } from "gatsby-plugin-image"; | |
| interface BackgroundImageProps extends React.HTMLAttributes<HTMLDivElement> { | |
| image: any; | |
| children: ReactNode; | |
| } | |
| const BackgroundImage = ({ image, children, ...div }: BackgroundImageProps) => { | |
| return ( |
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
| # | |
| # Date: 18/03/2019 | |
| # Module: Introduction to Programming. | |
| # Description: This file is a script used to perform various calculations on the prices of a set of given items. | |
| # | |
| # Note: I've used docstrings for functions, but I wasn't sure how many comments to include in the main script. I | |
| # think most of the code is self explanatory and I didn't want to restate the obvious as per the commenting guidelines. | |
| # | |
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
| from pynput import mouse | |
| from pynput.keyboard import Key | |
| from pynput.keyboard import Controller as KeyControl | |
| from pynput.mouse import Button | |
| from pynput.mouse import Controller as MouseControl | |
| keyboard = KeyControl() | |
| mouse_control = MouseControl() | |
| currently_pressed = False |
