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
| # Generic build script that builds, tests, and creates nuget packages. | |
| # | |
| # INSTRUCTIONS: | |
| # Update the following project paths: | |
| # proj Path to the project file (.csproj) | |
| # test Path to the test project (.csproj) | |
| # nuspec Path to the package definition for NuGet. | |
| # | |
| # delete any of the lines if not applicable | |
| # |
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 ReducedController : Controller | |
| { | |
| private readonly IContainProducts productRepository; | |
| private readonly ISearchForProducts productsIndex; | |
| private readonly IContainCustomers customerRepository; | |
| private readonly IShipProducts productShipper; | |
| private readonly ICoordinateSales salesCatalog; | |
| public ReducedController( | |
| IContainProducts productRepository, |
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 (var repo = new Repository("path\to\repo.git")) | |
| { | |
| // Object lookup | |
| var obj = repo.Lookup("sha"); | |
| var commit = repo.Lookup<Commit>("sha"); | |
| var tree = repo.Lookup<Tree>("sha"); | |
| var tag = repo.Lookup<Tag>("sha"); | |
| // Rev walking | |
| foreach (var c in repo.Commits.Walk("sha")) { } |
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
| echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
| . ~/.bashrc | |
| mkdir ~/local | |
| mkdir ~/node-latest-install | |
| cd ~/node-latest-install | |
| curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
| ./configure --prefix=~/local | |
| make install # ok, fine, this step probably takes more than 30 seconds... | |
| curl https://www.npmjs.org/install.sh | sh |
NewerOlder