Skip to content

Instantly share code, notes, and snippets.

"I'm in"

Jessica Kerr jessitron

"I'm in"
View GitHub Profile
jessitron / fix-stderr.ps1
Last active Mar 17, 2021
Unwrapping STDERR in Powershell
View fix-stderr.ps1
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.
jessitron / gist:e1a3fc188b63b5baf0817114731ea8cf
Created Mar 7, 2018
Atomist command to find out who is reviewing
View gist:e1a3fc188b63b5baf0817114731ea8cf
import { commandHandlerFrom } from "@atomist/automation-client/onCommand";
import { HandleCommand } from "@atomist/automation-client";
import { Parameters } from "@atomist/automation-client/decorators";
import * as _ from "lodash"
export class WhoIsBusyParameters {
View readConfigUsingPromises.ts
function readConfig(): Promise<DeletionCriteria> {
return promisify(fs.readFile)("config/deletionCriteria.json", { encoding: "utf8" })
.then(configFileContent =>
jessitron / Properties.elm
Created Apr 17, 2016
An Elm program using elm-check that is compatible with elm-test (the Node module)
View Properties.elm
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
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
jessitron / EffectsTest.elm
Last active Sep 22, 2015 — forked from urfolomeus/EffectsTest.elm
The send Task can turn into the NoOp effect
View EffectsTest.elm
module EffectsTest where
import Html exposing (..)
import Html.Events exposing (onClick)
import StartApp exposing (App)
import Task exposing (Task)
import Effects exposing (Effects, Never)
jessitron / Failure.elm
Created Aug 16, 2015
An Elm Error: declaring a type equal to another doesn't make sense
View Failure.elm
module Failure where
import InnerComponent
type InnerAction = InnerComponent.Action -- oops, meant type alias
type Action = Passthru InnerAction
jessitron / Box.elm
Created Jul 11, 2015
An Elm type error that took me for a while to understand
View Box.elm
module Box (Model, init, Action, update, view) where
import Html exposing (..)
import Html.Attributes exposing (style)
import Html.Events exposing (onClick)
type alias Model = ()
jessitron / idea
Last active Aug 29, 2015
The Empty Buffer, by @fogus
View idea
You're sitting there and
all the sudden something comes to you and everything stops
You look down at no point in particular
but then the music is thrumming in your ears and
you see these colors come at the edge of your vision
red and yellow and blue, focusing in on them
If you can't stop it because you don't want to lose it
and you know that there's something there
Your vision blurs a bit and it becomes
this blackness in front of you
jessitron / main.log
Created Oct 14, 2014
random input file for demonstration
View main.log
== Summum Bonum, by Robert Browning ==
All the breath and the bloom of the year
In the bag of one bee
All the wonder and wealth of the mine
In the heart of one gem
In the core of one pearl all the shade
And the shine of the sea
Breath and bloom, shade and shine, wonder, wealth,
And how far above them
Truth that's brighter than gem