This workshop is intended on getting you up-to-speed running code on Google as quickly (and as cheaply) as possible on its serverless platforms. Self-link: http://bit.ly/gdgsudbury2024
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Geocoding with Vue</title> | |
<script src="https://unpkg.com/vue@3"></script> | |
<script src="https://unpkg.com/axios/dist/axios.min.js"></script> | |
</head> | |
<body> | |
<div id="app"> | |
<input type="text" v-model="address" placeholder="Enter address"> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Hello Vue!</title> | |
<script src="https://unpkg.com/vue@3"></script> | |
</head> | |
<body> | |
<div id="app"> | |
{{ message }} | |
</div> |
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
<# | |
.SYNOPSIS | |
Saves .exe/.msi icons as .ico files (to use with Explorer) | |
.DESCRIPTION | |
Loops thru all .exe/.msi files in given or current (default) | |
folder, extracts icons, and saves them as .ico files. | |
.PARAMETER folder | |
Optional folder name; if not provided, current ($pwd) is used | |
.EXAMPLE | |
(current folder) ExtractIcon |
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
$ gcloud services list --available --filter="name:googleapis.com" | |
NAME TITLE | |
abusiveexperiencereport.googleapis.com Abusive Experience Report API | |
acceleratedmobilepageurl.googleapis.com Accelerated Mobile Pages (AMP) URL API | |
accessapproval.googleapis.com Access Approval API | |
accesscontextmanager.googleapis.com Access Context Manager API | |
actions.googleapis.com Actions API | |
addressvalidation.googleapis.com Address Validation API | |
adexchangebuyer.googleapis.com Ad Exchange Buyer API II |
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
<!doctype html> | |
<html><head><title>Student Information</title><body> | |
<style> | |
body { | |
font-family: Verdana, Helvetica, sans-serif; | |
background-color: #DDDDDD; | |
} | |
table, th, td { | |
border: 1px solid black; | |
padding: 4px; |
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
# Copyright 2021 Google LLC | |
# SPDX-License-Identifier: Apache-2.0 | |
from flask import Flask, render_template | |
import google.auth | |
from googleapiclient import discovery | |
app = Flask(__name__) | |
CREDS, _PROJECT_ID = google.auth.default() | |
SHEETS = discovery.build('sheets', 'v4', credentials=CREDS) |
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
# https://github.com/googleapis/google-auth-library-python/issues/501 | |
from __future__ import print_function | |
import os | |
from google.oauth2 import credentials | |
TOKENS = 'tokens.json' # OAuth2 token storage | |
if os.path.exists(TOKENS): | |
creds = credentials.Credentials.from_authorized_user_file(TOKENS) | |
if not (creds and creds.valid): |