View cyclonedx-1.4.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
{ | |
"$schema": "http://json-schema.org/draft-07/schema#", | |
"$id": "http://cyclonedx.org/schema/bom-1.4.schema.json", | |
"type": "object", | |
"title": "CycloneDX Software Bill of Materials Standard", | |
"$comment": "CycloneDX JSON schema is published under the terms of the Apache License 2.0.", | |
"required": [ | |
"bomFormat", | |
"specVersion", | |
"version" |
View gist:33330a38bf64cc6122494d0a0fe47528
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
LEARN CONTENT | |
New tutorials | |
· [Securing Consul and Registered Services](https://learn.hashicorp.com/tutorials/consul/kubernetes-secure-agents) | |
· [Layer 7 observability with Prometheus and Grafana](https://learn.hashicorp.com/tutorials/consul/kubernetes-layer7-observability) | |
· [Consul kind platform guide](https://learn.hashicorp.com/tutorials/consul/kubernetes-kind) | |
· [Consul on OpenShift platform guide](https://learn.hashicorp.com/tutorials/consul/kubernetes-openshift-red-hat) | |
· [Manage Consul service mesh on Kubernetes with CRDs](https://learn.hashicorp.com/tutorials/consul/kubernetes-custom-resource-definitions) | |
· [Disaster recovery for Consul on Kubernetes](https://learn.hashicorp.com/tutorials/consul/kubernetes-disaster-recovery) |
View gist:1d6147d9b1f75d8cec42728543b8aee4
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
// Port of the C# 101 LINQ Samples rewritten into Apple's Swift 3. | |
#![feature(ordering_chaining, step_by)] | |
fn main() { | |
// linq5: Where - Indexed | |
/* | |
//c# | |
public void Linq5() | |
{ |
View TypeScript Mixin
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
//Addapted from this page http://lostechies.com/derickbailey/2012/10/07/javascript-mixins-beyond-simple-object-extension/ | |
module Mixer { | |
// build a mixin function to take a target that receives the mixin, | |
// a source that is the mixin, and a list of methods / attributes to | |
// copy over to the target | |
export function mix(target, source, methodNames){ | |
// ignore the actual args list and build from arguments so we can | |
// be sure to get all of the method names |