Skip to content

Instantly share code, notes, and snippets.

View shaneberry's full-sized avatar

Shane Berry shaneberry

  • Stillwater, OK, US
  • 03:57 (UTC -05:00)
View GitHub Profile
@shaneberry
shaneberry / gist:416eba1d539a2a223d2ec1dafcd6b2ae
Created March 27, 2024 15:35
Dataweave Example using map, flatMap, distinctBy & orderBy
%dw 2.0
output application/json
---
payload
map ((item, index) -> item.ErrorDetail.ValidationMessages) // Extract ValidationMessages from each item
flatMap ($) // Flatten the array of arrays into a single array
distinctBy ($.Message) // Remove duplicate messages based on the Message field
orderBy ($.Message default "")
map ($.Message) // Extract just the Message field
@shaneberry
shaneberry / key base.md
Created January 31, 2019 19:15
keybase proof

Keybase proof

I hereby claim:

  • I am shaneberry on github.
  • I am shane123 (https://keybase.io/shane123) on keybase.
  • I have a public key ASCVJkRIaM6n7fXyqKlg98bLTkbMgLK8NaqDLPp_oNgvWgo

To claim this, I am signing this object:

@shaneberry
shaneberry / docker-commands
Last active December 1, 2018 18:44
Docker Commands
make sure docker is working
$ docker run hello-world
build a docker image with a friendly name
$ docker build -t friendlyhello .
look at built images
$ docker image ls
look at your containers