Skip to content

Instantly share code, notes, and snippets.

import { useDispatch, useSelector } from 'react-redux';
import { operations } from 'ducks/shared/Multiselect';
import { toggleArrayValue } from 'utils/helpers';
const useDynamicSelectAll = ({ currentPageIds, selectors, context }) => {
const dispatch = useDispatch();
const selectedIds = useSelector(selectors.getSelectedIds);
const selectionState = useSelector(selectors.getSelectionState);
/* eslint-disable react/no-array-index-key */
import React, { useEffect, useState } from 'react';
import {
Typography,
TextField,
Button,
Container,
Grid,
styled,
Box,
{
"version": 5,
"dataForRoots": [
{
"commitData": [
{
"changeDescriptions": [
[
473,
{
---------------------------- PROCESS ENDED (23295) for package com.example.sleeptracker ----------------------------
---------------------------- PROCESS STARTED (24300) for package com.example.sleeptracker ----------------------------
2023-06-18 01:08:13.101 24300-24325 zygote com.example.sleeptracker W Unsupported class loader
2023-06-18 01:08:13.115 24300-24325 zygote com.example.sleeptracker W Skipping duplicate class check due to unsupported classloader
2023-06-18 01:08:13.151 24300-24325 DynamiteModule com.example.sleeptracker I Considering local module com.google.android.gms.measurement.dynamite:51 and remote module com.google.android.gms.measurement.dynamite:90
2023-06-18 01:08:13.151 24300-24325 DynamiteModule com.example.sleeptracker I Selected remote version of com.google.android.gms.measurement.dynamite, version >= 90
2023-06-18 01:08:13.151 24300-24325 DynamiteModule com.example.sleept
useEffect(() => {
const gridApi = gridRef?.current?.api;
const handleFirstDataRendered = () => {
if (selectedIds && Array.isArray(selectedIds) && selectedIds.length > 0) {
selectedIds.forEach((rowId) => {
const rowNode = gridRef?.current?.api?.getRowNode(rowId);
rowNode?.setSelected(true);
setTimeout(() => {
rowNode?.setSelected(true);
2023-05-11T15:01:11.1451660Z ##[section]Starting: Build
2023-05-11T15:02:26.7703790Z ##[section]Starting: Initialize job
2023-05-11T15:02:26.7708370Z Agent name: 'Hosted Agent'
2023-05-11T15:02:26.7708670Z Agent machine name: 'Mac-1683817210930'
2023-05-11T15:02:26.7708800Z Current agent version: '3.220.0'
2023-05-11T15:02:26.7764910Z ##[group]Operating System
2023-05-11T15:02:26.7765100Z macOS
2023-05-11T15:02:26.7765180Z 11.7.6
2023-05-11T15:02:26.7765250Z 20G1231
2023-05-11T15:02:26.7765350Z ##[endgroup]
@minaairsupport
minaairsupport / dabblet.css
Created August 12, 2019 01:51
CSS text-shadows - Example 7
/**
* CSS text-shadows - Example 7
*/
/* page styles */
@font-face {
font-family: 'ChunkFiveRegular';
src: url('http://www.midwinter-dg.com/blog_demos/css-text-shadows/fonts/chunkfive-webfont.eot');
src: url('http://www.midwinter-dg.com/blog_demos/css-text-shadows/fonts/chunkfive-webfont.eot?iefix') format('eot'),
public static class HtmlToPlainConvertor
{
public static string HtmlToPlainText(string html)
{
const string tagWhiteSpace = @"(>|$)(\W|\n|\r)+<";//matches one or more (white space or line breaks) between '>' and '<'
const string stripFormatting = @"<[^>]*(>|$)";//match any character between '<' and '>', even when end tag is missing
const string lineBreak = @"<(br|BR)\s{0,1}\/{0,1}>";//matches: <br>,<br/>,<br />,<BR>,<BR/>,<BR />
var lineBreakRegex = new Regex(lineBreak, RegexOptions.Multiline);
var stripFormattingRegex = new Regex(stripFormatting, RegexOptions.Multiline);
var tagWhiteSpaceRegex = new Regex(tagWhiteSpace, RegexOptions.Multiline);