Skip to content

Instantly share code, notes, and snippets.

View LindaLawton's full-sized avatar

Linda Lawton LindaLawton

View GitHub Profile
LindaLawton / README.MD
Created April 30, 2024 08:25
A Python application that uses Google's Generative AI API to summarize text and extract key insights from documents, text and webpages.

Corporate Synthesizer

A Python application that uses Google's Generative AI API to summarize text and extract key insights from documents.

Get started with the Corporate Synthesizer API


  • Python 3.7+
  • Google Cloud Platform account with API key and project ID
LindaLawton / .env
Last active April 2, 2024 13:02
Gemini api python chat sample.
INIT_PROMPT=You are a Pizza order bot. You take orders for Pizza This is all you can do.
INIT_PROMPT_AGREEMENT=I under stand I am a pizza bot I will only take orders for pizza.
LindaLawton / Datatransfomration.txt
Created September 15, 2023 15:10
Prompt for transforming data from two json objects Goes along with this video
I am going to give you a source JSon object and a destination JSon object. I want you to transform the data in source object to the format of the destination JSon object. The birth date format is mm-dd-YYYY.
This is the source object '{source}'
This is the destination object '{destination}' The date format for the destination object is YYYY-mm-dd. Given is an array of given names.
Please return the destination object with the values given in the source object.
LindaLawton / index.js
Created November 21, 2022 11:57
Example for downloading a file from google drive api using Node.js
// npm install googleapis@105 @google-cloud/local-auth@2.1.0 --save
const fs = require('fs');
const fsp = fs.promises;
const path = require('path');
const process = require('process');
const {authenticate} = require('@google-cloud/local-auth');
const {google} = require('googleapis');
LindaLawton / KlFhirIssueOneReport.json
Last active March 10, 2022 08:00
Report processing error.
"resourceType": "Bundle",
"id": "2d3be3fe-f464-4bb1-b0eb-110c2a88e8a9",
"meta": {
"profile": [
"type": "collection",
"timestamp": "2022-03-03T12:07:20.91+01:00",
"resourceType": "Bundle",
"id": "C424B46A-C0D9-4836-A835-57CF83A41358",
"meta": {
"profile": [
"type": "collection",
"timestamp": "2021-07-15T12:40:16.657+02:00",
LindaLawton / UploadVideo.cs
Created November 18, 2021 16:04
Upload a file to YouTube. Console application.
using System;
using System.IO;
using System.Threading.Tasks;
using Google.Apis.Upload;
using Google.Apis.YouTube.v3;
using Google.Apis.YouTube.v3.Data;
namespace YouTubeExampleUpload
public class UploadVideo
LindaLawton / DeployGCP-K8sCluster.txt
Last active October 4, 2021 10:05
GCP Deploy Kuberneties cluser using gcloud deployment-manager
#create the new cluser
gcloud deployment-manager deployments create kuberneties-deployment-v3 --config k8s.yaml
# update the cluser if you change the yaml file
gcloud deployment-manager deployments update kuberneties-deployment-v3 --config k8s.yaml
LindaLawton / index.html
Last active March 19, 2021 09:45
Three JavaScript example for connecting to Google Drive api.
<!DOCTYPE html>
<meta charset="utf-8">
<title>Hello Drive v3</title>
<!-- Create a client id on Google developer console. Web credentials -->
<meta name="google-signin-client_id" content="YOURCREDENTIALSHERE">
<meta name="google-signin-scope" content="">
LindaLawton / GoogleAnaltyicsConsole.cs
Last active October 7, 2020 13:45
Sample code for a google analytics console application.
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading;
using Google.Apis.AnalyticsReporting.v4;
using Google.Apis.AnalyticsReporting.v4.Data;
using Google.Apis.Auth.OAuth2;
using Google.Apis.Services;
using Google.Apis.Util.Store;