Skip to content

Instantly share code, notes, and snippets.

View YarikST's full-sized avatar
👨‍💻
Focusing

Malyk Yaroslav YarikST

👨‍💻
Focusing
View GitHub Profile
DROP TABLE IF EXISTS contacts;
CREATE TEMP TABLE contacts
as
select *
from (
VALUES
(1::int, 'abc'::VARCHAR),
(2::int, 'Aac'::VARCHAR),
(3::int, 'bvC'::VARCHAR),
(4::int, 'Bvc'::VARCHAR),
#More detali safepal and mobstar
google api key - https://developers.google.com/maps/documentation/javascript/get-api-key
doc - https://github.com/tomchentw/react-google-maps
//--authorization
import React from "react"
import { compose, withProps } from "recompose"
import { withScriptjs, withGoogleMap } from "react-google-maps"
export default Map =>
@YarikST
YarikST / Interview
Created April 13, 2022 10:31
Questions for interviewee
Link: https://docs.google.com/document/d/1xkiuwVO6vZvhLO6DnYpjbeHW2I-OWYF01OeaM_EEIok/edit?usp=sharing
@YarikST
YarikST / gist:b5179f0b192bdc67c1194f44f56509a4
Created August 3, 2022 15:29
Run Rubocop only on changed files
1. Create cop.diff file. On theses files we would run Rubocop
git diff-tree -r --no-commit-id --name-only --diff-filter=dr head origin/master > cop.diff
diff-filter - allow to filter some records, we dont need deleted file
origin/master - is a target for comparison
2. Run Rubocop
cat cop.diff | xargs bundle exec rubocop -A