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 virtual IEnumerable<Commit> GetFromTo(DateTime start, DateTime end) | |
| { | |
| this.ThrowWhenDisposed(); | |
| Logger.Debug(Resources.GettingAllCommitsFromToTime, start, end); | |
| var selectedCommitIds = this.stamps.Where(x => x.Value >= start && x.Value < end).Select(x => x.Key); | |
| var firstCommitId = selectedCommitIds.FirstOrDefault(); | |
| var lastCommitId = selectedCommitIds.LastOrDefault(); | |
| if (lastCommitId == Guid.Empty && lastCommitId == Guid.Empty) |
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 Thing | |
| { | |
| public long ThingId { get; set; } | |
| public string Name { get; set; } | |
| public string Description { get; set; } | |
| } |
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
| # Ignore dot-files, except the .gitignore file. | |
| .* | |
| !.gitignore | |
| # (All rules from CSharp.gitignore) |
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
| #include <iostream> | |
| #include <curl/curl.h> | |
| #include <math.h> | |
| #include <vector> | |
| #include <future> | |
| #include <boost/format.hpp> | |
| #define logbase(a, b) (log(a)/log(b)) | |
| using namespace std; |
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
| // If we have a Person class like this... | |
| case class Person(firstName : String, lastName : String) | |
| // ... and we want to use pattern matching to ensure | |
| // an object is a Person with lastName "Jones" before | |
| // send it to someFunction, we could do something like | |
| // this: | |
| someObject match { |
NewerOlder