Skip to content

Instantly share code, notes, and snippets.

View DerekStrickland's full-sized avatar

Derek Strickland DerekStrickland

View GitHub Profile
//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
@DerekStrickland
DerekStrickland / gist:1d6147d9b1f75d8cec42728543b8aee4
Created May 1, 2020 16:18 — forked from leonardo-m/gist:6e9315a57fe9caa893472c2935e9d589
A selection of 101 LINQ Samples converted to Rust
// 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()
{
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)
@DerekStrickland
DerekStrickland / cyclonedx-1.4.json
Last active April 1, 2023 21:19
CycloneDx 1.4 Spec without local signature ref
{
"$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"