Skip to content

Instantly share code, notes, and snippets.

View wdolek's full-sized avatar
🙄
meh.

Zdenek Havlin wdolek

🙄
meh.
View GitHub Profile
@wdolek
wdolek / ConsoleApp153.csproj
Created March 27, 2024 08:42
Proof that AutoMapper can be slower than your own manually written code
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
@wdolek
wdolek / TypeExtensions.cs
Created October 19, 2019 17:00
Type extensions
using System.Collections.Generic;
using System.Reflection;
namespace System
{
/// <summary>
/// Extensions of <see cref="Type"/>.
/// </summary>
internal static class TypeExtensions
{
<?php
/**
* CLI script to check whether php script paths correspond to class names.
* (Name Space File Name Checker)
*
* Naming of classes and file names should meet this standard proposal:
* http://groups.google.com/group/php-standards/web/psr-0-final-proposal
*
* Usage:
* php nsfnchecker.php /path/to/libs [<vendor name>]