Skip to content

Instantly share code, notes, and snippets.

View SupremeDeity's full-sized avatar
🎯
Focusing

SupremeDeity

🎯
Focusing
View GitHub Profile

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@SupremeDeity
SupremeDeity / BackdropImageBlur.dart
Created January 23, 2023 13:50
Flutter Background Backdrop image blur combined with fading effect.
ClipRect(
child: ShaderMask(
shaderCallback: (rect) {
return LinearGradient(
begin: Alignment.center,
end: Alignment.bottomCenter,
colors: [
Theme.of(context).backgroundColor,
Colors.transparent
],
var info = {
"C++": {'Level 1': Level1Index(), 'Level 2': Level2Index()},
};
class IndexManager extends StatelessWidget {
final String language;
final String level;
IndexManager(this.language, this.level);
Future<bool> _onWillPop(context) {
@SupremeDeity
SupremeDeity / Utils.py
Last active May 9, 2020 11:09
This is a help cog that i created for my discord bot. Change the stuff as you like, there is stuff specifically marked as # LOOK AT THIS which you might wanna change to suit your needs. NOTE: YOU MIGHT NEED TO CHANGE SOME STUFF TO MAKE IT WORK IN YOUR BOT
import discord
from discord.ext import commands
import random
import json
def can_run(cmd, ctx):
"""Our own version of checking if command can be run"""
if not cmd.checks:
return True
else:
#include <iostream>
#include "CoreIncludes.h"
GLFWwindow* window;
void HandleEvent() {
if (glfwGetKey(window, GLFW_KEY_1)) {
glPolygonMode(GL_FRONT_AND_BACK, GL_LINE);
}
if (glfwGetKey(window, GLFW_KEY_2)) {