Skip to content

Instantly share code, notes, and snippets.

@BasedUser
BasedUser / mISA.txt
Last active January 15, 2023 21:28
The Mindustry Instruction Set Architecture (revision 2)
The Mindustry Logic ISA (mISA, "miss-uh") Manual
Revision 2 (2021/II/12)
This document describes an ISA capable of being translated into mlog interpretable code. This will also be a good target architecture for any compilers, and a decent ISA for message block (blocks containing up to 220 characters) outputs.
As I (router) am unable to describe the hardware's exact requirements to run such code due to lack of experience with hardware engineering, I will define the minimum criteria for interpreting mISA here.
----------------
@berstend
berstend / instagram-unfollow-users.md
Last active April 22, 2025 10:10
Mass unfollow users on Instagram (no app needed)
  • Go to your profile on instagram.com (sign in if not already)
  • Click on XXX following for the popup with the users you're following to appear
  • Open Chrome Devtools and Paste the following into the Console and hit return:
(async function(){
  const UNFOLLOW_LIMIT = 800
  const delay = (ms) => new Promise(_ => setTimeout(_, ms))
  const findButton = (txt) => [...document.querySelectorAll("button").entries()].map(([pos, btn]) => btn).filter(btn => btn.innerHTML === txt)[0]
@AJ-Acevedo
AJ-Acevedo / pelotonFTP.sh
Last active January 10, 2022 03:48
Peloton Power Zone Calculator
#!/usr/bin/env bash
# AJAlabs.com
#
# Peloton Power Zone Calculator
# v0.3
#
# LICENSE: MIT LICENSE (https://opensource.org/licenses/MIT)
@bradcrawford
bradcrawford / feedly_export_saved_for_later
Last active February 26, 2024 07:07
Simple script that exports a users "Saved For Later" list out of Feedly as a JSON string
// Simple script that exports a users "Saved For Later" list out of Feedly
// as a JSON string.
//
// This was intended for use in the Google Chrome's "Inspector" tool so your
// mileage may vary if used in other contexts.
//
// Format of JSON is as follows:
// [
// {
// title: "Title",
@mhawksey
mhawksey / gist:1442370
Last active February 1, 2025 00:36
Google Apps Script to read JSON and write to sheet
function getJSON(aUrl,sheetname) {
//var sheetname = "test";
//var aUrl = "http://pipes.yahoo.com/pipes/pipe.run?_id=286bbb1d8d30f65b54173b3b752fa4d9&_render=json";
var response = UrlFetchApp.fetch(aUrl); // get feed
var dataAll = JSON.parse(response.getContentText()); //
var data = dataAll.value.items;
for (i in data){
data[i].pubDate = new Date(data[i].pubDate);
data[i].start = data[i].pubDate;
}