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
CREATE TABLE IF NOT EXISTS search_idx | |
( | |
id BIGINT PRIMARY KEY GENERATED BY DEFAULT AS IDENTITY, | |
key_str TEXT NOT NULL, | |
val_str TEXT NOT NULL, | |
val_int INT, | |
val_date TIMESTAMPTZ | |
); | |
CREATE INDEX search_idx_key_str_idx ON search_idx |
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
query { | |
search(query: "user:therockstorm language:Scala", type: REPOSITORY, first: 10) { | |
repositoryCount | |
edges { | |
node { | |
... on Repository { | |
nameWithOwner | |
protov: object(expression: "master:README.md") { | |
... on Blob { | |
text |
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
day | knowledge | |
---|---|---|
1 | 10 | |
2 | 8 | |
3 | 0 | |
4 | 4 | |
5 | 2 | |
6 | 4 | |
7 | 5 |
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
import { pipe } from "fp-ts/lib/pipeable" | |
import { last } from "fp-ts/lib/Array" | |
import { Either, left, right, fold as foldE } from "fp-ts/lib/Either" | |
import { fold as foldO } from "fp-ts/lib/Option" | |
import { | |
ContextEntry, | |
Errors, | |
getFunctionName, | |
Type, | |
Validation, |