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
const siteHeaderElement = .nativeElement; | |
const customClasses = localStorage.getItem('custom'); | |
.brand-name{color: blue} | |
// regex to get array of classname | |
const classNames = ['NP1', 'NP2', 'LC']; | |
function getElement(className): ElementRef { |
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
const myColDefs = [{ | |
headerName: 'Header Name', | |
sortable: true, | |
cellRenderer: 'propName', | |
comparator: (valueA: any, valueB: any, nodeA: RowNode, nodeB: RowNode, isInverted: boolean) => | |
sortColumnAlphabetically<User>('status', nodeA, nodeB) | |
}] | |
export function sortColumnAlphabetically<T>(key: keyof T, nodeA: any, nodeB: any): number { | |
const [valueA, valueB] = [nodeA.data[key], nodeB.data[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
interface Response { | |
requestId: string; | |
// status could be for instance: Request Approved, or Request Failed to approve because it does not exist anymore. | |
// status is either a success message or an error message that explains why the operation (deny/ approve / revoke) failed. | |
status: string; | |
email: string; | |
} | |
/** |
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
/** here is the model sync service is expecting to receive.**/ | |
package com.datorama.core.dto.admin.gdo; | |
import java.util.Collection; | |
import com.datorama.core.dto.admin.UserDto; | |
public class GdoUser { | |
private final Integer id; | |
private final String email; | |
private final String firstName; | |
private final String lastName; | |
private final Integer language; |
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
USE AdventureWorks2012; | |
GO | |
ALTER TABLE Purchasing.PurchaseOrderHeader | |
NOCHECK CONSTRAINT FK_PurchaseOrderHeader_Employee_EmployeeID; | |
GO |
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
# How to use | |
# add injet code chrome extension | |
# add this code to the widget | |
# go to whatsapp web, go inside a group > see members > scroll and thats it | |
import os | |
import csv |
OlderNewer