This file contains 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 DATABASE_NAME | |
DECLARE @SearchStr nvarchar(100) = 'SEARCH_TEXT' | |
DECLARE @Results TABLE (ColumnName nvarchar(370), ColumnValue nvarchar(3630)) | |
SET NOCOUNT ON | |
DECLARE @TableName nvarchar(256), @ColumnName nvarchar(128), @SearchStr2 nvarchar(110) | |
SET @TableName = '' | |
SET @SearchStr2 = QUOTENAME('%' + @SearchStr + '%','''') |
This file contains 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
<pre data-bind="text: ko.toJSON.stringify(ko.toJS($data), null, 2)"></pre> | |
<pre data-bind="text: ko.toJSON.stringify(ko.toJS($parent), null, 2)"></pre> | |
<pre data-bind="text: ko.toJSON.stringify(ko.toJS($root), null, 2)"></pre> | |
<input data-bind="blah: console.log($data), value: description" /> | |
<input data-bind="blah: console.log($parent), value: description" /> | |
<input data-bind="blah: console.log($root), value: description" /> |
This file contains 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
// A generic repository interface that exposes a standard set of methods for performing CRUD operations on entities within the system. | |
public interface IRepository<T> where T : IEntity | |
{ | |
IQueryable<T> GetAll(); | |
T GetById(int id); | |
void Create(T entity); | |
void Update(T entity); | |
void Delete(int id); | |
} |
This file contains 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
<rewrite> | |
<rules> | |
<rule name="Route the requests for ETF" stopProcessing="false"> | |
<match url="(.*)" /> | |
<action type="None" /> | |
<serverVariables> | |
<set name="HTTP_ACCEPT_ENCODING" value="" /> | |
</serverVariables> | |
</rule> | |
<rule name="Redirect from old to new url" stopProcessing="true"> |
This file contains 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
.centerme { | |
margin: 0 auto; | |
display: table; | |
position: relative; | |
top: 50%; | |
-webkit-transform: translateY(-50%); | |
-moz-transform: translateY(-50%); | |
-o-transform: translateY(-50%); | |
-ms-transform: translateY(-50%); | |
transform: translateY(-50%); |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title></title> | |
</head> | |
<body> | |
</body> | |
</html> |
This file contains 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.Diagnostics; | |
using FluentAutomation; | |
using Microsoft.VisualStudio.TestTools.UnitTesting; | |
namespace Crantech.ETF.Website.IntegrationTestProject1 | |
{ | |
[TestClass] | |
public class ETFSecuritiesLandingPageTest : FluentTest |
This file contains 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 FluentAutomation; | |
using Microsoft.VisualStudio.TestTools.UnitTesting; | |
using Xunit; | |
namespace xUnit.ETF | |
{ | |
public class BingSearchPage : PageObject<BingSearchPage> | |
{ | |
public BingSearchPage(FluentTest test) |
This file contains 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 - ternary */ | |
string name; | |
string value; | |
name = value != null ? value : | |
/* int */ | |
int? n = null; | |
... |
This file contains 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; | |
namespace ConsoleApp2 | |
{ | |
class Program | |
{ | |
static void Main() | |
{ | |
var model = new Payment { Price = 1999 }; | |
var modelPriceAsDecimal = ModelPriceAsDecimal(model.Price); |