Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am jellz on github.
  • I am danielgulic (https://keybase.io/danielgulic) on keybase.
  • I have a public key whose fingerprint is 0E82 12C5 416D F24D 5739 E96D A234 76C4 8615 BE85

To claim this, I am signing this object:

@jellz
jellz / irc.md
Last active March 2, 2020 09:46 — forked from xero/irc.md
irc cheat sheet - same as xero/irc.md but with proper markdown titles

IRC Reference

Not intended as a guide for newbies, more like a "cheat sheet" for the somewhat experienced IRC user, especially one who wields some power over a channel.

The Basics

  • /join #channel
    • Joins the specified channel.
  • /part #channel
  • Leaves the specified channel.
@jellz
jellz / parseColoredMessage.js
Created June 24, 2019 13:12
Function to parse color codes in messages to Minecraft JSON components
// Input: &ethis is a &b&ltest
// Output (after JSON.stringify):
// {"text":"","extra":[{"text":"this is a ","color":"yellow","bold":false,
// "italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},
// {"text":"test","color":"aqua","bold":true,"italic":false,
// "underlined":false,"strikethrough":false,"obfuscated":false}]}
const colorCodes = {
'0': 'black',
'1': 'dark_blue',