Skip to content

Instantly share code, notes, and snippets.

Avatar

Derek Strickland DerekStrickland

View GitHub Profile
View gist:33330a38bf64cc6122494d0a0fe47528
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 / gist:1d6147d9b1f75d8cec42728543b8aee4
Created May 1, 2020 16:18 — forked from leonardo-m/gist:6e9315a57fe9caa893472c2935e9d589
A selection of 101 LINQ Samples converted to Rust
View gist:1d6147d9b1f75d8cec42728543b8aee4
// 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
//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