Skip to content

Instantly share code, notes, and snippets.

View mikeeast's full-sized avatar

Mikael Östberg mikeeast

View GitHub Profile
@olivier5741
olivier5741 / FluentValidationAlternative.cs
Last active February 22, 2024 14:31
An alternative library API to FluentValidation
namespace Validation.Tests
{
using System;
using System.Collections.Generic;
using Xunit;
public class User
{
public string Name { get; set; }
public int Age { get; set; }
@davidfowl
davidfowl / gist:2925621
Created June 13, 2012 18:18
Connection initialization in multiple pages
// --- outside of the user controls, e.g. on the container page ---
$(function() {
window.hubReady = $.connection.hub.start();
});
// --- in your other pages ---
$(function() {
window.hubReady.done(function() {
// call hub method
});