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
| #Author: VikasKumar<[email protected]> | |
| #Time Complexity: | |
| #Best Case : O(nlogn) | |
| #Worst Case : O(n^2) | |
| #Suggestion : Always use middle element as Pivot | |
| #QuickSort | |
| def QuickSort(arr,low,high): | |
| if low<high: | |
| j = Partition(arr,low,high) |
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
| #Bruteforce Pattern Matching - Multiple Occurence | |
| #Author: VikasKumar<[email protected]> | |
| #string: abcdababcgvabcabcddabcdaadabdwgdabdfg | |
| #pattern: abcd | |
| string = "70123456789basdhosdln,asbhiwueoywqieyowqoeho697wqdhosdln,97e9wuedhosdln,dhosdln,dhosdln,dhosdln," | |
| pattern = "dhosdln," | |
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
| [CmdletBinding()] | |
| Param( | |
| [Parameter(Mandatory=$true)] | |
| [string]$TargetTypeTcmId = 'tcm:0-17-65538', #Choose your own TargetType Id | |
| [switch]$DryRun = $false | |
| ) | |
| Begin{ | |
| try{ |
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
| [CmdletBinding()] | |
| Param( | |
| [Parameter(Mandatory=$true)] | |
| [string]$TargetTypeTcmId = 'tcm:0-17-65538', #BusinessProcessType | |
| [switch]$DryRun = $false | |
| ) | |
| Begin{ | |
| try{ |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <Deployer xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" Version="8.5" | |
| xsi:noNamespaceSchemaLocation="schemas/deployer-conf.xsd"> | |
| <Pipelines> | |
| <Pipeline Id="Tridion-Bootstrap" Action="TridionBootstrap" Verb="Content,Prepare,Commit"> | |
| <Steps> | |
| <Step Id="TridionUnzipStep"/> | |
| </Steps> | |
| </Pipeline> | |
| <Pipeline Id="Tridion-Wait" Action="Deploy,Undeploy" Verb="Wait"> |