Skip to content

Instantly share code, notes, and snippets.

👩‍💻
🐶☕️

Rebecca Taylor beccasaurus

👩‍💻
🐶☕️
Block or report user

Report or block beccasaurus

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View My Roll20 Macros.md

API Scripts

First, go to your API Scripts and enable these two:

  • TokenMod
  • GroupInitiative (ignore the warning popup when adding this one, it's fine)

Then open up the Macros section.

  • 🗸 Show macro quick bar
@beccasaurus
beccasaurus / Synthesis Complete.
Created Nov 21, 2019
say -v Daniel "Synthesis Complete."
View Synthesis Complete.
say -v Daniel "Synthesis Complete."
@beccasaurus
beccasaurus / sample_tester.sh
Last active Sep 30, 2019
sample-tester avec la couleur
View sample_tester.sh
sample_tester() {
echo "Running: sample-tester -v detailed $*"
# Escape sequene
local esc=$(printf '\033')
sample-tester -v detailed "$@" 2>&1 | \
sed "s/Tests failed/${esc}[31mTests failed${esc}[0m/g" | \
sed "s/Tests passed/${esc}[32mTests passed${esc}[0m/g" | \
sed "s/# ... call did not succeed \(.*\)/${esc}[90m# ${esc}[31m\`call:\` failed: \1${esc}[0m/g" | \
@beccasaurus
beccasaurus / automl_cancel_operation.py
Last active Sep 30, 2019
Python snippets for AutoML Operations client tasks
View automl_cancel_operation.py
# -*- coding: utf-8 -*-
#
# Copyright 2019 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
#
View Gemfile
source "https://rubygems.org"
gemspec
View Playing with syswrite.md

Playing with syswrite

Run screen.rb

Run client.rb

Try it out

write "Hello"
@beccasaurus
beccasaurus / LICENSE
Last active Sep 30, 2019
$ sample-composer
View LICENSE
# Copyright 2019 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,
@beccasaurus
beccasaurus / $ gapicify-samples .md
Last active Jun 27, 2019
$ gapicify-samples (polyfill to support samples in separate files)
View $ gapicify-samples .md

$ gapicify-samples

Polyfill to support authoring samples in separate files (not in the _gapic config)

This feature is currently in development – this script lets you try it out today!

See also: include_samples polyfill for running sample tests for library repos

@beccasaurus
beccasaurus / prepare_samples.rb
Last active May 31, 2019
Sample Configurations in Separate Files :: POLYFILL
View prepare_samples.rb
#! /usr/bin/env ruby
# Script for my local code sample development.
#
# Merged individual samples into speech_gapic.yaml
#
# Shim for upcoming change (samples will be in separate files)
#
# Note: the exact formatting of the individual files is subject to change
@beccasaurus
beccasaurus / $ include_samples .md
Last active Jun 13, 2019
$ include_samples=True (polyfill to support synth + samples with tests)
View $ include_samples .md

include_samples=True

SynthTool PR: Add include_samples=True #263


Polyfill to support generating samples with tests w/ SynthTool

This feature is currently in development – this script lets you try it out today!

You can’t perform that action at this time.