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
This post links my 3Box profile to my Github account! Web3 social profiles by 3Box. | |
✅ did:3:bafyreif5fxj5eudcptuxsbjpkgyo4g6sqbrdo722ecgiwxnfj4pu7yv2ni ✅ | |
Create your profile today to start building social connection and trust online at https://3Box.io/ |
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
$startPath = "/sitecore/content/home" | |
$placeholderKey = "*_*" | |
$outputFilePath = "C:\temp\placeholder-replacement-report.csv" | |
$results = @(); | |
Write-Progress -Activity "Upgrading dynamic placeholders that for the key [$($placeholderKey)]" ` | |
-Status "Getting content items" | |
Get-ChildItem -Path $startPath -Recurse -Version * | ForEach-Object { |
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
pragma solidity '0.5.11'; | |
contract HelloWorldContract { | |
string private message; | |
constructor () public { | |
message = "Hello world!"; | |
} | |
function setMessage(string memory newMessage) public { |
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
# Run as steps, not full script | |
#using docker image from https://hub.docker.com/_/sonarqube/ | |
# Step 1 - Create docker volumes | |
docker volume create --name sonar-conf | |
docker volume create --name sonar-logs | |
docker volume create --name sonar-data | |
docker volume create --name sonar-extensions |
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
<%@ Page language="c#" %> | |
<%@ Import Namespace="Sitecore" %> | |
<%@ Import Namespace="Sitecore.Diagnostics" %> | |
<%@ Import Namespace="Sitecore.Web" %> | |
<%@ Import Namespace="System" %> | |
<%@ Import Namespace="System.Collections" %> | |
<%@ Import Namespace="System.Web.UI" %> | |
<%@ Import Namespace="System.Web.UI.HtmlControls" %> | |
<%@ Import Namespace="System.Web.UI.WebControls" %> |
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
{ | |
"continent": { | |
"name": "North America", | |
"code": "NA" | |
}, | |
"country": { | |
"name": "United States", | |
"isoCode": "US" | |
}, | |
"city": "Atlanta", |
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
#some test synonym mappings unlikely to appear in real input text | |
aaafoo => aaabar | |
bbbfoo => bbbfoo bbbbar | |
cccfoo => cccbar cccbaz | |
fooaaa,baraaa,bazaaa | |
# Some synonym groups specific to this example | |
GB,gib,gigabyte,gigabytes | |
MB,mib,megabyte,megabytes | |
Television, Televisions, TV, TVs |
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.Collections.Generic; | |
using System.Linq; | |
using System.Web; | |
using Sitecore.Data.Items; | |
using Sitecore.Links; | |
namespace Sitemap.Custom | |
{ | |
public class CustomLinkProvider : LinkProvider |
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
$item = Get-Item master:/content/home | |
$newTemplate = [Sitecore.Configuration.Factory]::GetDatabase("master").Templates["Sample/Sample Item"]; | |
$item.ChangeTemplate($newTemplate) |
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 class RelatedThemesFacet : IComputedIndexField | |
{ | |
public string FieldName { get; set; } | |
public string ReturnType { get; set; } | |
public object ComputeFieldValue(IIndexable indexable) | |
{ | |
var indexableItem = indexable as SitecoreIndexableItem; | |
if (indexableItem == null || indexableItem.Item == null) |
NewerOlder