⌘T | go to file |
⌘⌃P | go to project |
⌘R | go to methods |
⌃G | go to line |
⌘KB | toggle side bar |
⌘⇧P | command prompt |
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 Ionic.Zip; | |
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace Comcast.ExtractPostProcessDllFromPackage | |
{ |
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.Linq; | |
using Sitecore; | |
using Sitecore.Data.Items; | |
using Sitecore.Diagnostics; | |
using Sitecore.LayoutService.Configuration; | |
using Sitecore.LayoutService.ItemRendering; | |
using Sitecore.Links; | |
using Sitecore.Mvc.Presentation; | |
namespace Nomad.Jss.CodeFirst.ItemRendering |
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
#Requires -RunAsAdministrator | |
param ( | |
[Parameter(Mandatory=$true)] | |
[string] | |
$SitePrefix, | |
[Parameter(Mandatory=$false)] | |
[string] | |
$LicensePath = "$PSScriptRoot/license.xml", | |
[switch] | |
$WhatIf |
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
$readVariableParams = @{ | |
Parameters = @( | |
@{Name="root"; Title="Root item"; Editor="droptree"; } | |
@{Name="template"; Title="Template"; Editor="droptree"; Source="DataSource=/sitecore/templates" } | |
@{Name="fieldname"; Title="Field name" } | |
) | |
Title = "Search Edited Items" | |
Description = "Search items with non-default value in the field." | |
} |
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
<# | |
.SYNOPSIS | |
Lists the pages which are not published yet (in the current version or any version at all). | |
.NOTES | |
Manuel Fischer | |
#> | |
function Get-AllUnpublishedPages { | |
Get-ChildItem -Path $homeFolder -Recurse | IsPage | IsPublished |
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 Get-FormData($formId, $startDate, $endDate) { | |
$provider = [Sitecore.DependencyInjection.ServiceLocator]::ServiceProvider.GetService([Sitecore.ExperienceForms.Data.IFormDataProvider]) | |
$entries = $provider.GetEntries($formId.Guid, $startDate, $endDate) | |
if (-not $entries) { | |
return $null | |
} | |
# Get all column title | |
$titles = new-object System.Collections.Generic.HashSet[string] | |
$entries | % { $_.Fields | % { $titles.Add($_.FieldName) > $null } } |
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
Param( | |
[string]$srcPath | |
) | |
function Invoke-DedupeOutput { | |
Param( | |
[System.Collections.ArrayList]$includes | |
) | |
$dedupedIncludes = [System.Collections.ArrayList]@() |