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
| angular.module('testModule', []).controller('TestCont', function ($scope) { | |
| $scope.message = 'hello'; | |
| } | |
| describe('testModule module', function(){ | |
| beforeEach(module('testModule')); | |
| describe('test controller', function(){ | |
| var scope, testCont; |
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 Exec([scriptblock]$cmd) { | |
| $result = & $cmd | |
| if ($LastExitCode -ne 0) { | |
| throw $result[-50..-1] -join "`n" | |
| } | |
| else { | |
| foreach ($line in $result) { | |
| Write-Host $line | |
| } | |
| } |
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 Find-Unreplaced { | |
| <# | |
| .SYNOPSIS | |
| Looks for Octopus Deploy variables | |
| .DESCRIPTION | |
| Analyses `Web/App.Release.configs`, etc... looking for Octopus Deploy | |
| variables that have not been replaced. | |
| .EXAMPLE | |
| Find-Unreplaced C:\Folder *.config, *.ps1 | |
| .PARAMETER Path |
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
| public struct DocIdLookup | |
| { | |
| public List<string> DocIds; | |
| public int Index; | |
| } | |
| public class Indexer | |
| { | |
| private readonly Dictionary<string, List<string>> _terms = | |
| new Dictionary<string, List<string>>(StringComparer.OrdinalIgnoreCase); |