Skip to content

Instantly share code, notes, and snippets.

View externref's full-sized avatar
🍉

sarthak externref

🍉
View GitHub Profile
@n0Oo0Oo0b
n0Oo0Oo0b / pip-python-mismatch.md
Last active April 6, 2023 04:00
How to fix pip not installing packages even though it says 'requirement already satisfied'

Problem

Let's say you wanted to install a package (numpy for example) and you run the following command to install it:

$ pip install numpy

So pip does its thing, and exits with an output like so:

@kkrypt0nn
kkrypt0nn / ansi-colors-discord.md
Last active June 9, 2024 15:08
A guide to ANSI on Discord

A guide to ANSI on Discord

Discord is now slowly rolling out the ability to send colored messages within code blocks. It uses the ANSI color codes, so if you've tried to print colored text in your terminal or console with Python or other languages then it will be easy for you.

Quick Explanation

To be able to send a colored text, you need to use the ansi language for your code block and provide a prefix of this format before writing your text:

\u001b[{format};{color}m

\u001b is the unicode escape for ESCAPE/ESC, meant to be used in the source of your bot (see ). If you wish to send colored text without using your bot you need to copy the character from the website.

@ObserverOfTime
ObserverOfTime / BDLinux.md
Last active June 11, 2024 06:48
Install BetterDiscord on Linux

Install BetterDiscord on Linux

This Gist contains simple instructions on how to install, update, and uninstall BetterDiscord on Linux.

For more thorough documentation, take a look at betterdiscordctl's README.

Do NOT submit issues here as I don't check the comments. You should submit them here instead.

@anubhavshrimal
anubhavshrimal / Indian_Cities_In_States_JSON
Created March 31, 2017 09:56
JSON of Indian Cities in each of the 29 Indian States
{
"Andaman and Nicobar Islands": [
"Port Blair"
],
"Haryana": [
"Faridabad",
"Gurgaon",
"Hisar",
"Rohtak",
"Panipat",