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
    
  
  
    
  | import React from 'react'; | |
| import ReactDOM from 'react-dom'; | |
| class Editor extends React.Component { | |
| constructor(props) { | |
| super(props); | |
| this.state = { value: props.value }; | |
| this.handleChange = this.handleChange.bind(this); | |
| } | |
| handleChange(event) { | 
  
    
      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 Create-Parameters{ | |
| param([scriptblock]$Params) | |
| $runtimeParameterDictionary = New-Object System.Management.Automation.RuntimeDefinedParameterDictionary | |
| $parameters = & $Params | |
| foreach($parameter in $parameters) | |
| { | |
| $runtimeParameterDictionary.Add($parameter.Name, $parameter) | |
| } | |
| $runtimeParameterDictionary | |
| } | 
  
    
      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
    
  
  
    
  | let bigFactorial n= | |
| let rec loop x acc = | |
| match x with | |
| | x when x = 0I || x= 1I -> acc | |
| | _ -> loop (x-1I) (acc*(x-1I)) | |
| loop n 1I | |
| [<EntryPoint>] | |
| let main argv = | 
  
    
      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 getNewTabId(){ | |
| return Math.ceil(Math.random()*1000000000).toString(); | |
| } | |
| function deactivateTabSession(){ | |
| } | |
| var tabIdKey ="__TAB_ID__"; | |
| if(sessionStorage.getItem(tabIdKey) == null) | |
| { | 
  
    
      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
    
  
  
    
  | var ids = {}; | |
| var elementsWithId = document.querySelectorAll("[id]"); | |
| Array.prototype.forEach.call(elementsWithId, function(el){ | |
| var id = el.id; | |
| if(ids[id]){ | |
| ids[id]++; | |
| }else{ | |
| ids[id]=1; | |
| } | |
| }); | 
  
    
      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 Get-KeyPropertyValue($key, $property) | |
| { | |
| if($key.Property -contains $property) | |
| { | |
| Get-ItemProperty $key.PSPath -name $property | select -expand $property | |
| } | |
| } | |
| function Get-VersionName($key) | |
| { | 
  
    
      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 Search-ItemsRecursive{ | |
| [CmdletBinding()] | |
| param($projectItems, $filter, [switch]$recurse=$false) | |
| foreach ($item in $projectItems) { | |
| if($(. $filter $item)) | |
| { | |
| $item | |
| }else{ | |
| if(($item.ProjectItems -ne $null) -and $recurse){ | |
| Search-ItemsRecursive -projectItems $item.ProjectItems -filter $filter -recurse:$recurse | 
NewerOlder