Skip to content

Instantly share code, notes, and snippets.

@ahdung
ahdung / JS-LINQ.js
Created July 31, 2018 00:48 — forked from DanDiplo/JS-LINQ.js
JavaScript equivalents of some common C# LINQ methods. To help me remember!
// JS array equivalents to C# LINQ methods - by Dan B.
// 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 },
{ name: "Judy", age: 42 },
{ name: "Tim", age: 8 }
@ahdung
ahdung / MessageBoxCenter.cs
Last active April 1, 2017 12:43
A MessageBox can center within Form
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Drawing;
using System.Runtime.InteropServices;
using System.Text;
using System.Windows.Forms;
namespace AhDung.WinForm
{