Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Anthony Martin inertia186

🏠
Working from home
View GitHub Profile
View hive-ticker-widget.js
/*
* This script implements a Hive Ticker widget with the Scriptable API. The script is meant to be used with a widget
* configured on the Home Screen. To install, copy this script into Scriptable (available in the Apple App Store)
* and add a "small" Scriptable widget on the Home Screen. Then select this script.
*/
// === Remote Data ===
const rpc = hiveRequest('https://api.hive.blog');
const hive = await new Request('https://api.coingecko.com/api/v3/coins/hive').loadJSON();
@inertia186
inertia186 / .description.query_blog.txt
Last active November 12, 2022 19:12
Query Hive Blog
View .description.query_blog.txt
Query the entire blog of an author.
@inertia186
inertia186 / hive-together.js
Created September 12, 2020 17:41
hive-together
View hive-together.js
// ==UserScript==
// @name hive-together
// @namespace https://gist.github.com/inertia186/484e3d55b41d47c73cff303f36d1d32c
// @updateURL https://gist.github.com/inertia186/484e3d55b41d47c73cff303f36d1d32c
// @version 0.1
// @description Quickly hive-together.
// @author inertia
// @match https://hive.blog/*
// @grant none
// @require http://code.jquery.com/jquery-3.4.0.min.js
@inertia186
inertia186 / hive-switcher.js
Last active April 17, 2020 09:54
Switch between different Hive front-ends.
View hive-switcher.js
// ==UserScript==
// @name hive-switcher
// @namespace https://gist.github.com/inertia186/39a62faa835c5fa0b527c59b1af4f2bb
// @updateURL https://gist.githubusercontent.com/inertia186/39a62faa835c5fa0b527c59b1af4f2bb/raw/f7596093365525740d8d68a76dc671e5793046b8/hive-switcher.js
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Switch between different Hive front-ends.
// @author inertia
// @match http*://hive.blog/*
// @match http*://peakd.com/*
@inertia186
inertia186 / Gemfile
Last active May 17, 2020 19:21
Communities Moderation Automation
View Gemfile
source 'https://rubygems.org'
gem 'hive-ruby', require: 'hive'
gem 'radiator'
gem 'highline'
gem 'hive_sql'
gem 'awesome_print'
gem 'pry'
gem 'rb-readline'
@inertia186
inertia186 / per.rb
Last active November 16, 2020 05:30
My attempt at figuring out what's special about 277777788888899? (see: https://hive.blog/math/@inertia/my-attempt-at-figuring-out-what-s-special-about-277777788888899)
View per.rb
def per(n, s)
# Summary of the current test by showing the numbere bing tested followed by
# the number of digits.
puts("#{n} (digits: #{n.to_s.size})")
# Increment the step.
s = s + 1
# Check if we've reached the last step.
@inertia186
inertia186 / steem-together.js
Last active February 21, 2020 22:23
steem-together
View steem-together.js
// ==UserScript==
// @name steem-together
// @namespace https://gist.github.com/inertia186/f17d49ee63e811261193e121a07e1abe
// @updateURL https://gist.github.com/inertia186/f17d49ee63e811261193e121a07e1abe
// @version 0.2
// @description Quickly steem-together.
// @author inertia
// @match https://steemit.com/*
// @grant none
// @require http://code.jquery.com/jquery-3.4.0.min.js
@inertia186
inertia186 / sm-better-names.user.js
Last active September 8, 2020 03:14
Better names for cards in Steem Monsters.
View sm-better-names.user.js
// ==UserScript==
// @name sm-better-names
// @namespace https://gist.github.com/inertia186/93b53e9922602f36dc4b743108569072
// @updateURL https://gist.github.com/inertia186/93b53e9922602f36dc4b743108569072
// @version 0.1
// @description Better names for cards in Steem Monsters.
// @author inertia
// @include https://steemmonsters.com/*
// ==/UserScript==
@inertia186
inertia186 / sm-blog-link.user.js
Last active August 22, 2019 20:30
Adds links to players' blogs on Steem Monsters.
View sm-blog-link.user.js