steemsnippets
所属分类:collect
开发工具:JavaScript
文件大小:0KB
下载次数:0
上传日期:2021-05-10 20:49:46
上 传 者:
sh-1993
说明: steem编程的片段集合,
(A collection of snippets for steem programming,)
文件列表:
LICENSE (1068, 2019-12-08)
dsteem/ (0, 2019-12-08)
dsteem/block_feed/ (0, 2019-12-08)
dsteem/block_feed/block_feed.js (6698, 2019-12-08)
dsteem/block_feed/package.json (412, 2019-12-08)
dsteem/claim_account/ (0, 2019-12-08)
dsteem/claim_account/claim_account.js (970, 2019-12-08)
dsteem/claim_account/package.json (326, 2019-12-08)
dsteem/comment/ (0, 2019-12-08)
dsteem/comment/comment.js (1423, 2019-12-08)
dsteem/comment/package.json (356, 2019-12-08)
dsteem/create_discounted_account/ (0, 2019-12-08)
dsteem/create_discounted_account/create_discounted_account.js (2396, 2019-12-08)
dsteem/create_discounted_account/package.json (355, 2019-12-08)
dsteem/getContent/ (0, 2019-12-08)
dsteem/getContent/getContent.js (754, 2019-12-08)
dsteem/getContent/package.json (356, 2019-12-08)
dsteem/get_active_votes/ (0, 2019-12-08)
dsteem/get_active_votes/get_active_votes.js (7107, 2019-12-08)
dsteem/get_active_votes/package.json (419, 2019-12-08)
dsteem/get_all_comments/ (0, 2019-12-08)
dsteem/get_all_comments/get_all_comments.js (3623, 2019-12-08)
dsteem/get_all_comments/package.json (504, 2019-12-08)
dsteem/get_all_comments/utils.js (3095, 2019-12-08)
dsteem/get_downvoting_power/ (0, 2019-12-08)
dsteem/get_downvoting_power/get_downvoting_power.js (1196, 2019-12-08)
dsteem/get_downvoting_power/package.json (338, 2019-12-08)
dsteem/post/ (0, 2019-12-08)
dsteem/post/package.json (348, 2019-12-08)
dsteem/post/post.js (1432, 2019-12-08)
dsteem/power_up/ (0, 2019-12-08)
dsteem/power_up/package.json (356, 2019-12-08)
dsteem/power_up/power_up.js (1241, 2019-12-08)
dsteem/vote/ (0, 2019-12-08)
dsteem/vote/package.json (328, 2019-12-08)
dsteem/vote/vote.js (1310, 2019-12-08)
steem-python/ (0, 2019-12-08)
steem-python/get_biggest_followers/ (0, 2019-12-08)
... ...
# Steemsnippets
This is a collection of various snippets for steem.
This is intended to be a collection where people can come, search for a specific functionality and have a working code snippet associated.
If you try a snippet and it ends up not working/is outdated, please open an issue or a pull request :)
Don't hesitate to submit a pull request if you want to contribute to the collection.
Made by @howo : https://steemit.com/@howo
# Current snippets :
## [Steem-js](https://github.com/steemit/steem-js)
Active snippets (add things to the blockchain)
- [How to use @almost-digital's testnet](https://github.com/drov0/steemsnippets/tree/master/steemjs/use_testnet) https://testnet.steem.vc/
- [How to create an account](https://github.com/drov0/steemsnippets/tree/master/steemjs/create_account)
- [How to post an article](https://github.com/drov0/steemsnippets/tree/master/steemjs/post)
- [How to comment on an article](https://github.com/drov0/steemsnippets/tree/master/steemjs/comment)
- [How to cast a vote/flag](https://github.com/drov0/steemsnippets/tree/master/steemjs/vote)
- [How to transfer steem/sbd](https://github.com/drov0/steemsnippets/tree/master/steemjs/transfer)
- [How to resteem a post](https://github.com/drov0/steemsnippets/tree/master/steemjs/resteem)
- [How to power up steem](https://github.com/drov0/steemsnippets/tree/master/steemjs/power_up)
Passive snippets (read from the blockchain) :
- [How to test if an username/password or username/privatekey is correct](https://github.com/drov0/steemsnippets/tree/master/steemjs/test_login)
- [How to get recent posts](https://github.com/drov0/steemsnippets/tree/master/steemjs/get_new_posts)
- [How to get the steem power of an user](https://github.com/drov0/steemsnippets/tree/master/steemjs/get_steem_power)
- [How to get the number of followers and follows of an user](https://github.com/drov0/steemsnippets/tree/master/steemjs/get_followers_following)
- [How to test if a post exists or not](https://github.com/drov0/steemsnippets/tree/master/steemjs/post_exists)
- [How to get the voting power of an user ](https://github.com/drov0/steemsnippets/tree/master/steemjs/voting_power)
- [How to get the downvoting power of an user ](https://github.com/drov0/steemsnippets/tree/master/steemjs/downvoting_power)
- [Convert simplified reputation to an approximate raw score](https://github.com/drov0/steemsnippets/tree/master/steemjs/simplified_rep_to_raw)
- [How to get the main post author and permlink from a comment](https://github.com/drov0/steemsnippets/tree/master/steemjs/get_root_post)
- [How to get the simplified and raw reputation of an user](https://github.com/drov0/steemsnippets/tree/master/steemjs/get_reputation)
## [Dsteem](https://github.com/jnordberg/dsteem)
- [How to post an article](https://github.com/drov0/steemsnippets/tree/master/dsteem/post)
- [How to claim a discounted account](https://github.com/drov0/steemsnippets/tree/master/dsteem/claimAccount)
- [How to comment on an article](https://github.com/drov0/steemsnippets/tree/master/dsteem/comment)
- [How to cast a vote/flag](https://github.com/drov0/steemsnippets/tree/master/dsteem/vote)
- [block stream skeleton to easily act on various operations as they go live on the blockchain](https://github.com/drov0/steemsnippets/tree/master/dsteem/block_feed)
- [How to claim discounted accounts](https://github.com/drov0/steemsnippets/tree/master/dsteem/claim_account)
- [How to create a discounted account](https://github.com/drov0/steemsnippets/tree/master/dsteem/create_discounted_account)
- [How to get all the comments from a post in a tree structure](https://github.com/drov0/steemsnippets/tree/master/dsteem/get_all_comments)
- [How to get active votes of an user](https://github.com/drov0/steemsnippets/tree/master/dsteem/get_active_votes)
- [How to power up steem](https://github.com/drov0/steemsnippets/tree/master/dsteem/power_up)
- [How to get the downvoting power of an user ](https://github.com/drov0/steemsnippets/tree/master/dsteem/get_downvoting_power)
## [steem-python](https://github.com/steemit/steem-python)
- [How to post an article](https://github.com/drov0/steemsnippets/tree/master/steem-python/post)
- [How to cast a vote/flag](https://github.com/drov0/steemsnippets/tree/master/steem-python/vote)
# How to contribute
I obviously accept external pull requests. Look up github's documentation on [How to create a pull request](https://help.github.com/articles/creating-a-pull-request/) on how to do so. But make sure you follow these rules :
* The function must be small and must only do one action (post an article, broadcast a vote etc).
* The function must be fully commented jsdoc/python docstring style
* The files must follow the directory structure :
* /library/nameofthesnippet/nameofhtesnippet.js/.py
* The file must include an installation file with all the dependencies. Aka a requirements.txt for python or a package.json for nodejs. This must be placed next to the source code file.
近期下载者:
相关文件:
收藏者: