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
AUS Central Standard Time | 001 | Australia/Darwin | |
---|---|---|---|
AUS Central Standard Time | AU | Australia/Darwin | |
AUS Eastern Standard Time | 001 | Australia/Sydney | |
AUS Eastern Standard Time | AU | Australia/Sydney Australia/Melbourne | |
Afghanistan Standard Time | 001 | Asia/Kabul | |
Afghanistan Standard Time | AF | Asia/Kabul | |
Alaskan Standard Time | 001 | America/Anchorage | |
Alaskan Standard Time | US | America/Anchorage America/Juneau America/Metlakatla America/Nome America/Sitka America/Yakutat | |
Aleutian Standard Time | 001 | America/Adak | |
Aleutian Standard Time | US | America/Adak |
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
/// <summary> | |
/// A debounce rate limitor for Hangfire background jobs. This puts a | |
/// timeout lock on the action when it is first enqueued and schedules it | |
/// for the end of the lockout. Any further calls within the lock period are discarded. | |
/// </summary> | |
/// <remarks> | |
/// General references: | |
/// https://gist.github.com/odinserj/334fdb7d18bd63451f2f34546985f639 | |
/// https://gist.github.com/odinserj/a8332a3f486773baa009 | |
/// </remarks> |
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
/// <summary> | |
/// Provides projection mapping from an IQueryable sourceto a target type. | |
/// | |
/// This allows from strongly-typed mapping and querying only necessary fields from the database. | |
/// It takes the place of Domain -> ViewModel mapping as it allows the ViewModel to stay as | |
/// IQueryable. AutoMapper works on in-memory objects and will pull all full records to perform | |
/// a collection mapping. Use AutoMapper for Input -> Domain scenarios, but not DAL. | |
/// | |
/// Reference: http://devtrends.co.uk/blog/stop-using-automapper-in-your-data-access-code | |
/// </summary> |
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
$ResourceLocation = "Global" | |
$ResourceGroup = "RESOURCE GROUP" | |
$ResourceName = "DOMAIN NAME" | |
$PropertiesObject = @{ | |
'Consent' = @{ | |
'AgreementKeys' = @("DNPA","DNTA"); | |
'AgreedBy' = 'IP ADDRESS'; | |
'AgreedAt' = '2017-04-23T04:07:00.0000000Z'; | |
}; | |
'authCode' = 'AUTH CODE'; |
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
/// <summary> | |
/// Implementation of the IServiceLocator. | |
/// Mostly from https://github.com/autofac/Autofac.Extras.CommonServiceLocator, | |
/// minus the dependencies. | |
/// </summary> | |
public class AutofacServiceLocator : IServiceLocator | |
{ | |
/// <summary> | |
/// The <see cref="Autofac.IComponentContext"/> from which services | |
/// should be located. |
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
/// <summary> | |
/// Delegate for events during the serializer cache. | |
/// </summary> | |
public delegate void SerializerCacheDelegate(); | |
/// <summary> | |
/// XML serialization helper | |
/// </summary> | |
public static class Xml | |
{ |
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
;// | |
// Grid extension. | |
// Adds default grid state perservation via localStorage. | |
// The grid container can specify a storage location by | |
// setting the data-store attribute to either: | |
// - local [default] | |
// - session | |
// - false Disables storage for this grid. | |
// | |
(function ($, kendo) { |
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
;// | |
// Popup extension. | |
// Sets up kendo popups (used in all sorts of widgets) to check if the widget | |
// is being included in a bootstrap modal. If so, the popup should append to | |
// the modal instead of the page body. | |
// | |
// For the most part, popups work fine without this. However, DropdownList with | |
// a filter option does not. This is because the filter attempts to focus on | |
// filter input, which is outside the modal By default, Bootstrap modal will | |
// block this. It has an option to allow, but then it must be remembered to add |
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 quick way I like to use 960.gs, instead of having html classnames like .grid_5, etc. | |
/*-------------------------------------------------------------------------------------*/ | |
// self-explanatory defaults | |
$_containerwidth: 960px | |
$_columns: 16 | |
$_gutter: 10px | |
$_colspan: ($_containerwidth / $_columns) | |
$_colwidth: ( $_colspan - (2 * $_gutter)) |
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
/// <summary> | |
/// Helper methods for checking permissions on a controller. | |
/// </summary> | |
internal static class PermissionsHelper | |
{ | |
/// <summary> | |
/// Internal IsAuthorized helper | |
/// </summary> | |
/// <param name="context"></param> | |
/// <param name="targetControllerType"></param> |
NewerOlder