Skip to content

Instantly share code, notes, and snippets.

@sco-tt
sco-tt / GA-sort-two-columns.js
Last active August 5, 2022 05:44
This Google Apps Script sorts two columns. Variables can be modified to define what two columns should be sorted, and whether they should be ascending or descending.
/** Build a menu item
From https://developers.google.com/apps-script/guides/menus#menus_for_add-ons_in_google_docs_or_sheets
**/
function onOpen(e) {
var menu = SpreadsheetApp.getUi().createMenu('Sort');
if (e && e.authMode == ScriptApp.AuthMode.NONE) {
// Add a normal menu item (works in all authorization modes).
menu.addItem('Sort Sheet', 'sort');
} else {
@sco-tt
sco-tt / java-mincraft-commands
Last active November 8, 2023 01:01
Minecraft Commands for Java 1.19.3
# see https://beebom.com/useful-best-minecraft-commands/
#
# Minecraft java version 1.19.3 - 1.21.x
# Syntax: <some-text> indicates text that will be replaced (brackets included)
# Example:
# /teleport <player-to-be-teleported> @s
# If the player to be teleported was named ArnoldSchoenberg, then the final command would be:
# /teleport ArnoldSchoenberg @s
# Summon a flying pig