Skip to content

Instantly share code, notes, and snippets.

@kinetiq
kinetiq / SimpleValidator
Created October 27, 2020 21:25
Manually validate any model in .NET Core 3.1
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace Ether.Validation
{
public static class SimpleValidator
{
/// <summary>
/// Validate the model and return a response, which includes any validation messages and an IsValid bit.
@kinetiq
kinetiq / Forms.js
Last active December 26, 2017 01:16
MDBoostrap Forms for Unobtrusive Validaiton
// 12.25.2017 This is for MDP Pro 4.4.3
// Alternate forms-handling to enable Unobtrusive jQuery Validation, used by MVC. The idea is to actually turn off
// the native HTML5/constraints-based vlidation MDB favors, while keeping all the cool effects they came up with. This really
// only requires minor changes.
//
// Starting on line 14023 on MDB.js, which says /* FORMS */, replace that entire section with this:
/* FORMS */
(function ($) {
Set-WindowsExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions
cinst chocolatey
cinst notepadplusplus
cinst GoogleChrome
cinst 7zip.install
@kinetiq
kinetiq / dev.vs2022
Last active April 5, 2023 14:01
Dev Loadout
Set-ExplorerOptions -showHiddenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions
cinst fiddler
cinst notepadplusplus
cinst GoogleChrome
cinst Firefox
cinst lastpass
choco install postman
cinst 7zip
cinst GithubForWindows