I hereby claim:
- I am carolynvs on github.
- I am carolynvs (https://keybase.io/carolynvs) on keybase.
- I have a public key whose fingerprint is D31E 7624 60E3 13EA 9780 1E16 33EE CC2F FF11 A333
To claim this, I am signing this object:
using System; | |
using System.Collections.Generic; | |
using System.Linq.Expressions; | |
namespace Carolynvs.Extensions | |
{ | |
/// <summary> | |
/// Extension methods for the Object type | |
/// </summary> | |
public static class ObjectExtensions |
using System; | |
using System.Data; | |
using System.Data.Entity; | |
using System.Data.Entity.Infrastructure; | |
using System.Data.Entity.ModelConfiguration; | |
using System.Data.Objects; | |
using System.Linq; | |
using Carolynvs.Model; // Contains Carolynvs.UtcDateTimeConverter which provides UtcDateTimeConverter.Convert(object model) | |
namespace Carolynvs.DAL |
using System.Web.Optimization; | |
public class BundleConfig | |
{ | |
public static void RegisterBundles(BundleCollection bundles) | |
{ | |
bundles.Add(new StyleBundle(Bundles.Styles.Common) | |
.Include("~/Content/normalize.css", | |
"~/Content/site.css")); |
public static IQueryable<T> FilterByFooBar<T>(this IQueryable<T> items) | |
where T : class, IFooBar | |
{ | |
return items.Where(x => x.IsFooBar); | |
} |
var valueType = true; | |
var oValueType = new ko.observable(valueType); | |
oValueType(false); | |
// valueType is unchanged | |
var array = [1, 2, 3]; | |
var oArray = new ko.observableArray(array); | |
oArray.remove(1); | |
// array is modified, now equals [2, 3] |
public static void RegisterRoutes(RouteCollection routes) | |
{ | |
routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); | |
// GET /api/{resource}/{action} | |
routes.MapHttpRoute( | |
name: "Web API RPC", | |
routeTemplate: "api/{controller}/{action}", | |
defaults: new { }, | |
constraints: new { action = @"[A-Za-z]+", httpMethod = new HttpMethodConstraint("GET") } |
using System.Web.Routing; | |
using WebApiContrib.Testing; | |
namespace FooBar | |
{ | |
[TestFixture] | |
public void RouteFixture | |
{ | |
[SetUp] | |
public void Setup() |
/// <summary> | |
/// Forces a secured (HTTPS) request to be resent over HTTP | |
/// </summary> | |
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, AllowMultiple = false, Inherited = true)] | |
public class RequireHttpAttribute : FilterAttribute, IAuthorizationFilter | |
{ | |
public virtual void OnAuthorization(AuthorizationContext filterContext) | |
{ | |
if(filterContext == null) | |
{ |
I hereby claim:
To claim this, I am signing this object:
wget http://download.mono-project.com/repo/xamarin.gpg | |
sudo apt-key add xamarin.gpg | |
echo "deb http://download.mono-project.com/repo/debian wheezy main" | sudo tee --append /etc/apt/sources.list.d/mono-xamarin.list | |
sudo apt-get update | |
sudo apt-get install mono-complete | |
sudo certmgr -ssl -m https://go.microsoft.com | |
sudo certmgr -ssl -m https://nugetgallery.blob.core.windows.net | |
sudo certmgr -ssl -m https://nuget.org | |
mozroots --import --sync |