This file contains 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
#More detali safepal | |
SELECT setweight(to_tsvector('title'), 'A') || | |
setweight(to_tsvector('keyword'), 'B'); | |
SELECT to_tsquery('keyword | title:A'); | |
SELECT setweight(to_tsvector('title'), 'A') || | |
setweight(to_tsvector('keyword'), 'B') @@ to_tsquery('keyword | title:C'); | |
SELECT setweight(to_tsvector('title'), 'A') @@ to_tsquery('title:A'); | |
SELECT ts_headline('sadsad keyword sa tit dfds titleas asd title' , to_tsquery('keyword | tit:*'), 'StartSel = <, StopSel = >') | |
SELECT regexp_matches( | |
'foobarbequebazilbarfbonk', '(b[^b]+)(b[^b]+)', 'g'); |
This file contains 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
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), |
This file contains 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
#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 => |
This file contains 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
Link: https://docs.google.com/document/d/1xkiuwVO6vZvhLO6DnYpjbeHW2I-OWYF01OeaM_EEIok/edit?usp=sharing |
This file contains 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
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 |
OlderNewer