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
| param ( | |
| [string] $name = 'Visual Studio Enterprise 2022' | |
| ) | |
| $VSInstance = Get-CimInstance MSFT_VSInstance -Namespace root/cimv2/vs | | |
| Where-Object { $_.ElementName -eq $name } | |
| if (-not $VSInstance) { | |
| throw "Could not find Visual Studio installation details." | |
| } |
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 { render } from '@testing-library/react'; | |
| import { screen } from '@testing-library/dom'; | |
| import { useOverrides } from '../useOverrides'; | |
| import '@testing-library/jest-dom'; | |
| function useFakeTranslation(textId: string) { | |
| return `${textId.toUpperCase()}-XLATED`; | |
| } | |
| function TestIcon() { |
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
| $certsPath = Join-Path $PSScriptRoot "certs" | |
| if(!(Test-Path $certsPath)) { | |
| New-Item -Path $PSScriptRoot -Name "certs" -ItemType "directory" | Out-Null | |
| } | |
| Push-Location $certsPath | |
| $gitPath = $env:Path.Split(';') | | |
| Where-Object { Test-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
| $profileName = [io.path]::GetFileNameWithoutExtension($PSCommandPath) | |
| Write-Output "Launching $profileName Teams Profile ..." | |
| $userProfile = $env:USERPROFILE | |
| $appDataPath = $env:LOCALAPPDATA | |
| $customProfile = "$appDataPath\Microsoft\Teams\CustomProfiles\$profileName" | |
| $downloadPath = Join-Path $customProfile "Downloads" | |
| if (!(Test-Path -PathType Container $downloadPath)) { | |
| New-Item $downloadPath -ItemType Directory | |
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
| param ( | |
| $shellName = 'pwsh' | |
| ) | |
| $commands = @( | |
| [PSCustomObject]@{ | |
| Path = 'my-node-project' | |
| Command = 'npm.cmd start' | |
| Window = 'new-tab' | |
| } |
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() { | |
| var img = document.querySelector("img[src='https://www.wintellect.com/wp-content/uploads/2017/09/clip_image002_thumb.jpg']"); | |
| var imgRect = img.getBoundingClientRect(); | |
| var scrollLeft = window.pageXOffset || document.documentElement.scrollLeft; | |
| var scrollTop = window.pageYOffset || document.documentElement.scrollTop; | |
| var cw = function(w) { return imgRect.width * (w/100); } | |
| var ch = function(h) { return imgRect.height * (h/100); } | |
| var cnv = document.createElement("canvas"); | |
| cnv.style.position = "absolute"; | |
| cnv.style.top = imgRect.top + scrollTop + "px"; |
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 {ActionsObservable as Observable} from 'redux-observable' | |
| import {VirtualTimeScheduler} from 'rxjs/scheduler/VirtualTimeScheduler'; | |
| import 'rxjs/add/observable/empty'; | |
| import 'rxjs/add/observable/interval'; | |
| import 'rxjs/add/operator/delay'; | |
| import 'rxjs/add/operator/concat'; | |
| import 'rxjs/add/operator/reduce'; | |
| import 'rxjs/add/operator/takeUntil'; |
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
| $routeProvider.when('/detail/:id', { | |
| templateUrl: '/Home/Detail', | |
| controller: 'detailCtrl', | |
| }); |
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
| <div class="container"> | |
| <form name="personForm" class="ng-cloak"> | |
| <fieldset> | |
| <legend>Person Details</legend> | |
| <div class="row-fluid"> | |
| <div class="control-group"> |
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('myApp.ctrl.detail', []) | |
| .controller('detailCtrl', ['$scope', '$http', '$routeParams', '$location', function ($scope, $http, $routeParams, $location) { | |
| $scope.person = { | |
| title: '', | |
| firstName: '', | |
| middleName: '', | |
| lastName: '', | |
| suffix: '' |
NewerOlder