Skip to content

Instantly share code, notes, and snippets.

@jm90m
Created March 28, 2018 18:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jm90m/91b4f6d429f770648253c3f05cfcba82 to your computer and use it in GitHub Desktop.
Save jm90m/91b4f6d429f770648253c3f05cfcba82 to your computer and use it in GitHub Desktop.
window.__PRELOADED_STATE__ = {"app":{"isFetching":false,"isLoaded":true,"rate":0,"trendingTopicsLoading":false,"trendingTopics":[],"rewardFund":{},"bannerClosed":false,"appUrl":"http://localhost:3000","usedLocale":"en","cryptosPriceHistory":{},"showPostModal":false,"currentShownPost":{}},"auth":{"isAuthenticated":true,"isFetching":false,"isReloading":false,"loaded":true,"user":{"id":395827,"name":"jm90mm","owner":{"weight_threshold":1,"account_auths":[],"key_auths":[["STM82TbviXvUFjewgPuNMH5KZESuuEvCN7rUEq5YNZBMYninpdDk2",1]]},"active":{"weight_threshold":1,"account_auths":[],"key_auths":[["STM8MTKnN8RtgVSXYkXXVW7oV8UYtPDuZohDAbtXo25xfWsV16J8M",1]]},"posting":{"weight_threshold":1,"account_auths":[["busy-mobile",1],["busy.app",1],["utopian.app",1]],"key_auths":[["STM8F8CGW67Vf6kbrcZQHtsJ7obQ1UL84WycnScrLF9s1B4JiV7Xn",1]]},"memo_key":"STM8UQhYmVF9eJMDcKjKPkjEMNrJjUEGVeswGvdnNcuaxrmdF1nBM","json_metadata":"{\"profile\":{\"name\":\"JM Myers\",\"profile_image\":\"https://avatars2.githubusercontent.com/u/5067716?s=460&v=4\",\"github\":\"jm90m\",\"instagram\":\"jayem422\",\"twitter\":\"\",\"location\":\"Boston, MA\",\"website\":\"\",\"about\":\"Software Engineer living in Boston, sometimes I like to workout :)\"}}","proxy":"","last_owner_update":"1970-01-01T00:00:00","last_account_update":"2018-03-23T14:20:39","created":"2017-10-04T13:15:12","mined":false,"recovery_account":"steem","last_account_recovery":"1970-01-01T00:00:00","reset_account":"null","comment_count":0,"lifetime_vote_count":0,"post_count":17,"can_vote":true,"voting_power":9604,"last_vote_time":"2018-03-28T15:43:06","balance":"0.089 STEEM","savings_balance":"0.000 STEEM","sbd_balance":"50.906 SBD","sbd_seconds":"0","sbd_seconds_last_update":"2018-03-24T04:44:36","sbd_last_interest_payment":"2018-03-24T04:44:36","savings_sbd_balance":"0.000 SBD","savings_sbd_seconds":"0","savings_sbd_seconds_last_update":"1970-01-01T00:00:00","savings_sbd_last_interest_payment":"1970-01-01T00:00:00","savings_withdraw_requests":0,"reward_sbd_balance":"0.000 SBD","reward_steem_balance":"0.000 STEEM","reward_vesting_balance":"0.000000 VESTS","reward_vesting_steem":"0.000 STEEM","vesting_shares":"2018571.639557 VESTS","delegated_vesting_shares":"0.000000 VESTS","received_vesting_shares":"0.000000 VESTS","vesting_withdraw_rate":"0.000000 VESTS","next_vesting_withdrawal":"1969-12-31T23:59:59","withdrawn":0,"to_withdraw":0,"withdraw_routes":0,"curation_rewards":424,"posting_rewards":78751,"proxied_vsf_votes":[0,0,0,0],"witnesses_voted_for":0,"last_post":"2018-02-27T23:03:21","last_root_post":"2017-12-23T16:36:51","average_bandwidth":778393197,"lifetime_bandwidth":"126706000000","last_bandwidth_update":"2018-03-28T15:43:06","average_market_bandwidth":1300000000,"lifetime_market_bandwidth":"11510000000","last_market_bandwidth_update":"2018-03-05T22:48:30","vesting_balance":"0.000 STEEM","reputation":"772762144129","transfer_history":[],"market_history":[],"post_history":[],"vote_history":[],"other_history":[],"witness_votes":[],"tags_usage":[],"guest_bloggers":[]},"userSCMetaData":{"notifications_last_timestamp":1522229145,"bookmarks":{"17198971":{"id":17198971,"author":"jm90mm","permlink":"my-first-month-at-busy-adding-the-wallet-page-and-whats-upcoming-for-this-month"}},"drafts":{"8f8e93b8-a922-4ac4-a3f9-575159214ad8":{"body":"dsadsa\ndsad \n \u003ch1> test\n \u003c/h1>","title":"","reward":"50","upvote":true,"lastUpdated":1520364891522,"parentAuthor":"","author":"jm90mm","parentPermlink":"general","jsonMetadata":{"community":"busy","app":"busy/2.4.0","format":"markdown"}},"24cac10b-b42f-4815-8ce3-d95daf7099c7":{"body":"dsadsa","title":"","reward":"50","upvote":true,"lastUpdated":1521093904251,"parentAuthor":"","author":"jm90mm","parentPermlink":"general","jsonMetadata":{"community":"busy","app":"busy/2.4.0","format":"markdown"}},"5b2ff1c3-f1e8-4fd0-91ed-786474692cf0":{"body":"xzdsa","title":"","reward":"50","upvote":true,"lastUpdated":1521176854481,"parentAuthor":"","author":"jm90mm","parentPermlink":"general","jsonMetadata":{"community":"busy","app":"busy/2.4.0","format":"markdown"}},"5de4aadc-4cf9-4335-a1f6-b61ba78d38e3":{"body":"test\n\nd\nsa\nd\ns\na\nd\ns\na\nd\nsa\n\n","title":"","reward":"50","upvote":true,"lastUpdated":1521485434355,"parentAuthor":"","author":"jm90mm","parentPermlink":"general","jsonMetadata":{"community":"busy","app":"busy/2.4.0","format":"markdown"}},"c25637a5-5745-483d-80fc-b0d45f0ca746":{"body":"ds","title":"","reward":"50","upvote":true,"lastUpdated":1521490832660,"parentAuthor":"","author":"jm90mm","parentPermlink":"general","jsonMetadata":{"community":"busy","app":"busy/2.4.0","format":"markdown","tags":["test","dsa"],"image":["https://steemitimages.com/0x0/https://res.cloudinary.com/hpiynhbhq/image/upload/v1521490789/xggx4fxuwjzqc5qpendl.jpg"]}},"826180a4-ee2d-4ac4-9a0f-e31b8ef82f52":{"body":"dsa","title":"","reward":"50","upvote":true,"lastUpdated":1521730071615,"parentAuthor":"","author":"jm90mm","parentPermlink":"general","jsonMetadata":{"community":"busy","app":"busy/2.4.0","format":"markdown","tags":["ds","dsa","daaa"]}},"cd147b09-bd39-434e-8dac-608b49e4ac68":{"body":"dsa ","title":"dsa ","reward":"50","upvote":false,"lastUpdated":1521730083898,"parentAuthor":"","author":"jm90mm","permlink":"dsa","parentPermlink":"dsa","jsonMetadata":{"community":"busy","app":"busy/2.4.0","format":"markdown","tags":["dsa"]}},"d02811fe-7ff1-42ce-9981-92e5f7a8957a":{"body":"dsadsadsa","title":"","reward":"50","upvote":false,"lastUpdated":1521812836708,"parentAuthor":"","author":"jm90mm","parentPermlink":"general","jsonMetadata":{"community":"busy","app":"busy/2.4.0","format":"markdown"}},"b6a56944-0333-40fa-9399-ceca9e90aa8e":{"body":"dsdsdsdsdsdsdsdsdsdsdsdsdsdsdsdsdsds dsa","title":"dsadsa","reward":"50","upvote":true,"lastUpdated":1522161153835,"parentAuthor":"","author":"jm90mm","permlink":"dsadsa","parentPermlink":"dsa","jsonMetadata":{"community":"busy","app":"busy/2.4.0","format":"markdown","tags":["dsa","dsdsa"]}},"393eeb8b-50f0-4784-8f4e-d4bdd24245d6":{"body":"dsadsa","title":"","reward":"50","upvote":false,"lastUpdated":1522162016464,"parentAuthor":"","author":"jm90mm","parentPermlink":"general","jsonMetadata":{"community":"busy","app":"busy/2.4.0","format":"markdown"}},"636f4f30-0dae-4313-bf67-43378c0b3658":{"body":"dsadsa ","title":"ds","reward":"50","upvote":true,"lastUpdated":1522171362660,"parentAuthor":"","author":"jm90mm","permlink":"ds","parentPermlink":"dsa","jsonMetadata":{"community":"busy","app":"busy/2.4.0","format":"markdown","tags":["dsa"],"image":["https://steemitimages.com/0x0/url"]}},"08424c6a-7f40-4f91-87e1-d9d343bee221":{"body":"dsdsda","title":"","upvote":true,"lastUpdated":1522171458106,"parentAuthor":"","author":"jm90mm","parentPermlink":"general","jsonMetadata":{"community":"busy","app":"busy/2.4.0","format":"markdown"}},"2876ea9c-b1c0-480d-9d04-8634aa6174cc":{"body":"dsa ","title":"","reward":"50","upvote":true,"lastUpdated":1522171732565,"parentAuthor":"","author":"jm90mm","parentPermlink":"ds","jsonMetadata":{"community":"busy","app":"busy/2.4.0","format":"markdown","tags":["ds"]}},"42787e72-7a02-4b05-9f9b-d9eecfeee6fd":{"body":"dsadsa","title":"dsadsa","reward":"50","upvote":true,"lastUpdated":1522176512929,"parentAuthor":"","author":"jm90mm","permlink":"dsadsa","parentPermlink":"general","jsonMetadata":{"community":"busy","app":"busy/2.4.0","format":"markdown","tags":["dsa"]}},"6095874e-79a0-4c78-871f-655bacc7bac4":{"body":"dsa","title":"dsdsa","reward":"50","upvote":true,"lastUpdated":1522174539464,"parentAuthor":"","author":"jm90mm","permlink":"dsdsa","parentPermlink":"general","jsonMetadata":{"community":"busy","app":"busy/2.4.0","format":"markdown"}},"83374a7a-6ed2-49e1-a680-e1b74089dee6":{"body":"kkk","title":"kkk","reward":"50","upvote":false,"lastUpdated":1522178167576,"parentAuthor":"","author":"jm90mm","permlink":"kkk","parentPermlink":"general","jsonMetadata":{"community":"busy","app":"busy/2.4.0","format":"markdown"}},"9ea9b5f0-66c0-45a4-8f23-fbce7568128a":{"body":"dsadsa> d*sad*a****dsasa******dsadsa\n\ndsadsa> d*sad*a****dsasa******dsadsa\ndsadsa> d*sad*a****dsasa******dsadsa\ndsadsa> d*sad*a****dsasa******dsadsa\ndsadsa> d*sad*a****dsasa******dsadsa","title":"dsadsadsadsad","reward":"100","upvote":true,"lastUpdated":1522182137505,"parentAuthor":"","author":"jm90mm","permlink":"dsadsadsadsad","parentPermlink":"dsa","jsonMetadata":{"community":"busy","app":"busy/2.4.0","format":"markdown","tags":["dsa","dsad"]}},"e94518ee-bf76-4b4f-8461-f454e441e214":{"body":"kkk[](url)> ***## kkk***","title":"kkk","reward":"50","upvote":false,"lastUpdated":1522185327164,"parentAuthor":"","author":"jm90mm","permlink":"kkk","parentPermlink":"general","jsonMetadata":{"community":"busy","app":"busy/2.4.0","format":"markdown","links":["https://url"]}}},"settings":{"locale":"en-US","votingPower":"auto","votePercent":10000,"showNSFWPosts":false,"rewriteLinks":false,"useBeta":false,"upvoteSetting":false}}},"comments":{"childrenById":{},"comments":{},"pendingVotes":[],"isFetching":false},"editor":{"loading":false,"error":null,"success":false,"saving":false,"draftPosts":{"8f8e93b8-a922-4ac4-a3f9-575159214ad8":{"body":"dsadsa\ndsad \n \u003ch1> test\n \u003c/h1>","title":"","reward":"50","upvote":true,"lastUpdated":1520364891522,"parentAuthor":"","author":"jm90mm","parentPermlink":"general","jsonMetadata":{"community":"busy","app":"busy/2.4.0","format":"markdown"}},"24cac10b-b42f-4815-8ce3-d95daf7099c7":{"body":"dsadsa","title":"","reward":"50","upvote":true,"lastUpdated":1521093904251,"parentAuthor":"","author":"jm90mm","parentPermlink":"general","jsonMetadata":{"community":"busy","app":"busy/2.4.0","format":"markdown"}},"5b2ff1c3-f1e8-4fd0-91ed-786474692cf0":{"body":"xzdsa","title":"","reward":"50","upvote":true,"lastUpdated":1521176854481,"parentAuthor":"","author":"jm90mm","parentPermlink":"general","jsonMetadata":{"community":"busy","app":"busy/2.4.0","format":"markdown"}},"5de4aadc-4cf9-4335-a1f6-b61ba78d38e3":{"body":"test\n\nd\nsa\nd\ns\na\nd\ns\na\nd\nsa\n\n","title":"","reward":"50","upvote":true,"lastUpdated":1521485434355,"parentAuthor":"","author":"jm90mm","parentPermlink":"general","jsonMetadata":{"community":"busy","app":"busy/2.4.0","format":"markdown"}},"c25637a5-5745-483d-80fc-b0d45f0ca746":{"body":"ds","title":"","reward":"50","upvote":true,"lastUpdated":1521490832660,"parentAuthor":"","author":"jm90mm","parentPermlink":"general","jsonMetadata":{"community":"busy","app":"busy/2.4.0","format":"markdown","tags":["test","dsa"],"image":["https://steemitimages.com/0x0/https://res.cloudinary.com/hpiynhbhq/image/upload/v1521490789/xggx4fxuwjzqc5qpendl.jpg"]}},"826180a4-ee2d-4ac4-9a0f-e31b8ef82f52":{"body":"dsa","title":"","reward":"50","upvote":true,"lastUpdated":1521730071615,"parentAuthor":"","author":"jm90mm","parentPermlink":"general","jsonMetadata":{"community":"busy","app":"busy/2.4.0","format":"markdown","tags":["ds","dsa","daaa"]}},"cd147b09-bd39-434e-8dac-608b49e4ac68":{"body":"dsa ","title":"dsa ","reward":"50","upvote":false,"lastUpdated":1521730083898,"parentAuthor":"","author":"jm90mm","permlink":"dsa","parentPermlink":"dsa","jsonMetadata":{"community":"busy","app":"busy/2.4.0","format":"markdown","tags":["dsa"]}},"d02811fe-7ff1-42ce-9981-92e5f7a8957a":{"body":"dsadsadsa","title":"","reward":"50","upvote":false,"lastUpdated":1521812836708,"parentAuthor":"","author":"jm90mm","parentPermlink":"general","jsonMetadata":{"community":"busy","app":"busy/2.4.0","format":"markdown"}},"b6a56944-0333-40fa-9399-ceca9e90aa8e":{"body":"dsdsdsdsdsdsdsdsdsdsdsdsdsdsdsdsdsds dsa","title":"dsadsa","reward":"50","upvote":true,"lastUpdated":1522161153835,"parentAuthor":"","author":"jm90mm","permlink":"dsadsa","parentPermlink":"dsa","jsonMetadata":{"community":"busy","app":"busy/2.4.0","format":"markdown","tags":["dsa","dsdsa"]}},"393eeb8b-50f0-4784-8f4e-d4bdd24245d6":{"body":"dsadsa","title":"","reward":"50","upvote":false,"lastUpdated":1522162016464,"parentAuthor":"","author":"jm90mm","parentPermlink":"general","jsonMetadata":{"community":"busy","app":"busy/2.4.0","format":"markdown"}},"636f4f30-0dae-4313-bf67-43378c0b3658":{"body":"dsadsa ","title":"ds","reward":"50","upvote":true,"lastUpdated":1522171362660,"parentAuthor":"","author":"jm90mm","permlink":"ds","parentPermlink":"dsa","jsonMetadata":{"community":"busy","app":"busy/2.4.0","format":"markdown","tags":["dsa"],"image":["https://steemitimages.com/0x0/url"]}},"08424c6a-7f40-4f91-87e1-d9d343bee221":{"body":"dsdsda","title":"","upvote":true,"lastUpdated":1522171458106,"parentAuthor":"","author":"jm90mm","parentPermlink":"general","jsonMetadata":{"community":"busy","app":"busy/2.4.0","format":"markdown"}},"2876ea9c-b1c0-480d-9d04-8634aa6174cc":{"body":"dsa ","title":"","reward":"50","upvote":true,"lastUpdated":1522171732565,"parentAuthor":"","author":"jm90mm","parentPermlink":"ds","jsonMetadata":{"community":"busy","app":"busy/2.4.0","format":"markdown","tags":["ds"]}},"42787e72-7a02-4b05-9f9b-d9eecfeee6fd":{"body":"dsadsa","title":"dsadsa","reward":"50","upvote":true,"lastUpdated":1522176512929,"parentAuthor":"","author":"jm90mm","permlink":"dsadsa","parentPermlink":"general","jsonMetadata":{"community":"busy","app":"busy/2.4.0","format":"markdown","tags":["dsa"]}},"6095874e-79a0-4c78-871f-655bacc7bac4":{"body":"dsa","title":"dsdsa","reward":"50","upvote":true,"lastUpdated":1522174539464,"parentAuthor":"","author":"jm90mm","permlink":"dsdsa","parentPermlink":"general","jsonMetadata":{"community":"busy","app":"busy/2.4.0","format":"markdown"}},"83374a7a-6ed2-49e1-a680-e1b74089dee6":{"body":"kkk","title":"kkk","reward":"50","upvote":false,"lastUpdated":1522178167576,"parentAuthor":"","author":"jm90mm","permlink":"kkk","parentPermlink":"general","jsonMetadata":{"community":"busy","app":"busy/2.4.0","format":"markdown"}},"9ea9b5f0-66c0-45a4-8f23-fbce7568128a":{"body":"dsadsa> d*sad*a****dsasa******dsadsa\n\ndsadsa> d*sad*a****dsasa******dsadsa\ndsadsa> d*sad*a****dsasa******dsadsa\ndsadsa> d*sad*a****dsasa******dsadsa\ndsadsa> d*sad*a****dsasa******dsadsa","title":"dsadsadsadsad","reward":"100","upvote":true,"lastUpdated":1522182137505,"parentAuthor":"","author":"jm90mm","permlink":"dsadsadsadsad","parentPermlink":"dsa","jsonMetadata":{"community":"busy","app":"busy/2.4.0","format":"markdown","tags":["dsa","dsad"]}},"e94518ee-bf76-4b4f-8461-f454e441e214":{"body":"kkk[](url)> ***## kkk***","title":"kkk","reward":"50","upvote":false,"lastUpdated":1522185327164,"parentAuthor":"","author":"jm90mm","permlink":"kkk","parentPermlink":"general","jsonMetadata":{"community":"busy","app":"busy/2.4.0","format":"markdown","links":["https://url"]}}},"pendingDrafts":[],"editedPosts":[]},"posts":{"pendingLikes":{},"list":{"38445288":{"id":38445288,"author":"hernandev","permlink":"project-total-rewards-api-for-utopian-rewards-badges","category":"utopian-io","parent_author":"","parent_permlink":"utopian-io","title":"Project total rewards API for Utopian Rewards Badges","body":"![https://i.imgur.com/uiOjDRy.png](https://i.imgur.com/uiOjDRy.png)\n\n#### 1. Components\nNew @utopian-io API method.\n\n#### 2. Background.\n\nThere are several badges project maintainers use on open source projects, this one, for example, maintained by me:\n\n![https://i.imgur.com/K8MX6d8.png](https://i.imgur.com/K8MX6d8.png)\n\nIt's a simple way to show important information about a project, in this case, unit-testing coverage, current stable version, and license.\n\nAnyone, wanting to display customized badges, can easily do so, by using [https://shields.io](https://shields.io).\n\n#### 3. Proposal.\n@utopian-io is an incredible project, which rewards people who contribute to the open source world.\n\nIn order to increase utopian popularity, having a single utopian API method capable or returning all rewards for a given open source project, made through utopian, would allow building badges, to be included on Github projects, advertising @utopian-io.\n\n\n#### 4. Mockups / Examples\n\nLet's say, for example, the project on the previous example had this badge system on its readme:\n\n![https://i.imgur.com/llGv0ry.png](https://i.imgur.com/llGv0ry.png)\n\n\n#### 5. Benefits\nHaving special, easily generated badges for @utopian-io would increase its visibility on external communities.\n \n--- \n\n#### 6. Update 1: Shields.io Tutorial.\n\nSince the feedback on this suggestion has been amazing, I've decided to go the extra mile and provide in-depth instructors on [shields.io](https://shields.io) usage, so building this suggestion would be easier.\n\n##### 6.1. Basic Usage.\n\nThere are 3 pieces of information, required to generate a badge using [shields.io](https://shields.io).\n\n- **Subject**: a Simple label that goes on the left side of the badge.\n- **Value**: Value that will be displayed on the colored / right side of the badge.\n- **Color**: A color name or hex value (without the `#` symbol) that will be used to color the badge.\n\nSo, the general syntax for it is just this:\n\n```\nhttps://img.shields.io/badge/\u003cSUBJECT>-\u003cSTATUS>-\u003cCOLOR>.svg\n```\n\nSo, let's say we want to build a @utopian-io badge as on the cover of this post:\n\n- **Subject**: `utopian.io`\n- **Status**: `$20.9k`\n- **Color:**: `#386CFE`\n\n```\nhttps://img.shields.io/badge/utopian.io-$20.9k-386cfe.svg\n```\n\nWould result in:\n\n![https://img.shields.io/badge/utopian.io-%2420.9k-386cfe.png](https://img.shields.io/badge/utopian.io-%2420.9k-386cfe.png)\n\n##### 6.2. SVG vs SteemImages.com.\n\n**Problem 1**: [SteemImages.com](https://steemitimages.com) is used to parse images on most Steem frontends, including utopian, so when rendering such badges on Steem posts, one must replace the `.svg` with `.png` in order to make it displayable though [SteemImages.com](https://steemitimages.com), which only accepts `png`, `jpg` and `gif` formats.\n\n**Problem 2**: For badges to work well through [SteemImages.com](https://steemitimages.com), one generating badge links, must encode the URL without encoding the domain/host, the `<!DOCTYPE html> <html> <head> <title>Busy</title> <meta charset=UTF-8> <meta name=description content="Busy is a decentralized social network based on Steem blockchain"> <meta id=viewport name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0"/> <meta http-equiv=Content-Type content="text/html; charset=utf-8"/> <meta name="robots" content="noindex, nofollow"><meta data-react-helmet="true" property="description" content="
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment