Command Line
pry -r ./config/app_init_file.rb- load your app into a pry session (look at the file loaded by config.ru)pry -r ./config/environment.rb- load your rails into a pry session
Debugger
| param( | |
| [string]$edition, | |
| [switch]$noWeb = $false | |
| ) | |
| # Try and find a version of Visual Studio in the expected location, since the VS150COMNTOOLS environment variable isn't there any more | |
| $basePath = join-path (join-path ${env:ProgramFiles(x86)} "Microsoft Visual Studio") "2017" | |
| if ((test-path $basePath) -eq $false) { | |
| write-warning "Visual Studio 2017 is not installed." |
| <Project Sdk="Microsoft.NET.Sdk"> | |
| <PropertyGroup> | |
| <OutputType>Exe</OutputType> | |
| <TargetFramework>netcoreapp1.1</TargetFramework> | |
| </PropertyGroup> | |
| <ItemGroup> | |
| <GitBranchToReleaseLabelMapping Include="master" ReleaseLabel="rtm" /> | |
| <GitBranchToReleaseLabelMapping Include="develop" ReleaseLabel="beta" /> |
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| namespace budget { | |
| public class Program { | |
| static void Main(string[] args) { | |
| var debt = new DebtCalculation(500); |
Command Line
pry -r ./config/app_init_file.rb - load your app into a pry session (look at the file loaded by config.ru)pry -r ./config/environment.rb - load your rails into a pry sessionDebugger
brew install git bash-completion
Configure things:
git config --global user.name "Your Name"
git config --global user.email "[email protected]"
| public static class TestHelpers | |
| { | |
| public static void ShouldEqualWithDiff(this string actualValue, string expectedValue) | |
| { | |
| ShouldEqualWithDiff(actualValue, expectedValue, DiffStyle.Full, Console.Out); | |
| } | |
| public static void ShouldEqualWithDiff(this string actualValue, string expectedValue, DiffStyle diffStyle) | |
| { | |
| ShouldEqualWithDiff(actualValue, expectedValue, diffStyle, Console.Out); |
| using System; | |
| using System.Collections.Generic; | |
| using System.IO; | |
| using System.Linq; | |
| using System.Reflection; | |
| using NUnit.Framework; | |
| namespace MyProject | |
| { | |
| [TestFixture] |
| git push -f origin HEAD\^:master | |
| so commit history in the remote looks like: | |
| Had to clean up some things from the merge | |
| nickfloyd (author) | |
| January 26, 2011 | |
| commit 4bcce9878c454ba5583c | |
| tree e6f4cffa47b1301a4cfc |