Skip to content

Instantly share code, notes, and snippets.

View p0onage's full-sized avatar
:octocat:

Joshua Duxbury p0onage

:octocat:
View GitHub Profile
@DanDiplo
DanDiplo / JS-LINQ.js
Last active July 19, 2024 03:02
JavaScript equivalents of some common C# LINQ methods. To help me remember!
// JS array equivalents to C# LINQ methods - by Dan B.
// First: This version using older JavaScript notation for universal browser support (scroll down for ES6 version):
// Here's a simple array of "person" objects
var people = [
{ name: "John", age: 20 },
{ name: "Mary", age: 35 },
{ name: "Arthur", age: 78 },
{ name: "Mike", age: 27 },
@ausfestivus
ausfestivus / AzureRegionData.md
Last active July 19, 2024 12:44
A list of the Azure regions

List of Azure Regions

A list of all the region names and locations for Azure

Creating the list

You can recreate the list anytime using this command:

az account list-locations -o table
@Gutek
Gutek / C# Version Cheat Sheet.md
Last active February 8, 2022 09:33
Short cheat sheet of changes in C# language from version 6 to 9

CS 6

read-only auto properties

Small help with immutable types...

// private readonly int _age;
// public int Age { get { return _age; } }
public int Age { get; }
@lkurzyniec
lkurzyniec / !tf-switch.bat
Last active January 3, 2024 11:46
tf version switcher
@echo off
IF "%~1"=="" (
call ECHO No version specified. Call with '?' parameter to get a list of available versions
) ELSE (
IF "%~1"=="?" (
call ECHO Available versions:
call ECHO -------------------
call dir %PROGRAMDATA%\chocolatey\lib /b | findstr /i "terraform"
) ELSE (