Skip to content

Instantly share code, notes, and snippets.

View jbarrick-mesosphere's full-sized avatar

Justin Taylor-Barrick jbarrick-mesosphere

  • Mesosphere
  • San Francisco
View GitHub Profile
package issubset
import "reflect"
// Check to see if `expected` is a subset of `actual`. A "subset" is an object that is equivalent to
// the other object, but where map keys found in actual that are not defined in expected are ignored.
func IsSubset(expected, actual interface{}) bool {
if reflect.TypeOf(expected) != reflect.TypeOf(actual) {
return false
}
@jbarrick-mesosphere
jbarrick-mesosphere / 00-assert.yaml
Created May 29, 2019 21:35
kudo test framework example
apiVersion: apps/v1
kind: Deployment
metadata:
name: my-instance-nginx
spec:
replicas: 4
selector:
matchLabels:
app: test-framework
template:
apiVersion: v1
kind: ConfigMap
metadata:
namespace: prow
name: plugins
data:
plugins.yaml: |
plugins:
jbarrick-mesosphere/prow-test:
- size
@jbarrick-mesosphere
jbarrick-mesosphere / index.html
Created December 19, 2019 18:49
Timeline Chart - DevExtreme Charts - Timeline
<div class="dx-viewport demo-container">
<div id="chart"></div>
<div class="row" id="buttonGroup">
<div class="row-element" id="export"></div>
</div>
</div>