Skip to content

Instantly share code, notes, and snippets.

View IcodeNet's full-sized avatar
😀

Byron Thanopoulos IcodeNet

😀
View GitHub Profile
@steff-mueller
steff-mueller / Tutorial.markdown
Created December 23, 2011 14:06
Servicestack - Validation of request dtos

This feature is now included in the latest release of ServiceStack and the up-to-date documentation can be found here: https://github.com/ServiceStack/ServiceStack/wiki/Validation

FluentValidation for request dtos

First in the app host the validation mechanism must be initialized:

ValidationHandler.Init(this);

This request dto should be validated:

@steff-mueller
steff-mueller / Tutorial.markdown
Created December 26, 2011 11:24
Authentication and authorization in ServiceStack
@Yavari
Yavari / README.markdown
Created February 23, 2012 09:00 — forked from gudbergur/README.markdown
Bootstrap's Typeahead plugin extended (allowing for AJAX functionality) among other things

This is a fork of Bootstrap Typeahead that adds minimal but powerful extensions.

For example, process typeahead list asynchronously and return objects

  # This example does an AJAX lookup and is in CoffeeScript
  $('.typeahead').typeahead(
    # source can be a function
    source: (typeahead, query) ->
 # this function receives the typeahead object and the query string
@haacked
haacked / ServiceResolverAdapter.cs
Created March 11, 2012 19:34
ServiceResolverAdapter: Allows you to use the ASP.NET MVC DependencyResolver for ASP.NET Web API
public class ServiceResolverAdapter : IDependencyResolver
{
private readonly System.Web.Mvc.IDependencyResolver dependencyResolver;
public ServiceResolverAdapter(System.Web.Mvc.IDependencyResolver dependencyResolver)
{
if (dependencyResolver == null) throw new ArgumentNullException("dependencyResolver");
this.dependencyResolver = dependencyResolver;
}
@kmorcinek
kmorcinek / .gitignore
Last active June 13, 2024 22:44
.gitignore for C# projects
# The following command works for downloading when using Git for Windows:
# curl -LOf http://gist.githubusercontent.com/kmorcinek/2710267/raw/.gitignore
#
# Download this file using PowerShell v3 under Windows with the following comand:
# Invoke-WebRequest https://gist.githubusercontent.com/kmorcinek/2710267/raw/ -OutFile .gitignore
#
# or wget:
# wget --no-check-certificate http://gist.githubusercontent.com/kmorcinek/2710267/raw/.gitignore
# User-specific files
@erikreagan
erikreagan / mac-apps.md
Created August 4, 2012 19:18
Mac developer must-haves

Mac web developer apps

This gist's comment stream is a collection of webdev apps for OS X. Feel free to add links to apps you like, just make sure you add some context to what it does — either from the creator's website or your own thoughts.

— Erik

@loosechainsaw
loosechainsaw / auditinginterceptor.cs
Created August 21, 2012 13:55
Auditing Interceptor Example
using System;
using System.Linq;
using System.Reflection;
using Castle.Core;
using Castle.DynamicProxy;
using Castle.MicroKernel.Proxy;
using Castle.MicroKernel.Registration;
using Castle.Windsor;
namespace WindsorExamples
@steff-mueller
steff-mueller / gist:3750826
Created September 19, 2012 17:07
ReactiveUI validation
public interface IValitated
{
Dictionary<string, Func<string>> Validators { get; set; }
}
public class ValidatedReactiveObject : ReactiveObject, IValitated, IDataErrorInfo
{
public Dictionary<string, Func<string>> Validators { get; set; }
public ValidatedReactiveObject()
@IcodeNet
IcodeNet / Delete all the bin and obj folders in a solution 2012:
Created November 28, 2012 12:56
Delete all the bin and obj folders in a solution 2012
Delete all the bin and obj folders in a solution 2012:
Right-click on the solution in Solution Explorer
Open Command Prompt
Run powershell
Paste and run :
Get-ChildItem -include bin,obj -recu -Force | remove-item -force -recurse
@devinrhode2
devinrhode2 / TraceKitSupplement.js
Last active October 23, 2023 12:49
Stuff I've added to my error reporting/handling stuff in addition to TraceKit.js, ideally in a few months I don't write any of this code
function exceptionalException(message) {
'use strict';
if (exceptionalException.emailErrors !== false) {
exceptionalException.emailErrors = confirm('We had an error reporting an error! Please email us so we can fix it?');
}
}
//test
//exceptionalException('try 1!');
//exceptionalException('try 2!');