Skip to content

Instantly share code, notes, and snippets.

View devoncarew's full-sized avatar

Devon Carew devoncarew

View GitHub Profile
// Copyright 2024 the Dart project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license
// that can be found in the LICENSE file.
import 'package:flutter/material.dart';
import 'package:flutter_markdown/flutter_markdown.dart';
import 'package:google_generative_ai/google_generative_ai.dart';
import 'package:url_launcher/link.dart';
void main() {

Google API client for the Cloud Functions API.

Manages lightweight user-provided functions executed in response to events.

For additional documentation, see https://cloud.google.com/functions.

Getting started

To get started, create an instance of CloudFunctions:

google.iam.credentials.v1.iamcredentials
State count 4
SubstitutionsEntry count 3
google.firestore.v1
Operator count 3
FieldsEntry count 2
LabelsEntry count 3
google.iam.v3.iam
AnnotationsEntry count 2
google.cloud.tpu.v2.tpu

Supported MIME types

MIME type Default ext Additional exts
application/andrew-inset ez
application/applixware aw
application/atom+xml atom
import 'dart:core' hide Duration;
import 'dart:core' as core show Duration;
void main() {
final howLong = core.Duration(seconds: 1);
for (var i = 0; i < 10; i++) {
print('hello ${i + 1}; $howLong');
}
}
// Copyright 2025 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// Generated from google/protobuf/descriptor.proto.
//
// Package 'google.protobuf'.
// ignore_for_file: constant_identifier_names
import 'dart:typed_data';
import 'package:fixnum/fixnum.dart';
import 'package:protolino/protolino.dart';
//
// Generated code. Do not modify.
// source: descriptor.proto
//
// @dart = 2.12
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
// ignore_for_file: constant_identifier_names, library_prefixes
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import
{
"servicePath": "",
"version": "v1",
"canonicalName": "Generative Language",
"description": "The Gemini API allows developers to build generative AI applications using Gemini models. Gemini is our most capable model, built from the ground up to be multimodal. It can generalize and seamlessly understand, operate across, and combine different types of information including language, images, audio, video, and code. You can use the Gemini API for use cases like reasoning across text and images, content generation, dialogue agents, summarization and classification systems, and more.",
"mtlsRootUrl": "https://generativelanguage.mtls.googleapis.com/",
"kind": "discovery#restDescription",
"name": "generativelanguage",
"parameters": {
"alt": {
@devoncarew
devoncarew / flutter_news.json
Last active November 28, 2024 08:34
Flutter News Bluesky / SkyFeed impl
"firehoseSeconds": 259200
},
{
"type": "remove",
"subject": "item",
"value": "reply",
"id": "aaagitrwcir7k"
},
{
"id": "aaagir76foxfc",