This file contains 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 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 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 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 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 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 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." | |
} |
OlderNewer