Skip to content

Instantly share code, notes, and snippets.

@beccasaurus
beccasaurus / InspectFile.cs
Last active February 26, 2019 05:56
C# Code Sample Templates for cloud.google.com
// [START dlp_inspect_file]
// Imports the Google Cloud Data Loss Prevention library
using Google.Cloud.Dlp.V2;
using Google.Api.Gax.ResourceNames;
// Imports other required libraries
using System;
using System.IO;
using System.Collections.Generic;
@beccasaurus
beccasaurus / 🦇 Authoring Tests for Generated GAPIC Code Samples .yaml
Created October 6, 2018 00:26
🦇 Authoring Tests for Generated GAPIC Code Samples
- test_group: Analyze Text with Natural Language API (or ... do a CRUD thing)
setup:
# ...
teardown:
# ...
tests:
@beccasaurus
beccasaurus / cloudkms_gapic.yaml
Created October 4, 2018 23:41
Cloud KMS gapic.yaml including a sample for CreateKeyRing
type: com.google.api.codegen.ConfigProto
config_schema_version: 1.0.0
# The settings of generated code in a specific language.
language_settings:
java:
package_name: com.google.cloud.kms.v1
python:
package_name: google.cloud.kms_v1.gapic
go:
package_name: cloud.google.com/go/kms/apiv1
@beccasaurus
beccasaurus / Dockerfile
Created September 26, 2018 03:17
Classic ASP Dockerfile from interwebs
# escape=`
FROM microsoft/iis
SHELL ["powershell", "-command"]
# Not mine.
# Keeping to use later.
# Taken from:
# https://stackoverflow.com/questions/40099339/dockerize-asp-classic-on-iis
@beccasaurus
beccasaurus / _-:: 🎨 Generate Code Samples for 'GAPIC' Client Libraries 📡 ::-_.md
Last active November 7, 2018 04:01
_-:: 🎨 Generate Code Samples for 'GAPIC' Client Libraries 📡 ::-_
@beccasaurus
beccasaurus / github-insights.js
Created June 19, 2018 21:49
GitHub insights --- don't concatenate yo
$$(".capped-list-label").forEach(el => el.classList.remove("capped-list-label"));
// @sampleFile
DynamicLangSampleView {
templateFileName = nodejs/standalone_sample.snip,
outputPath = src/samples/v1/create_book_sample_request_create_a_book.js,
className = CreateBookSampleRequestCreateABook,
gapicPackageName = gapic-google-cloud-library-v1
// The following object is available in snips as @apiMethod
// @apiMethod = @sampleFile.libraryMethod
using System;
using Google.Cloud.Dialogflow.V2;
// To setup, follow instructions:
// https://cloud.google.com/dialogflow-enterprise/docs/quickstart-client-libraries
namespace GoogleCloudSamples
{
public class EntityTypeManagement
{
@beccasaurus
beccasaurus / 😂.md
Last active November 25, 2018 07:53
👾 Rebecca's most favoritest Futurama episodes 🚀

Best of Futurama (must see)

  1. Bender's Big Score
  2. The Prisoner of Benda [s6e10]
  3. Future Stock [s3e21]
  4. Three Hundred Big Boys [s4e16]
  5. The Deep South [s2e12]
  6. Time Keeps On Slippin [s3e14]
  7. Anthology of Interest II [s3e18]
  8. Fry and the Slurm Factory [s1e13]