This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| namespace ConsoleApplication8 | |
| { | |
| using System; | |
| using System.Diagnostics; | |
| using System.IO; | |
| using System.Linq; | |
| using System.Reflection; | |
| using Microsoft.CodeAnalysis; | |
| using Microsoft.CodeAnalysis.CSharp; | |
| using Microsoft.CodeAnalysis.CSharp.Syntax; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| namespace ExtractEmails | |
| { | |
| using System; | |
| using System.Collections.Concurrent; | |
| using System.IO; | |
| using System.Linq; | |
| using System.Text.RegularExpressions; | |
| public class Program | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="utf-8"?> | |
| <Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
| <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> | |
| <PropertyGroup> | |
| <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | |
| <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | |
| <ProjectGuid>{4B7FDFDE-3CFF-4A96-9D76-8B8E495C24DD}</ProjectGuid> | |
| <OutputType>Exe</OutputType> | |
| <AppDesignerFolder>Properties</AppDesignerFolder> | |
| <RootNamespace>ConsoleApplication1</RootNamespace> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| internal class ReplaceNullContentWithNotFoundAttribute : EnableQueryAttribute | |
| { | |
| public override void OnActionExecuted(HttpActionExecutedContext actionExecutedContext) | |
| { | |
| base.OnActionExecuted(actionExecutedContext); | |
| HttpResponseMessage httpResponseMessage = actionExecutedContext.Response; | |
| if (httpResponseMessage.IsSuccessStatusCode && IsContentMissingValue(httpResponseMessage)) | |
| { | |
| actionExecutedContext.Response = actionExecutedContext.Request.CreateResponse(HttpStatusCode.NotFound); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @{ | |
| ViewBag.Title = "Create"; | |
| } | |
| <h2>Create</h2> | |
| <link href="@Url.Content("~/Content/themes/base/minified/jquery-ui.min.css")" rel="stylesheet" type="text/css" /> | |
| <script src="@Url.Content("~/Scripts/jquery-1.7.2.min.js")" type="text/javascript"></script> | |
| <script src="@Url.Content("~/Scripts/knockout-2.1.0.js")" type="text/javascript"></script> |