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
| 35004 | |
| 35005 | |
| 35006 | |
| 35007 | |
| 35010 | |
| 35014 | |
| 35016 | |
| 35019 | |
| 35020 | |
| 35023 |
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 Restore | |
| def initialize(settings) | |
| @settings = settings | |
| end | |
| def Build() | |
| "#{@settings['sqlcmd']} -E -Q \" RESTORE DATABASE #{@settings['projectname']} FROM DISK = \'#{@settings['database_path']}#{@settings['projectname']}.bak\'\"" | |
| end |
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 Backup | |
| def initialize(settings) | |
| @settings = settings | |
| end | |
| def Run() | |
| "#{@settings['sqlcmd']} -E -Q \" BACKUP DATABASE #{@settings['projectname']} TO DISK = \'#{@settings['database_path']}#{@settings['projectname']}.bak\'\"" | |
| end | |
| end |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <xsl:stylesheet version="1.0" | |
| xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | |
| xmlns:wix="http://schemas.microsoft.com/wix/2006/wi"> | |
| <xsl:output method="xml" indent="yes" /> | |
| <xsl:template match="@*|node()"> | |
| <xsl:copy> | |
| <xsl:apply-templates select="@*|node()"/> |
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
| -- -- -- -- | |
| | | | | | | | | | |
| | | | | | | | | | |
| -- -- -- -- | |
| | | | | | | | | |
| | | | | | | | | |
| -- -- -- -- | |
| - - - - | |
| | | | | | | |
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 NUnit.Framework; | |
| using Rhino.Mocks; | |
| namespace ScratchPad | |
| { | |
| [TestFixture] | |
| public class TicketMachineTest | |
| { | |
| [Test] | |
| public void ShouldReserveTheNumberofTicketsInputtedWhenTheUserSubmitsARequest() |
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 void CompareTwoXmlFilesInMemory() | |
| { | |
| using (MemoryStream diffgram = new MemoryStream()) | |
| { | |
| XmlTextWriter diffgramWriter = new XmlTextWriter(new StreamWriter(diffgram)); | |
| XmlDiff xmldiff = | |
| new XmlDiff(XmlDiffOptions.IgnoreChildOrder | XmlDiffOptions.IgnoreNamespaces | XmlDiffOptions.IgnorePrefixes); | |
| bool identical = xmldiff.Compare(@"appconfig2.xml", @"appconfig3.xml", false, diffgramWriter); |
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
| Console.Out.WriteLine(string.Join(", ", GetType().Assembly.GetManifestResourceNames())); |
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
| string[] existingFiles = Directory.GetFiles(ProcessPath, "*.xml"); | |
| foreach (string fileName in existingFiles) | |
| { | |
| FileInfo fi = new FileInfo(fileName); | |
| FileStream fs = null; | |
| while (fs == null && fi.Exists) | |
| { | |
| try | |
| { | |
| fs = fi.Open(FileMode.Open, FileAccess.Read, FileShare.None); |
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
| HASH="%C(yellow)%h%C(reset)" | |
| RELATIVE_TIME="%C(green)%ar%C(reset)" | |
| AUTHOR="%C(bold blue)%an%C(reset)" | |
| REFS="%C(red)%d%C(reset)" | |
| SUBJECT="%s" | |
| FORMAT="$HASH $RELATIVE_TIME $AUTHOR $REFS $SUBJECT" | |
| function pretty_git_log() { | |
| git log --graph --pretty="tformat:$FORMAT" |
OlderNewer