Skip to content

Instantly share code, notes, and snippets.

View agriyakhetarpal's full-sized avatar
🐍
they see me codin', they hatin'

Agriya Khetarpal agriyakhetarpal

🐍
they see me codin', they hatin'
View GitHub Profile
@santacodes
santacodes / Ultimate Guide for Discord Servers.md
Last active February 24, 2024 01:06
A Complete Discord Server Guide for the people planning to make a Discord Server!

Discord Banner

Introduction

To get started with a discord server you need to be prepared and planned, servers that do not serve a purpose or motive fail to succeed. A well-organized and active server always attracts more attention and creates a cycle that helps the server grow constantly.

This guide will help you create the discord server you always wanted and help you take it to the moon!

Creating and setting up the Server

Things to keep in mind while creating a discord server are -

@csm10495
csm10495 / getStackFrame.py
Created October 15, 2016 05:29
A really speedy way to get the current stack frame in Python
'''
Brief:
This script demonstrates how to get the current stack frame in a way faster than using
inspect.stack()... which is really slow (like ~450 times slower than this solution in most cases)
If the fast solution won't work, will fall back to an inspect.stack() solution.
Author:
Charles Machalow
'''
@bskinn
bskinn / intersphinx_mappings.txt
Last active May 31, 2024 17:54
Various intersphinx mappings
# The entries in this file are checked regularly for validity via the Github Action
# sited at github.com/bskinn/intersphinx-gist.
# Please feel free to post an issue at that repo if any of these mappings don't work for you,
# or if you're having trouble constructing a mapping for a project not listed here.
Python 3 [latest]: ('https://docs.python.org/3/', None)
Python 3 [3.x]: ('https://docs.python.org/3.9/', None)
attrs [stable]: ('https://www.attrs.org/en/stable/', None)
Django [dev]: ('https://docs.djangoproject.com/en/dev/', 'https://docs.djangoproject.com/en/dev/_objects/')
Flask [2.2.x]: ('https://flask.palletsprojects.com/en/2.2.x/', None)
@subfuzion
subfuzion / global-gitignore.md
Last active July 16, 2024 18:54
Global gitignore

There are certain files created by particular editors, IDEs, operating systems, etc., that do not belong in a repository. But adding system-specific files to the repo's .gitignore is considered a poor practice. This file should only exclude files and directories that are a part of the package that should not be versioned (such as the node_modules directory) as well as files that are generated (and regenerated) as artifacts of a build process.

All other files should be in your own global gitignore file:

  • Create a file called .gitignore in your home directory and add any filepath patterns you want to ignore.
  • Tell git where your global gitignore file is.

Note: The specific name and path you choose aren't important as long as you configure git to find it, as shown below. You could substitute .config/git/ignore for .gitignore in your home directory, if you prefer.