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
| ################# | |
| ## Eclipse | |
| ################# | |
| *.pydevproject | |
| .project | |
| .metadata | |
| bin/** | |
| tmp/** | |
| tmp/**/* |
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
| ### Check me into the root of the repo | |
| ### as .gitattributes | |
| *.doc diff=astextplain | |
| *.DOC diff=astextplain | |
| *.docx diff=astextplain | |
| *.DOCX diff=astextplain | |
| *.dot diff=astextplain | |
| *.DOT diff=astextplain |
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
| Server Error in '/' Application. | |
| Parser Error | |
| Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. | |
| Parser Error Message: Expected "}". | |
| Source Error: |
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
| Set-ItemProperty -Path HKCU:\Software\Microsoft\VisualStudio\11.0\General -Name SuppressUppercaseConversion -Type DWord -Value 1 |
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
| ################################################## | |
| #resources | |
| ################################################## | |
| #http://blogs.msdn.com/b/kalleb/archive/2008/07/19/using-powershell-to-read-xml-files.aspx | |
| #http://tfl09.blogspot.com/2007/11/formatting-with-powershell.html | |
| #http://www.powershellpro.com/powershell-tutorial-introduction/powershell-tutorial-conditional-logic/ | |
| ################################################## | |
| #resources | |
| ################################################## |
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
| ################################################## | |
| #resources | |
| ################################################## | |
| #http://technet.microsoft.com/en-us/library/cc721886(v=ws.10).aspx | |
| #http://technet.microsoft.com/en-us/library/cc709667(v=ws.10).aspx | |
| ################################################## | |
| #resources | |
| ################################################## | |
| #################################################################################### |
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
| public class HomeController : Controller { | |
| [AsyncTimeout(1000)] | |
| [HandleError(ExceptionType = typeof(TimeoutException), View = "TimeoutError")] | |
| public async Task<ActionResult> Foo(CancellationToken cancellationToken) { | |
| using (HttpClient client = new HttpClient()) { | |
| await client.GetStringAsync("http://localhost:2098/Home/Wait", cancellationToken); | |
| } |
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
| using System; | |
| using System.Net; | |
| using System.Net.Http; | |
| using System.Web.Http.Controllers; | |
| using System.Web.Http.Filters; | |
| [AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, AllowMultiple = false, Inherited = true)] | |
| public class InvalidModelStateFilterAttribute : ActionFilterAttribute | |
| { | |
| public override void OnActionExecuting(HttpActionContext actionContext) |
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
| class Program { | |
| public class Db { | |
| public static Dictionary<string, DbGeography> Locations = new Dictionary<string, DbGeography>() { | |
| //instert the place locations here... | |
| }; | |
| } |
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
| public async Task<ActionResult> Foo() { | |
| //some sync stuff | |
| //runs the async method | |
| var foobar = await _someClass.GetAsync(); | |
| //this continuation ends up in another thread. | |
| //cannot access some static instances such as HttpContext.Current | |
| doSomeWork(); |