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 { ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, OnDestroy, ViewChild } from '@angular/core'; | |
import { IHeaderAngularComp } from 'ag-grid-angular'; | |
import { IHeaderParams } from 'ag-grid-community'; | |
@Component({ | |
selector: 'ag-standard-header', | |
template: ` | |
<div class="ag-cell-label-container" role="presentation" [ngClass]="{'ag-header-cell-sorted-asc': params.column.isSortAscending(), 'ag-header-cell-sorted-desc': params.column.isSortDescending(), 'ag-header-cell-sorted-none': params.column.isSortNone()}"> | |
<span *ngIf="params.enableMenu" #menuButton ref="eMenu" class="ag-header-icon ag-header-cell-menu-button" aria-hidden="true" (click)="onMenuClicked()"> | |
<span class="ag-icon ag-icon-menu" unselectable="on" role="presentation"></span> |
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
public static class MimeTypeMapper | |
{ | |
// ref. http://stackoverflow.com/a/3393525/918244 | |
// modified by Dominic St-Jacques to add a reverse lookup | |
private static readonly IDictionary<string, string> ExtToMimeMappings; | |
private static readonly IDictionary<string, string> MimeToExtMappings; | |
private const string DefaultMimeType = "application/octet-stream"; | |
static MimeType() | |
{ |
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
; Copy Paste Resharper tests one-liner JSON exptected vs actual output and compare them in Notepad++ | |
; Use by first copying ALL test output in the clipboard, and then press CTRL-ALT-WIN-C | |
^#!c:: | |
; Start Notepad++ | |
ProgramFilesX86 := A_ProgramFiles . (A_PtrSize=8 ? " (x86)" : "") | |
Run %ProgramFilesX86%\Notepad++\notepad++.exe -multiInst -nosession | |
WinWaitActive, new 1 - Notepad++, , 1 | |
Send ^!d | |
Sleep, 100 | |
; Paste in new document |