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 GetRoyaltiesInfo($metadataId: String!) | |
{ mb_views_nft_tokens(where:{ metadata_id: { _eq: $metadataId } burned_timestamp: { _is_null: true } } | |
distinct_on: royalties_percent ) { | |
royaltyPercent: royalties_percent | |
royalties | |
} | |
} |
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 GetTokensSplitbyMetadataId($metadata_id: String!) | |
{ token: nft_tokens( where: { | |
metadata_id: { _eq: $metadata_id } | |
burned_timestamp: { _is_null: true } } limit: 100 ) { | |
id: token_id | |
ownerId: owner | |
splits | |
} | |
} |
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
{ | |
"id": 1, | |
"text": "---\n__Advertisement :)__\n\n- __[pica](https://nodeca.github.io/pica/demo/)__ - high quality and fast image\n resize in browser.\n- __[babelfish](https://github.com/nodeca/babelfish/)__ - developer friendly\n i18n with plurals support and easy syntax.\n\nYou will like those projects!\n\n---\n\n# h1 Heading 8-)\n## h2 Heading\n### h3 Heading\n#### h4 Heading\n##### h5 Heading\n###### h6 Heading\n\n\n## Horizontal Rules\n\n___\n\n---\n\n***\n\n\n## Typographic replacements\n\nEnable typographer option to see result.\n\n(c) (C) (r) (R) (tm) (TM) (p) (P) +-\n\ntest.. test... test..... test?..... test!....\n\n!!!!!! ???? ,, -- ---\n\n\"Smartypants, double quotes\" and 'single quotes'\n\n\n## Emphasis\n\n**This is bold text**\n\n__This is bold text__\n\n*This is italic text*\n\n_This is italic text_\n\n~~Strikethrough~~\n\n\n## Blockquotes\n\n\n> Blockquotes can also be nested...\n>> ...by using additional greater-than signs right next to each other...\n> > > ...or with spaces between ar |
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
// 20200601170056 | |
// http://localhost:1337/testes/1 | |
{ | |
"id": 1, | |
"content": "const itaudev = require('itaudev');\n\n(async() => {\n let transactions = await itaudev .transaction.query({\n after: '2020-04-01',\n before: '2020-05-01'\n });\n\n for await (let transaction of transactions) {\n console.log(transaction);\n }\n})();", | |
"richtext": "<p><strong>Lorem Ipsum</strong> is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>\n\n\n\n", | |
"json": null, | |
"created_at": "20 |
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
/ 20200531112748 | |
// http://localhost:2368/ghost/api/v3/admin/pages/slug/developer/ | |
{ | |
"pages": [ | |
{ | |
"slug": "developer", | |
"id": "5ed3bca69f5e4b220cb27a6f", | |
"uuid": "8b5d1d72-9dfb-4e4e-8014-10e202b88a6e", | |
"title": "Developer", |
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
const statusCheckEpic = action$ => | |
action$.filter(action => action.type === POLL_SERVICE_STATUS) | |
.flatMap(() => | |
most.periodic(1000) | |
.flatMap(() => | |
most.fromPromise(checkServiceStatus()) | |
.filter(response => response.data.status !== STATUS.IN_PROGRESS) | |
.map(response => { | |
if (response.data.status === STATUS.COMPLETE) { | |
return serviceComplete() |
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
const statusCheckEpic = action$ => | |
action$.filter(action => action.type === POLL_SERVICE_STATUS) | |
.flatMap(() => | |
most.fromPromise(checkServiceStatus()) | |
.filter(response => response.data.status !== STATUS.IN_PROGRESS) | |
.map(response => { | |
if (response.data.status === STATUS.COMPLETE) { | |
return serviceComplete() | |
} | |
return serviceError() |
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
const pingPongEpic = action$ => | |
action$.filter(action => action.type === 'PING') | |
.delay(1000) | |
.map(action => ({ type: 'PONG' })) |
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
const buySandwich = () => { | |
return dispatch(makeASandwich('Me')) | |
.then(() => dispatch(makeASandwich('Sis'))) | |
.then(() => dispatch(makeASandwich('Dad'))) | |
.then(() => dispatch(makeASandwich('Dog'))) | |
.then(() => | |
dispatch( | |
getState().myMoney > 42 | |
? withdrawMoney(42) | |
: apologize('Me', 'The Shop'), |
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
const reducer = (state, action) => { | |
switch (action.type) { | |
case FETCH_DATA: { | |
return { | |
...state, | |
isFetching: true | |
} | |
} | |
case FETCH_DATA_SUCCESS: { | |
return { |
NewerOlder