- If you need to use material icons in your project for example.
- If you need to add cusom icons
File examples bellow
export const lightOrDark = (color, ratio = 155) => { | |
const hex = color.replace('#', ''); | |
const red = parseInt(hex.substr(0, 2), 16); | |
const green = parseInt(hex.substr(2, 2), 16); | |
const blue = parseInt(hex.substr(4, 2), 16); | |
const brightness = (red * 299 + green * 587 + blue * 114) / 1000; | |
return brightness > ratio ? 'light' : 'dark'; | |
}; |
import spacy | |
from spacy.matcher import Matcher | |
from spacy.lang.en import English | |
nlp = English() | |
matcher = Matcher(nlp.vocab) | |
# create some patterns and add to matcher | |
pattern1 = [{"LOWER": "iphone"}, {"LOWER": "x"}] | |
pattern2 = [{"LOWER": "iphone"}, {"IS_DIGIT": True, "OP": "?"}] |
import faker from 'faker'; | |
export const dataStreamEntities = { | |
data: [ | |
{ | |
id: 6248, | |
name: 'Data Stream', | |
enabled: true, | |
sourceDisplayName: 'Google Analytics', | |
lastRunStatus: false, |
ENTITY | ORIGINAL_ERROR | FRIENDLY_ERROR | CAUSE | POSSIBLE_ACTION | RELEVANT_KB | |
---|---|---|---|---|---|---|
dataStreams | SOME_ERROR_345 | Rate limit | Rate limit happens when we try to process more than what the vendor allows for a certain time frame/account. | Try to reprocess the data stream gradually | https://localhost:3000/#/demo | |
reports | SOME_ERROR_6788 | not found | Rate limit happens when we try to process more than what the vendor allows for a certain time frame/account. | Try to reprocess the report gradually | https://localhost:3000/#/demo | |
actions | SOME_ERROR_89546 | some error | Rate limit happens when we try to process more than what the vendor allows for a certain time frame/account. | Try to reprocess the action gradually | https://localhost:3000/#/demo | |
workflows | SOME_ERROR_123 | unknown | Rate limit happens when we try to process more than what the vendor allows for a certain time frame/account. | Try to reprocess the workflow gradually | https://localhost:3000/#/demo |
\begin{Bmatrix} | |
a & b \\ | |
c & d | |
\end{Bmatrix} | |
\newline | |
\text{and} | |
\newline |
export const tsvToObject = () => | |
fetch('https://www.file.com/some.tsv') | |
.then(r => r.text()) | |
.then(tsv => { | |
const data = compact(tsv.split('\n')); | |
const headers = head(data).split('\t'); | |
const rows = map(row => row.split('\t'), tail(data)); | |
return keyBy('SOME_HEADER', rows.map(m => zipObject(headers, m))); | |
}); |
DECLARE | |
message varchar2(20):= 'Hello, World!'; | |
BEGIN | |
dbms_output.put_line(message); | |
END; | |
/ |