Skip to content

Instantly share code, notes, and snippets.

@NullDev
NullDev / 1-discord-cli.md
Last active May 9, 2024 23:22
Some Discord console tricks

Discord Console Tricks (Experiments, Dev Stuff, etc)

INSTRUCTIONS FOR ALL OF THEM:

  • Open DevTools in Discord with CTRL + SHIFT + i (ONLY POSSIBLE IN CANARY AND PBT ANYMORE)
  • Paste Snippet
  • Edit it. (optional: if instructed)
  • Hit Enter.

Enable Experiments and Dev-Only Options:

@stretch07
stretch07 / dir2json.html
Last active May 7, 2022 03:28
Easily structure your directory into JSON with dir2json
<!doctype html>
<html>
<head>
<title>dir2json</title>
<style>
button {
background-color: khaki;
border: none;
color: white;

Github to Discord Webhook Tutorial

In this tutorial I'll show you how to create a Github webhook that will post updates from your Github account to a channel in Discord. The steps are simple so follow along!

Create a Webhook in a Discord Channel

First you need to create a webhook in a text channel. We're assuming you have both Manage Channel and Manage Webhooks permissions!

  • Go in a channel properties (Alternatively, Server Settings, Webhooks works too)
@MPThLee
MPThLee / enableDiscordExperiments.js
Last active May 12, 2024 06:56
This code doesn't work anymore. I just decided to remove this code. You can check working code on comments.
/**
* !!!! This code doesn't work anymore !!!!
*
* - You can check working code on comments. I won't update this code anymore.
*
* Also, I just decided to remove this code. You can check revisions for old code.
* Since this code was made for discord client that almost 5 years ago, It seems like doesn't work anymore.
* I don't want people keep arguing in the comments, i decided to remove this code.
*
* Note: This code is now fulfilled with Javascript comments. This code won't work even if you pasted to console. doesn't do anything.
@copernicus365
copernicus365 / emoji-full-codes-csv-printout.csv
Created March 14, 2018 13:49
A comma-separated list of emoji values, containing 1) the emoji value itself (`char.ConvertFromUtf32(theDecimalNum)`), 2) its hex value representation, 3) its decimal / integer representation, and 4) the name. The code I wrote to generate this started by parsing the map contained here: https://github.com/ellekasai/twemoji-awesome/blob/gh-pages/v…
😄 1f604 128516 smile
😆 1f606 128518 laughing
😊 1f60a 128522 blush
😃 1f603 128515 smiley
263a 9786 relaxed
😏 1f60f 128527 smirk
😍 1f60d 128525 heart-eyes
😘 1f618 128536 kissing-heart
😚 1f61a 128538 kissing-closed-eyes
😳 1f633 128563 flushed
@anvaka
anvaka / 00.Intro.md
Last active May 5, 2024 12:24
npm rank

npm rank

This gist is updated daily via cron job and lists stats for npm packages:

  1. Top 1,000 most depended-upon packages
  2. Top 1,000 packages with largest number of dependencies
  3. Top 1,000 packages with highest PageRank score
@gre
gre / easing.js
Last active May 8, 2024 14:30
Simple Easing Functions in Javascript - see https://github.com/gre/bezier-easing
/*
* This work is free. You can redistribute it and/or modify it under the
* terms of the Do What The Fuck You Want To Public License, Version 2,
* as published by Sam Hocevar. See the COPYING file for more details.
*/
/*
* Easing Functions - inspired from http://gizma.com/easing/
* only considering the t value for the range [0, 1] => [0, 1]
*/
EasingFunctions = {