Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python3
#
# gif2mp4.py
# Bulk convert a folder of GIFs into MP4s
#
# Requirements:
# - Python 3.8+
# - pip install MoviePy
#
# Usage:
from abc import ABC, abstractmethod
class AbstractThing(ABC):
@classmethod
@abstractmethod
def classy(cls):
...
@classmethod

opening a new question

  • current system:
    • send a message in an #ask-here channel
    • causes confusion when people "lose" their channel
  • with threads:
    • create a new thread in a #help channel (one of #java-help, #bedrock-help, etc)
    • people won't "lose" their thread because it will appear right below the channel they just typed in
  • potential automation:
    • have users send a message in #help -> bot creates a new thread -> pings asker from within thread
@Arcensoth
Arcensoth / characters.md
Created February 20, 2021 19:50
Minecraft Special Characters

image

tellraw @a "\n  ① ② ③ ④ ⑤ ⑥ ⑦ ⑧ ⑨ ⑩ ⑪ ⑫ ⑬ ⑭ ⑮ ⑯ ⑰ ⑱ ⑲ ⑳"
tellraw @a "\n  Ⓐ Ⓑ Ⓒ Ⓓ Ⓔ Ⓕ Ⓖ Ⓗ Ⓘ Ⓙ Ⓚ Ⓛ Ⓜ Ⓝ Ⓞ Ⓟ Ⓠ Ⓡ Ⓢ Ⓣ Ⓤ Ⓥ Ⓦ Ⓧ Ⓨ Ⓩ"
tellraw @a "\n  ⓐ ⓑ ⓒ ⓓ ⓔ ⓕ ⓖ ⓗ ⓘ ⓙ ⓚ ⓛ ⓜ ⓝ ⓞ ⓟ ⓠ ⓡ ⓢ ⓣ ⓤ ⓥ ⓦ ⓧ ⓨ ⓩ"
tellraw @a "\n  ░ ▒ ▓ │ ┤ ╡ ╢ ╖ ╕ ╣ ║ ╗ ╝ ╜ ╛ ┐ └ ┴ ┬ ├ ─ ┼ ╞ ╟ ╚ ╔ ╩ ╦ ╠ ═ ╬ ╧ ╨ ╤ ╥ ╙ ╘ ╒ ╓ ╫ ╪ ┘ ┌ █ ▄ ▌ ▐ ▀"
tellraw @a "\n  ☲ ☵ ☰ ☱ ☳ ☴ ☶ ☷ ⅒ ⅘ ⅛ ⅜ ⅝ ⅞ ⅓ ⅔ ⅐ ⅑ ⅕ ⅖ ⅗ ⅙ ⅚ ⅟ ↉"
tellraw @a "\n  ⁰ ¹ ³ ⁴ ⁵ ⁶ ⁷ ⁸ ⁹ ⁺ ⁻ ⁼ ⁽ ⁾ ₀ ₁ ₂ ₃ ₄ ₅ ₆ ₇ ₈ ₉ ₊ ₋ ₌ ₍ ₎"
tellraw @a "\n ∅ ∈ ≡ ± ≥ ≤ ⌠ ⌡ ÷ ≈ ° ∙ · √ ⁿ ² ■ ☈ Є ∫ ∮ − ∓ ∞ ∝ ⌀ ⌂ ⌘ 〒 ↔ ⇒ ⇏ ⇔ ⇵"
# Advance the given PRNG seed, optionally using salt to diverge into a new stream.
# multiplier = 1103515245
# increment = 12345
# truncate = 16
# start with the seed
scoreboard players operation $result foo._out = $seed foo._in
# mutate the seed by multiplying by the salt

UPDATE: See: https://github.com/Arcensoth/blueprints

Blueprints

Blueprints are a text-based, human-readable/writable structure format. A blueprint compiles-down to a single NBT structure file that can be loaded with a structure block.

Note that all examples use YAML instead of JSON, but the YAML used is 1:1 convertible to/from JSON.

demo:bricks

# Selectors with operator overloading:
# (-) Pollutes module scope with many imports
# (+) Arguably more expressive/readable
# (+) More creative potential more new functionality
from pyckaxe.gamemodes import spectator
from pyckaxe.selectors import a
from pyckaxe.selector_arguments import gamemode, tag, distance, scores, score, advancements, advancement, nbt, level, limit
from pyckaxe.selector_sorts import nearest
{
"type": "minecraft:block",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:alternatives",
"children": [
{
+Esc::ExitApp
#IfWinActive Minecraft
!z::Send 1
!x::Send 2
!c::Send 3
!a::Send 4
!s::Send 5
!d::Send 6
!q::Send 7
@Arcensoth
Arcensoth / README.md
Last active April 8, 2019 17:29
vscode

VSCode preferences

Extensions

General

  • Gruvbox Themes: tomphilbin.gruvbox-themes
  • File Utils: sleistner.vscode-fileutils
  • Todo Tree: gruntfuggly.todo-tree

Web dev

  • Debugger for Chrome: msjsdiag.debugger-for-chrome
  • Prettier - Code formatter: esbenp.prettier-vscode