This file contains 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
{ | |
"id": "d4335929-018c-1000-c055-fd2817650034", | |
"imp": [ | |
{ | |
"id": "1", | |
"banner": { | |
"format": [ | |
{ | |
"w": 320, | |
"h": 50 |
This file contains 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
const Projects = () => { | |
const data = useStaticQuery(graphql` | |
query MyQuery { | |
githubData { | |
data { | |
repositoryOwner { | |
pinnedItems { | |
edges { | |
node { | |
name |
This file contains 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 requests | |
url = '...' | |
try: | |
r = requests.get(url) | |
r.raise_for_status() | |
if r.status_code == requests.codes.ok: | |
# Do something... |
This file contains 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
def get_strava_token() -> str: | |
""" generates Strava Auth token and returns it """ | |
auth_url = "https://www.strava.com/oauth/token" | |
payload = { | |
"client_id": "xxxx", | |
"client_secret": "xxxx", | |
"refresh_token": "xxxx", | |
"grant_type": "refresh_token", | |
"f": "json", |
This file contains 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
# For more information, please refer to https://aka.ms/vscode-docker-python | |
FROM python:3.8-slim-buster | |
EXPOSE 5000 | |
ENV VAR1=10 | |
# Keeps Python from generating .pyc files in the container | |
ENV PYTHONDONTWRITEBYTECODE=1 |
This file contains 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
<!-- GPT --> | |
<script> | |
var googletag = googletag || {}; | |
googletag.cmd = googletag.cmd || []; | |
googletag.cmd.push(function () { | |
googletag | |
.defineSlot( | |
"/116082170/Cottam_Test_UAM_300x250", | |
[[300, 250]], |