Skip to content

Instantly share code, notes, and snippets.

<script src="dsteem.js"></script>
Account:
<input type="text" id="account" value="edicted"><br>
Key:
<input type="password" id="key_string"
value=''><br>
<input type="button" id="escrow_transaction_button"
value='Escrow Transaction Button'>
<br>
let client
let block_stream
let blocks_imported = 0
let games = []
let current_game
let version
let steem_posting_key
let steem_active_key
let steem_login
/// skins: avatar, skill_prep, skill_fire, skill_combo, selection_screen
/// always put active player on left to avoid UX variance.
let client = new dsteem.Client('https://api.steemit.com')
let block_stream
let blocks_imported = 0
let games = []
let current_game
let version
let steem_login
let key
@edict3d
edict3d / combat.html
Created April 29, 2019 00:32
Five Point Combat
<!DOCTYPE html>
<html>
<body>
<h1 id="header"> Block, Paper, Scissors </h1>
<select id="menu">
<option value="mage">Mage</option>
<option value="melee">Melee</option>
<option value="yolo">YOLO</option>
@edict3d
edict3d / BlockStream.html
Created March 6, 2019 01:45
Stream Steem Blocks From Steemit Inc.
<script src="https://unpkg.com/dsteem@^0.10.0/dist/dsteem.js"></script>
<br><button id="on"> On </button><br>
<br><button id="pause"> Pause </button><br>
<br><button id="resume"> Resume </button><br>
<h1>Output:</h1>
<p id='output'></p>
<script>
/*
* Dependency:
* <script src="https://unpkg.com/dsteem@^0.8.0/dist/dsteem.js"></script>
* Return block from dsteem API given the date/time of the block.
* Uses a block anchor (known value) to extrapolate data.
* dateTime string example: "2018-10-03T00:32:45"
* Overloaded to accept integer block_num.
*/
var client = new dsteem.Client('https://api.steemit.com')
var BLOCKS_PER_SECOND = 3
@edict3d
edict3d / StakeSterilizer.html
Last active December 6, 2018 02:19
Lesson 4: Discussion Filtration
<!--
DiscussionQueryCategory:
"active" | "blog" | "cashout"
| "children" | "comments" | "feed" | "hot" | "promoted"
| "trending" | "votes" | "created"
The 'children' category gives higher priority to posts with more comments.
The 'votes' category gives higher priority to posts with more votes.
'feed' and 'blog' require the tag string to be a username.
<h1> Steem Curation Tracker </h1>
Author:
<input type="text" id="author" value="edicted"><br>
Permlink
<input type="text" id="permlink"
value="icos-and-smts-are-only-a-short-term-solution"><br>
<button id="track"> Track! </button><br>
<p id="body"> Dissect Discussion! </p>
@edict3d
edict3d / HelloWorld.html
Last active December 6, 2018 02:22
dsteem HelloWorld
<!DOCTYPE html>
<html>
<body>
<h1 id="header"> Steem Login </h1>
<form>
Username@
<input type="text" id="username" value="smartasscards"><br>
Posting key: