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
/ Token: 0x06000001 RID: 1 RVA: 0x00002048 File Offset: 0x00000248 | |
.method private hidebysig static | |
void Main ( | |
string[] args | |
) cil managed | |
{ | |
// Header Size: 12 bytes | |
// Code Size: 25 (0x19) bytes | |
// LocalVarSig Token: 0x11000001 RID: 1 | |
.maxstack 2 |
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
Safari | |
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0.2 Safari/605.1.15" = $15 |
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
//What is the alternative of getting rid of the nested callback hell ? | |
//Load the data for the 3 dropdowns | |
$http.get('Products/AllProducts/').success(function (data) { | |
$scope.products = data; | |
$http.get('Colors/AllColors/').success(function (colordata) { | |
$scope.colors = colordata; | |
$http.get('Products/AllSizes/').success(function (sizedata) { |
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 Microsoft.Practices.Unity; | |
public class Program | |
{ | |
public interface ILoader<IPoco> | |
{ | |
string Name {get;} | |
} |
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 Program | |
{ | |
public static void Main() | |
{ |
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 class KPIDataProcessor<T> : IDataProcessor<T> | |
{ | |
public IEnumerable<T> Dtos { set; get; } | |
public void ProcessData() | |
{ | |
Console.WriteLine("Processing KPI data"); | |
} | |
} | |
public interface IDataProcessor<T> | |
{ |
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 class ValdationResult | |
{ | |
public bool Status { Set;get;} | |
public List<string> Errors { set;get;} | |
} |
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
$("#txtSearch").autocomplete({ | |
source: function (request, response) { | |
$.ajax({ | |
url: "/Home/Getsrchresult", | |
type: "POST", | |
dataType: "json", | |
data: { term: request.term,location:$('#location').val() }, | |
success: function (data) { | |
response($.map(data, function (item) { | |
return { label: item.srchresult+"-"+item.place, value: item.srchresult+"-"+item.place }; |
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
[Test] | |
public void Index_Action_Should_Return_BugsListVM_Object_With_Correct_Number_Of_Issues() | |
{ | |
//IF the db has 2 issues of Location "SPRNT", the Index action should return 2 items in the Model/ViewModel | |
//Arrange | |
const int fakeTeamID = 1; | |
var _session = MockRepository.GenerateStrictMock<HttpSessionStateBase>(); |
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
protected string RenderPartialView(string viewName, object model, ViewDataDictionary dictionary = null) | |
{ | |
if (string.IsNullOrEmpty(viewName)) | |
viewName = this.ControllerContext.RouteData.GetRequiredString("action"); | |
this.ViewData.Model = model; | |
if (dictionary != null) | |
{ | |
foreach (var item in dictionary.Keys) | |
{ |