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
| USE [msdb] | |
| GO | |
| --QUERIES the Job Steps for a specific search key. | |
| DECLARE @SearchKey VARCHAR(100) = 'dev' | |
| SELECT | |
| sysjobs.job_id, | |
| sysjobs.name, |
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.Drawing; | |
| //Extensions to the System.Drawing.Point class | |
| public static class PointExtensions | |
| { | |
| /// <summary>Formatted as (x,y) where x and y are the unformatted value.</summary> | |
| public static string PrintStr(this Point p) | |
| { |
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
| --Example hashbytes on states table | |
| --https://msdn.microsoft.com/en-us/library/ms174415.aspx | |
| --RoewLength and RowSize were added just for debugging purposes | |
| SELECT | |
| Id = tbl_states.state_id, | |
| Hash = HASHBYTES('MD5', (SELECT tbl_states.* FROM (VALUES(null))X(Y) FOR XML AUTO)), | |
| RowLength = LEN( (SELECT tbl_states.* FROM (VALUES(null))X(Y) FOR XML AUTO)), | |
| RowSize = DATALENGTH( (SELECT tbl_states.* FROM (VALUES(null))X(Y) FOR XML AUTO)) | |
| FROM |
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
| /* | |
| https://msdn.microsoft.com/en-us/library/ms379574(v=vs.80).aspx | |
| An Extensive Examination of Data Structures Using C# 2.0 | |
| Visual Studio 2005 | |
| Scott Mitchell | |
| 4GuysFromRolla.com | |
| Update January 2005 |
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
| /* | |
| https://msdn.microsoft.com/en-us/library/ms379574(v=vs.80).aspx | |
| An Extensive Examination of Data Structures Using C# 2.0 | |
| Visual Studio 2005 | |
| Scott Mitchell | |
| 4GuysFromRolla.com | |
| Update January 2005 |
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
| /* | |
| https://msdn.microsoft.com/en-us/library/ms379572(v=vs.80).aspx | |
| An Extensive Examination of Data Structures Using C# 2.0 | |
| Visual Studio 2005 | |
| Scott Mitchell | |
| 4GuysFromRolla.com | |
| Update January 2005 |
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
| /* | |
| https://msdn.microsoft.com/en-us/library/ms379572(v=vs.80).aspx | |
| An Extensive Examination of Data Structures Using C# 2.0 | |
| Visual Studio 2005 | |
| Scott Mitchell | |
| 4GuysFromRolla.com | |
| Update January 2005 |
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; | |
| /// <summary>Represents a Point in 2D space using double to store coordinates.</summary> | |
| public struct PointD | |
| { | |
| public readonly double X; | |
| public readonly double Y; | |
| public PointD(double x, double y) |
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; | |
| using System.Threading.Tasks; | |
| public class LineT | |
| { | |
| public double A; |
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; | |
| public class Grid | |
| { | |
| public List<Tile> Tiles; | |
| public int Width; | |
| public int Height; |