Here we go with the winners for the week %week% of the really thirsty #BeerSaturday challenge here on #HIVE
![image.png](https://files.peakd.com/file/peakd-hive/detlev/23w2oL4USxPxX21hzLEFgqvwVhr74aHDMf3YHx8qNk1PRSaFuULYTXb1VwvJmiocaKoKS.png) Made by @detlev based on a [picture form Pexels](https://www.pexels.com/de-de/foto/toast-liebe-menschen-frau-5530170/)
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 axios = require("axios"); | |
async function getDonors(page = 1, donors = []) { | |
const url = `https://api.betterplace.org/de/api_v4/fundraising_events/39665/opinions.json?per_page=100&page=${page}`; | |
const data = await axios.get(url); | |
console.log(`Loaded page ${page}/${data.data.total_pages} with ${data.data.data.length} donors.`) | |
donors = donors.concat(data.data.data); | |
if (data.data.current_page === data.data.total_pages) { | |
return donors; |
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 steem = require("steem"); | |
async function getBinary(block, tx, hoster) { | |
return new Promise((resolve, reject) => { | |
steem.api.getBlock(block, (e, r) => { | |
if (!r.transaction_ids.includes(tx)) { | |
resolve([]) | |
} else { | |
resolve(r.transactions.filter(x => x.transaction_id === tx)[0].operations.filter(x => x[0] === "custom" && x[1].required_auths.includes(hoster))) | |
} |
This file has been truncated, but you can view the full file.
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
(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){ | |
(function (Buffer){ | |
const steem = require("steem"); | |
async function getBinary(block, tx, hoster) { | |
return new Promise((resolve, reject) => { | |
steem.api.getBlock(block, (e, r) => { | |
if (!r.transaction_ids.includes(tx)) { | |
resolve([]) | |
} else { |
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 sprintf = require("util").format; | |
const assert = require("assert"); | |
const steem = require("steem"); | |
const creatorActiveKey = "your_active_key"; | |
const creatorPostingKey = "your_posting_key"; | |
const creatorPublicMemoKey = "your_public_memo_key"; | |
const creator = "your_account"; | |
async function setProps(community, admin, title, description) { |
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 account = SE.User.name; | |
async function getTokensToClaim() { | |
let claimAble = []; | |
let token = await (await fetch('https://scot-api.steem-engine.com/@' + account, {method: 'GET'})).json(); | |
for (let i in token) { | |
if (token[i].pending_token > 0) { | |
claimAble.push({ |
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 fetch = require("node-fetch"); | |
const steem = require("steem"); | |
const account = "scot"; | |
const wif = "5KYeFYCTtFAqoor4dBt4CDbLXnPyKbP2gmoPWpHtgspJ47MbWQh"; | |
async function getTokensToClaim() { | |
let claimAble = []; | |
let token = await (await fetch('https://scot-api.steem-engine.com/@' + account, {method: 'GET'})).json(); |
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 getAccountRC = async (account) => { | |
try{ | |
const rawResponse = await fetch('https://api.steemit.com/', { | |
method: 'POST', | |
headers: { | |
'Accept': 'application/json', | |
'Content-Type': 'application/json' | |
}, | |
body: JSON.stringify({"jsonrpc":"2.0", "method":"rc_api.find_rc_accounts", "params":{"accounts":[account]}, "id":1}) | |
}); |
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
2S9Z8C-CJR9 | |
2U9QZJ-N9CY | |
FSHDZM-WEPJ | |
G3WLQR-SSRJ | |
XF93YY-MZD9 | |
4JZ8FL-NWEW | |
HNMA25-JS62 | |
FRZNAZ-MG3B | |
BDUVVY-HLGG | |
MPTQSC-AH9E |
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
<script> | |
$(function () { | |
var host = "griefergames.net"; | |
var port = 25565; | |
$('.serverHost').text(host + ':' + port); | |
window.checkServerStatus = setInterval(function () { | |
$.ajax({ | |
url: 'https://mc.x64.rocks/status/?host=' + host + '&port=' + port, | |
success: function(data) { |
NewerOlder