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
@{ | |
int offsetLeft = 1; | |
int offsetRight = 1; | |
int offset = offsetLeft + offsetRight + 1; | |
int minPage = Math.Max(Math.Min(Model.Page - offsetLeft, Model.TotalPages - offset), 1); | |
int maxRange = Math.Min(Model.Page + offsetRight, Model.TotalPages); | |
} | |
<ol class="nav-pagination"> | |
@if(minPage > 1) | |
{ |
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
#Create and Export Certificate | |
$PlainPassword = "Pa$$w0rd" | |
$ExportFolder = "S:\Remote Desktop Connection Manager" | |
$Subject = "RDCMan" | |
$YEARS = 1 | |
$CertificateFileName = "RDCManCertificate.pfx" | |
$SecurePassword = $PlainPassword | ConvertTo-SecureString -AsPlainText -Force | |
$RDCManCertificate = New-SelfSignedCertificate -CertStoreLocation Cert:\CurrentUser\My -Subject $Subject -KeyExportPolicy Exportable -KeySpec KeyExchange -NotAfter $(Get-date).AddYears($YEARS) | |
Export-PfxCertificate -Cert $RDCManCertificate -FilePath "$ExportFolder\$CertificateFileName" -Password $SecurePassword | |
$RDCManCertificate | Remove-Item |
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
$AutoUpdateNotificationLevels = @{0 = "Not configured"; 1 = "Disabled" ; 2 = "Notify before download"; | |
3 = "Notify before installation"; 4 = "Scheduled installation" | |
} | |
$AutoUpdateDays = @{0 = "Every Day"; 1 = "Every Sunday"; 2 = "Every Monday"; 3 = "Every Tuesday"; 4 = "Every Wednesday"; | |
5 = "Every Thursday"; 6 = "Every Friday"; 7 = "EverySaturday" | |
} | |
Function Set-WindowsUpdateConfig { |
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
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<PropertyGroup> | |
<!-- ACL will be handled by the server --> | |
<IncludeSetAclProviderOnDestination>False</IncludeSetAclProviderOnDestination> | |
<!-- Invalidate files by checksum, and not change date --> | |
<MSDeployUseChecksum>True</MSDeployUseChecksum> | |
<EnableMSDeployBackup>True</EnableMSDeployBackup> | |
</PropertyGroup> | |
</Project> |
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 FizzBuzz(){ | |
for(var i = 0; i <= 100; i++){ | |
if(i % 3 == 0 && i % 5 == 0){ | |
console.log("FizzBuzz"); | |
continue; | |
}else if(i % 3 == 0){ | |
console.log("Fizz"); | |
continue; | |
}else if(i % 5 == 0){ | |
console.log("Buzz"); |
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
<ExamineLuceneIndexSets> | |
<IndexSet SetName="ClinicIndexSet" IndexPath="~/App_Data/TEMP/ExamineIndexes/{machinename}/Clinics/"> | |
<IndexUserFields> | |
<add Name="Id" /> | |
<add Name="Name" /> | |
<add Name="Address" /> | |
<add Name="ZipCode" /> | |
<add Name="City" /> | |
<add Name="PhoneNumber" /> | |
<add Name="CellPhoneNumber" /> |
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
@inherits Umbraco.Web.Mvc.UmbracoTemplatePage | |
@using System.Xml.Linq; | |
@using umbraco.cms.businesslogic.web; | |
@using System.Web.Configuration; | |
@using System.Text; | |
@using System.Globalization; | |
@{ | |
Layout = null; | |
List<string> contentTypes = new List<string>() { }; |
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
<system.webServer> | |
<rewrite> | |
<rules> | |
<rule name="Force Media" enabled="true" | |
xdt:Transform="Remove()" xdt:Locator="Match(name)"> | |
</rule> | |
</rules> | |
</rewrite> | |
</system.webServer> |
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 Umbraco.Core; | |
using Umbraco.Core.Persistence; | |
using Umbraco.Core.Persistence.Migrations; | |
using Umbraco.Core.Persistence.SqlSyntax; | |
using Umbraco.Core.Logging; | |
using LadyChamber.Core.Persistence.Models; | |
namespace $rootnamespace$.Core.Persistence.Migrations | |
{ | |
// SemVersion: major.minor.revsion+build |
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
public abstract class GenericRepository<TKey, TEntity> | |
{ | |
public DatabaseContext context; | |
public GenericRepository(DatabaseContext context) | |
{ | |
this.context = context; | |
} | |
public virtual IEnumerable<TEntity> Get() |