Skip to content

Instantly share code, notes, and snippets.

View sanusart's full-sized avatar

Sasha Khamkov sanusart

View GitHub Profile
@sanusart
sanusart / errors-cause.tsv
Last active March 31, 2019 16:23
errors cause #temp #tsv
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
@sanusart
sanusart / vvjij.tex
Last active April 6, 2019 11:59
text.tex
\begin{Bmatrix}
a & b \\
c & d
\end{Bmatrix}
\newline
\text{and}
\newline
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@sanusart
sanusart / tsvToObject.js
Last active March 31, 2019 06:24
TSV to object #tsv #csv #lodash
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)));
});
@sanusart
sanusart / etszr.sql
Last active March 26, 2019 21:07
sql test #sql #temp #test #bug248
DECLARE
message varchar2(20):= 'Hello, World!';
BEGIN
dbms_output.put_line(message);
END;
/
@sanusart
sanusart / FiltersMenu.js
Last active March 24, 2019 05:09
FiltersMenu #temp
import React, { Component } from 'react';
import styled from 'styled-components/macro';
import GroupedBy from 'components/pages/Run/FiltersMenu/GroupedBy';
import { SegmentedButton, TextInput } from 'app-components';
import { ReactComponent as SuccessIcon } from 'assets/check.svg';
import { ReactComponent as ArrowRightIcon } from 'assets/arror_grey_toRight.svg';
const HEADER_HEIGHT = 65;
console.log('sa');
@sanusart
sanusart / ypaht.js
Created February 25, 2019 17:46
content editable input #reactjs #react-dropdown-select
import React from 'react';
import styled from '@emotion/styled';
import { valueExistInSelected } from '../util';
const handlePlaceHolder = (props, state) => {
const noValues = state.values && state.values.length === 0;
const hasValues = state.values && state.values.length > 0;
if (hasValues && props.addPlaceholder && props.searchable) {
return props.addPlaceholder;
@sanusart
sanusart / Monokai Sublime Text 3 custom.icls
Last active October 11, 2018 18:36
Webstorm "monokai sublime text 3" custom theme #theme #webstorm
<scheme name="Monokai Sublime Text 3" version="142" parent_scheme="Default">
<option name="FONT_SCALE" value="1.0" />
<metaInfo>
<property name="created">2018-09-25T20:33:45</property>
<property name="ide">WebStorm</property>
<property name="ideVersion">2018.3.0.0</property>
<property name="modified">2018-09-25T20:34:03</property>
<property name="originalScheme">Monokai Sublime Text 3</property>
</metaInfo>
<option name="LINE_SPACING" value="1.0" />
@sanusart
sanusart / file 2.txt
Last active October 2, 2018 17:39
Test files drag and drop
Hello, I am some test 22