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
define( | |
['jquery', 'bootstrap'], | |
function () { | |
var modalMarkup = '<div class="modal fade">' + | |
' <div class="modal-dialog">' + | |
' <div class="modal-content">' + | |
' <div class="modal-header">' + | |
' <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>' + | |
' <h4 class="modal-title">Single Movie ID</h4>' + | |
' </div>' + |
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
/* global baseUrl, alert, setTimeout */ | |
define( | |
['jquery'], | |
function ($) { | |
var loadingCount = 0, | |
loadingMarkup = '<div id="loading-indicator" style="display:none;"><div></div><img src="/Content/Images/loading.gif" /></div>', | |
hiding = false, | |
showLoading = function () { | |
loadingCount++; | |
if (loadingCount !== 1) { return; } |
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.Web.Mvc; | |
using Newtonsoft.Json; | |
using Newtonsoft.Json.Converters; | |
using Newtonsoft.Json.Serialization; | |
namespace Web.Core | |
{ | |
public class JSendResult : JsonResult | |
{ |
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 Newtonsoft.Json.Converters; | |
namespace Web.Core | |
{ | |
public class CamelCaseStringEnumConverter : StringEnumConverter | |
{ | |
public CamelCaseStringEnumConverter() | |
{ | |
CamelCaseText = 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
using System.Collections.Generic; | |
using System.Linq; | |
using System.Web.Http; | |
using MongoDB.Bson; | |
using MongoDB.Driver; | |
using MongoDB.Driver.Builders; | |
namespace Web.Core | |
{ | |
public abstract class MongoApiController<T> : ApiController |
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
$OctopusThumbprint = "YOUR_THUMBRPRINT" | |
$OctopesServer = "http://your.octopusserver.com" | |
$ApiKey = "YOUR_API_KEY" | |
$Role = "a-role" | |
$Environment = "UAT" | |
$TentacleDownloadUrl = "http://octopusdeploy.com/downloads/latest/OctopusTentacle64" | |
$InstallDirectory = "C:\Program Files\Octopus Deploy\Tentacle" | |
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
$environment = $OctopusParameters['Octopus.Environment.Name'] | |
$releaseNumber = $OctopusParameters['Octopus.Release.Number'] | |
$packages = @( | |
@{ | |
"Id" = $OctopusParameters['Octopus.Action[Update Database].Package.NuGetPackageId']; | |
"Version" = $OctopusParameters['Octopus.Action[Update Database].Package.NuGetPackageVersion'] | |
}, | |
@{ | |
"Id" = $OctopusParameters['Octopus.Action[Deploy Website].Package.NuGetPackageId']; | |
"Version" = $OctopusParameters['Octopus.Action[Deploy Website].Package.NuGetPackageVersion'] |
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
function Set-UmbracoPermissions($SitePath, $AppPoolAccount, $PathOverrides) | |
{ | |
$readExecute = $AppPoolAccount,"ReadAndExecute","ContainerInherit, ObjectInherit","None","Allow" | |
$read = $AppPoolAccount,"Read","ContainerInherit, ObjectInherit","None","Allow" | |
$modify = $AppPoolAccount,"Modify","ContainerInherit, ObjectInherit","None","Allow" | |
$fileModify = $AppPoolAccount,"Modify","Allow" | |
$objects = @{} | |
$objects["App_Browsers"] = $readExecute | |
$objects["App_Code"] = $modify |
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.Collections.Generic; | |
using System.IdentityModel.Tokens; | |
using System.Linq; | |
using Web.Models; | |
namespace Web.Utils | |
{ | |
public class InMemoryIssuerNameRegistry : ValidatingIssuerNameRegistry | |
{ | |
public class TenantData |
OlderNewer