View values.yaml
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
mode: deployment | |
config: | |
exporters: | |
otlp/honeycomb: | |
endpoint: api.honeycomb.io:443 | |
headers: | |
"x-honeycomb-team": YOUR-HONEYCOMB-API-KEY-HERE | |
logging: | |
loglevel: debug |
View package.json
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
{ ... | |
"dependencies": { | |
"@grpc/grpc-js": "^1.5.7", | |
"@opentelemetry/api": "^1.1.0", | |
"@opentelemetry/core": "^1.1.1", | |
"@opentelemetry/exporter-trace-otlp-grpc": "^0.27.0", | |
"@opentelemetry/instrumentation": "^0.27.0", | |
"@opentelemetry/instrumentation-express": "^0.28.0", | |
"@opentelemetry/instrumentation-http": "^0.27.0", | |
"@opentelemetry/resources": "^1.1.1", |
View fix-stderr.ps1
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 | |
STDERR strings get wrapped in an ErrorRecord. Unwrap those back into strings. | |
#> | |
function Convert-StderrString { | |
# Why can this not be an advanced function with [CmdletBinding()] ? | |
# Somehow it doesn't work if I put that in. | |
View gist:e1a3fc188b63b5baf0817114731ea8cf
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
import { commandHandlerFrom } from "@atomist/automation-client/onCommand"; | |
import { HandleCommand } from "@atomist/automation-client"; | |
import { Parameters } from "@atomist/automation-client/decorators"; | |
import * as _ from "lodash" | |
@Parameters() | |
export class WhoIsBusyParameters { | |
} |
View readConfigUsingPromises.ts
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
function readConfig(): Promise<DeletionCriteria> { | |
return promisify(fs.readFile)("config/deletionCriteria.json", { encoding: "utf8" }) | |
.then(configFileContent => | |
JSON.parse(configFileContent)); | |
} |
View Properties.elm
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
module Main (..) where | |
import ElmTest | |
import Check exposing (Evidence, Claim, that, is, for) | |
import Check.Test | |
import Check.Producer as Producer | |
import List | |
import Signal exposing (Signal) | |
import Console exposing (IO) | |
import Task |
View CarrotPotato.elm
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
module CarrotPotato where | |
import StartApp | |
import Task exposing (Task) | |
import Signal exposing (Signal, Address) | |
import Effects exposing (Effects, Never) | |
import Html exposing (Html) | |
-- | |
-- StartApp boilerplate |
View EffectsTest.elm
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
module EffectsTest where | |
import Html exposing (..) | |
import Html.Events exposing (onClick) | |
import StartApp exposing (App) | |
import Task exposing (Task) | |
import Effects exposing (Effects, Never) | |
View Failure.elm
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
module Failure where | |
import InnerComponent | |
--- ACTION | |
type InnerAction = InnerComponent.Action -- oops, meant type alias | |
type Action = Passthru InnerAction | |
-- MODEL |
View Box.elm
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
module Box (Model, init, Action, update, view) where | |
import Html exposing (..) | |
import Html.Attributes exposing (style) | |
import Html.Events exposing (onClick) | |
-- MODEL | |
type alias Model = () |
NewerOlder