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
0-mail.com | |
007addict.com | |
020.co.uk | |
027168.com | |
0815.ru | |
0815.su | |
0clickemail.com | |
0sg.net | |
0wnd.net | |
0wnd.org |
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
(function (root, factory) { | |
if (typeof define === 'function' && define.amd) { | |
// AMD. Register as an anonymous module. | |
define(["knockout", "autosize"], factory); | |
} else { | |
// Browser globals | |
factory(ko, autosize); | |
} | |
}(this, function (ko, autosize) { | |
ko.bindingHandlers.autosize = { |
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
(function (root, factory) { | |
if (typeof define === 'function' && define.amd) { | |
// AMD. Register as an anonymous module. | |
define(["jquery", "knockout", "accounting"], factory); | |
} else { | |
// Browser globals | |
factory($, ko, accounting); | |
} | |
}(this, function ($, ko, accounting) { | |
ko.bindingHandlers.currency = { |
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 ExceptionEnricher : ILogEventEnricher | |
{ | |
/// <summary> | |
/// The server variables added to an exception log. | |
/// </summary> | |
public void Enrich(LogEvent logEvent, ILogEventPropertyFactory propertyFactory) | |
{ | |
if (logEvent == null) | |
throw new ArgumentNullException("logEvent"); |
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.initLadda = function() { | |
var selector = "input[type=submit]"; | |
$(selector) | |
.attr("data-style", "zoom-in") | |
.each(function () { | |
var element = $(this); | |
if (element.hasClass('btn-xs')) { | |
element.attr("data-size", "xs"); | |
} |
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 Newtonsoft.Json; | |
using System; | |
using System.Web; | |
using System.Web.Mvc; | |
public static class FlashHelper | |
{ | |
public static ActionResult WithInfo(this ActionResult actionResult, ControllerBase controller, string title = "", string message = "") | |
{ | |
AddMessageToTempData(controller, AlertType.Info, title, message); |
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 ReportResult : DoddleReport.Web.ReportResult | |
{ | |
private readonly Report report; | |
public ReportResult(Report report) | |
: base(report) | |
{ | |
this.report = report; | |
} |
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
@model bool? | |
@if (ViewData.ModelMetadata.IsNullableValueType) { | |
var items = new[] | |
{ | |
new SelectListItem { Value = "", Text = "N/A" }, | |
new SelectListItem { Value = "true", Text = "Yes" }, | |
new SelectListItem { Value = "false", Text = "No" } | |
}; | |
@Html.DropDownList("", new SelectList(items, "Value", "Text", Model.HasValue ? (Model.Value ? "true" : "false") : "")) |
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 Newtonsoft.Json; | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using System.Web; | |
using System.Web.Mvc; | |
namespace Helpers |
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 Save() | |
{ | |
try | |
{ | |
context.SaveChanges(); | |
} | |
catch(DbEntityValidationException ex) | |
{ | |
var errorMessages = (from eve in ex.EntityValidationErrors | |
let entity = eve.Entry.Entity.GetType().Name |