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.Diagnostics; | |
| using System.Runtime.CompilerServices; | |
| namespace DebugVsRelease | |
| { | |
| class Constants | |
| { | |
| public const int Itterations = 1000000; | |
| } |
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
| http://www.dustin.se/product/5010746863/sp-pov-buoy/ | |
| http://www.dustin.se/product/5010640729/sandisk-microsdxc-ultra-class-10-64-gb/ | |
| http://www.dustin.se/product/5010667590/gopro-hero3-black-edition/ | |
| http://www.dustin.se/product/5010672749/gopro-caps-doors-hero3/ |
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 MyFactAttribute : FactAttribute | |
| { | |
| public MyFactAttribute(params string[] scenarios) | |
| { | |
| if(!scenarios.Any() || IntegrationTestsRuntime.Environment.SupportsEverything) | |
| return; | |
| if (!scenarios.All(r => IntegrationTestsRuntime.Environment.HasSupportFor(r))) | |
| Skip = string.Format("TestEnvironment does not support ALL test scenario(s): '{0}'.", string.Join("|", scenarios)); | |
| } |
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
| [Fact] | |
| public void Can_search_on_default_index() | |
| { | |
| var searchRequest = new SearchIndexRequest(CloudantTestData.Views.Views101AnimalsSearchIndexId) | |
| .Configure(q => q.Expression("kookaburra")); | |
| var response = SUT.SearchAsync(searchRequest).Result; | |
| response.Should().BeSuccessfulGet(numOfRows: 1); | |
| response.Bookmark.Should().NotBeNullOrEmpty(); |
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.Threading; | |
| using MyCouch; | |
| using MyCouch.Requests; | |
| namespace Cloudant_Changes_Feature | |
| { | |
| class Program | |
| { | |
| static void Main(string[] args) |
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
| function(doc) { | |
| if (doc.Type == "A") { | |
| emit([doc.Week, doc.Day, 0]); | |
| } | |
| if (doc.Type == "B") { | |
| emit([doc.Week, doc.Day, 1], doc.Class); | |
| } | |
| } |
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 | |
| { | |
| static void Main(string[] args) | |
| { | |
| Console.WriteLine("Main2"); | |
| var ints = GetInts(); | |
| Console.WriteLine("Main2"); |
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
| Func<double, double> fallVelocity = distance => System.Math.Sqrt(2 * 9.8 * distance); |
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.Collections.Generic; | |
| using System.Diagnostics; | |
| using System.Linq; | |
| using System.Linq.Expressions; | |
| using System.Reflection; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| namespace ConsoleApplication1 |
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
| (function (exports) { | |
| var app = exports.app = { | |
| bindingContext: { | |
| domnode: null, | |
| model: null, | |
| loadTemplate: function (templateName) { | |
| return document.getElementById(templateName).innerHTML; | |
| }, | |
| bind: function (templateName, vm) { | |
| this.domnode.innerHTML = this.loadTemplate(templateName); |