This file contains hidden or 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#" AutoEventWireup="true" CodeBehind="xConnect.Identify.aspx.cs" Inherits="HeadlessTraining.sitecore.admin.xConnect_Identify" %> | |
| <!DOCTYPE html> | |
| <html xmlns="http://www.w3.org/1999/xhtml"> | |
| <head runat="server"> | |
| <title></title> | |
| </head> | |
| <body> | |
| <form id="form1" runat="server"> |
This file contains hidden or 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
| $prefix = "" | |
| function ConvertTo-CompressedBase64String { | |
| [CmdletBinding()] | |
| Param ( | |
| [Parameter(Mandatory)] | |
| [ValidateScript({ | |
| if (-Not ($_ | Test-Path) ) { | |
| throw "The file or folder $_ does not exist" | |
| } |
This file contains hidden or 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 ConvertTo-CompressedBase64String { | |
| [CmdletBinding()] | |
| Param ( | |
| [Parameter(Mandatory)] | |
| [ValidateScript({ | |
| if (-Not ($_ | Test-Path) ) { | |
| throw "The file or folder $_ does not exist" | |
| } | |
| if (-Not ($_ | Test-Path -PathType Leaf) ) { | |
| throw "The Path argument must be a file. Folder paths are not allowed." |
This file contains hidden or 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
| $resourceGroupNames = @("") | |
| $includeContentDeliveryServer = $TRUE | |
| $allowIpAddress = @( | |
| "" | |
| ) | |
| #copy pasted the function Add-AzureIpRestrictionRule from: https://about-azure.com/2018/11/26/configure-azure-app-service-ip-restrictions-using-powershell/ | |
| function Add-AzureIpRestrictionRule | |
| { |
This file contains hidden or 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 GenerateIncrementalPackage { | |
| [CmdletBinding(SupportsShouldProcess = $true)] | |
| param( | |
| #The full path to the Sitecore Azure Toolkit | |
| [Parameter(Mandatory = $true)] | |
| [string]$toolsPath, | |
| #Sitecore directory (containing Website, Data and Databases folder) | |
| [Parameter(Mandatory = $true)] | |
| [string]$sitecorePath, |
This file contains hidden or 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
| from collections import Counter | |
| import re | |
| from itertools import combinations, product,permutations | |
| import threading | |
| def groupChars(inputChars): | |
| c = Counter(inputChars) | |
| return [ [k,]*v for k, v in sorted(c.items())] | |
| def listEqual(listA, listB): |
This file contains hidden or 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
| from collections import Counter | |
| import re | |
| def groupChars(inputChars): | |
| c = Counter(inputChars) | |
| return [ [k,]*v for k, v in sorted(c.items())] | |
| def listEqual(listA, listB): | |
| if len(listA) != len(listB): | |
| return False |
This file contains hidden or 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
| reqs = input() | |
| if len(reqs) > 0: | |
| splitted = reqs.split(" ") | |
| chairWeightReq = int(splitted[0]) | |
| porridgeTempReq = int(splitted[1]) | |
| availableChairs = [] | |
| currentInput = input() | |
| while len(currentInput) > 0: |
This file contains hidden or 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; | |
| namespace GraphsTest | |
| { | |
| class Program | |
| { | |
| static void Main(string[] args) | |
| { |
This file contains hidden or 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
| from enum import Enum; | |
| class DoorState(Enum): | |
| CLOSING = 1 | |
| CLOSED = 2 | |
| STOPPED_WHILE_CLOSING = 3 | |
| OPEN = 4 | |
| OPENING = 5 | |
| STOPPED_WHILE_OPENING = 6 | |
| EMERGENCY_OPENING = 7 |
NewerOlder