Git alias that flips your staged and unstaged changes (invert the index vs. working tree)
Given this:
[β] staged_file.py (staged)
[β] modified_file.js (unstaged)| import math, random | |
| import numpy as np | |
| import tkinter as tk | |
| vertices = [ | |
| (100, 100, 100), | |
| (100, 100, -100), | |
| (100, -100, 100), | |
| (100, -100, -100), | |
| (-100, 100, 100), |
| import math | |
| import numpy as np | |
| import tkinter as tk | |
| vertices = [ | |
| (100, 100, 100), | |
| (100, 100, -100), | |
| (100, -100, 100), | |
| (100, -100, -100), | |
| (-100, 100, 100), |
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| # Copyright (c) 2021 billyeatcookies | |
| import json | |
| from colorama import Fore, Back, init, Style | |
| init(autoreset=True) |
| import asyncio | |
| import logging | |
| import typing as t | |
| from contextlib import suppress | |
| import discord | |
| from discord.abc import User | |
| from discord.ext.commands import Context, Paginator | |
| from bot import constants |
| import discord | |
| from discord.ext import commands | |
| class QuickPoll(commands.Cog): | |
| def __init__(self, bot): | |
| self.bot = bot | |
| @commands.command(pass_context=True) | |
| async def poll(self, ctx, question, *options: str): |