Skip to content

Instantly share code, notes, and snippets.

View Irwin1985's full-sized avatar
📕
https://leanpub.com/foxlite

易文翰 Irwin1985

📕
https://leanpub.com/foxlite
View GitHub Profile
@Irwin1985
Irwin1985 / JS-LINQ.js
Created January 3, 2023 12:32 — 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.
// 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 },
@Irwin1985
Irwin1985 / messagebox.go
Created December 12, 2020 15:49 — forked from NaniteFactory/messagebox.go
Win32 API MessageBox() in Golang
import (
"syscall"
"unsafe"
)
// MessageBox of Win32 API.
func MessageBox(hwnd uintptr, caption, title string, flags uint) int {
ret, _, _ := syscall.NewLazyDLL("user32.dll").NewProc("MessageBoxW").Call(
uintptr(hwnd),
uintptr(unsafe.Pointer(syscall.StringToUTF16Ptr(caption))),
@Irwin1985
Irwin1985 / CompilingCSharpCode.cs
Created November 12, 2020 17:28 — forked from RickStrahl/CompilingCSharpCode.cs
A few different approaches to dynamically execute C# code dynamically at runtime from a string of code.
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Scripting;
using Microsoft.CodeAnalysis.Scripting;
using Mono.CSharp;
using System;
using System.CodeDom.Compiler;
using System.Collections.Generic;
using System.Diagnostics;
using System.Dynamic;
using System.Linq;
@Irwin1985
Irwin1985 / LARAVEL_lumen.md
Created May 19, 2019 17:59 — forked from juanlopezdev/LARAVEL_lumen.md
Apuntes y primeros pasos con LUMEN (Microframework de Laravel)

Lumen

Lumen es un micro-framework para PHP.

Lumen es una versión más liviana de Laravel y orientado más a la creación de APIs y microservicios, aunque también puedes usarlo para crear sitios web o lo que quieras.

Si es posible migrar de Lumen a Laravel

Microservicios:

@Irwin1985
Irwin1985 / DBFReader.cs
Created January 7, 2019 03:17 — forked from sleimanzublidi/DBFReader.cs
C# DBF Reader
using System;
using System.Collections.Generic;
using System.Data;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Runtime.InteropServices;
using System.Text;