Skip to content

Instantly share code, notes, and snippets.

View jrcarl624's full-sized avatar
🧬
Helix

Joshua Carlson jrcarl624

🧬
Helix
View GitHub Profile
@jocopa3
jocopa3 / Discord ANSI Chart Copy-Paste
Created January 31, 2022 18:47
List of the supported ANSI escape codes in Discord as well as some examples
```ansi
 Discord ANSI Chart 
Escape Char: \u001B, aka: 
Format : ESC[1;31;40mBold Red Text on TealESC[0m
Example : Bold Red Text on Teal
Code │ Regular: 0 │ Bold: 1 │ Underline: 4
─────┼────────────┼────────────┼─────────────
30 │ Gray  │ Gray  │ Gray 
@LeviSnoot
LeviSnoot / discord-timestamps.md
Last active September 24, 2024 15:42
Discord Timestamp Syntax

Discord Timestamps

Discord timestamps can be useful for specifying a date/time across multiple users time zones. They work with the Unix Timestamp format and can be posted by regular users as well as bots and applications.

The Epoch Unix Time Stamp Converter is a good way to quickly generate a timestamp. For the examples below I will be using the Time Stamp of 1543392060, which represents November 28th, 2018 at 09:01:00 hours for my local time zone (GMT+0100 Central European Standard Time).

Formatting

Style Input Output (12-hour clock) Output (24-hour clock)
Default <t:1543392060> November 28, 2018 9:01 AM 28 November 2018 09:01
@LordMZTE
LordMZTE / ANSI.md
Last active January 6, 2022 07:03 — forked from fnky/ANSI.md
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1b
  • Decimal: 27
@tuxuser
tuxuser / xbl_oauth2.py
Created September 2, 2020 09:15
Sign in to Xbox Live with OAUTH2
"""
Sign in to Xbox Live with OAUTH2
1. Go to https://portal.azure.com/#blade/Microsoft_AAD_RegisteredApps/ApplicationsListBlade
2. Register new app ("+ New registration")
2.1. Enter a name for your app
2.2. Set "Supported account types" to "Personal Microsoft accounts only"
2.3. Click register
2.4. Choose "Redirect URIs" -> "Add a Redirect URI"
2.5. Click "Add a platform" -> "Mobile and desktop applications"
@AugustMiller
AugustMiller / Directory Layout
Last active October 26, 2021 18:06
Minecraft Bedrock Server ("BDS") configuration
.
├── backup.sh
├── backups
│   ├── latest -> /home/minecraft/bedrock/backups/worlds-2020-04-04T19:30:01+00:00
│   ├── lock (When a backup is running)
│   ├── worlds-2020-04-03T23:31:10+00:00
│   ├── worlds-2020-04-03T23:31:10+00:00
│   ├── worlds-2020-04-04T00:00:01+00:00
│   ├── worlds-2020-04-04T18:30:01+00:00
│   ├── worlds-2020-04-04T19:00:01+00:00
@Jagathishrex
Jagathishrex / main.js
Last active February 24, 2023 17:11
converting string to camel case
// util function to convert the input to string type
function convertToString(input) {
if(input) {
if(typeof input === "string") {
return input;
}
@fnky
fnky / ANSI.md
Last active September 25, 2024 03:13
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@oliveratgithub
oliveratgithub / emojis.json
Last active September 2, 2024 14:50
Emoji-list with emojis, names, shortcodes, unicode and html entities [massive list]
{
"emojis": [
{"emoji": "👩‍👩‍👧‍👧", "name": "family: woman, woman, girl, girl", "shortname": ":woman_woman_girl_girl:", "unicode": "1F469 200D 1F469 200D 1F467 200D 1F467", "html": "&#128105;&zwj;&#128105;&zwj;&#128103;&zwj;&#128103;", "category": "People & Body (family)", "order": ""},
{"emoji": "👩‍👩‍👧‍👦", "name": "family: woman, woman, girl, boy", "shortname": ":woman_woman_girl_boy:", "unicode": "1F469 200D 1F469 200D 1F467 200D 1F466", "html": "&#128105;&zwj;&#128105;&zwj;&#128103;&zwj;&#128102;", "category": "People & Body (family)", "order": ""},
{"emoji": "👩‍👩‍👦‍👦", "name": "family: woman, woman, boy, boy", "shortname": ":woman_woman_boy_boy:", "unicode": "1F469 200D 1F469 200D 1F466 200D 1F466", "html": "&#128105;&zwj;&#128105;&zwj;&#128102;&zwj;&#128102;", "category": "People & Body (family)", "order": ""},
{"emoji": "👨‍👩‍👧‍👧", "name": "family: man, woman, girl, girl", "shortname": ":man_woman_girl_girl:", "unicode": "1F468 200D 1F469 200D 1F467 200D 1F467", "html": "&#128104;&zwj;&#128105;&z
@jagrosh
jagrosh / Github Webhook Tutorial.md
Last active September 25, 2024 10:49
Simple Github -> Discord webhook

Step 1 - Make a Discord Webhook

  1. Find the Discord channel in which you would like to send commits and other updates

  2. In the settings for that channel, find the Webhooks option and create a new webhook. Note: Do NOT give this URL out to the public. Anyone or service can post messages to this channel, without even needing to be in the server. Keep it safe! WebhookDiscord

Step 2 - Set up the webhook on Github

  1. Navigate to your repository on Github, and open the Settings Settings
@mfuerstenau
mfuerstenau / zigzag-encoding.README
Last active September 15, 2024 11:18
ZigZag encoding/decoding explained
ZigZag-Encoding
---------------
Maps negative values to positive values while going back and
forth (0 = 0, -1 = 1, 1 = 2, -2 = 3, 2 = 4, -3 = 5, 3 = 6 ...)
(i >> bitlength-1) ^ (i << 1)
with "i" being the number to be encoded, "^" being
XOR-operation and ">>" would be arithemtic shifting-operation