mkdir hello-wirecd hello-wirenpm install wire- Create main.js and spec.js as per the files in this gist.
node main.js
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
| # Install sonarqube scanner / reporter | |
| dotnet tool install --global dotnet-sonarscanner | |
| # Install dotnet tools to generate test report | |
| dotnet tool install --global coverlet.console | |
| dotnet add package coverlet.msbuild | |
| # Start sonarqube process | |
| dotnet build-server shutdown | |
| dotnet sonarscanner begin /o:${SONAR_ORG_KEY} /k:${SONAR_PROJECT_KEY} /v:${VERSION} /d:sonar.host.url=https://sonarcloud.io /d:sonar.login=${SONAR_TOKEN} /d:sonar.cs.opencover.reportsPaths="opencover.xml" |
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 async Task Main(string[] args) | |
| { | |
| // Add this to your C# console app's Main method to give yourself | |
| // a CancellationToken that is canceled when the user hits Ctrl+C. | |
| var cts = new CancellationTokenSource(); | |
| Console.CancelKeyPress += (s, e) => | |
| { | |
| Console.WriteLine("Canceling..."); |
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
| # Diff with JetBrains Rider | |
| [diff] | |
| tool = rider | |
| [difftool] | |
| prompt = false | |
| [difftool "rider"] | |
| cmd = D:\\\\Program\\ Files\\\\Jetbrains\\\\apps\\\\Rider\\\\ch-0\\\\181.4379.788\\\\bin\\\\rider64.exe diff "$LOCAL" "$REMOTE" | |
| # Merge with JetBrains Rider | |
| [merge] |
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
| select.form-control + .chosen-container.chosen-container-single .chosen-single { | |
| display: block; | |
| width: 100%; | |
| height: 34px; | |
| padding: 6px 12px; | |
| font-size: 14px; | |
| line-height: 1.428571429; | |
| color: #555; | |
| vertical-align: middle; | |
| background-color: #fff; |
In Tools | Options | Keyboard...
- Add
CTRL+Was a Global shortcut forWindow.CloseDocumentWindow - Remove the
CTRL+Wshortcut forEdit.SelectCurrentWord
The caveat to this is if you are used to using CTRL+W to select the current word. If you do, find another shortcut that works for that.
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.Linq; | |
| using System.Text; | |
| namespace EntityExtensions { | |
| public class FakeDbSet<T> : System.Data.Entity.IDbSet<T> where T : class { | |
| private readonly List<T> list = new List<T>(); | |
| public FakeDbSet() { |