Skip to content

Instantly share code, notes, and snippets.

View square_root.c
#include <math.h>
#include <stdio.h>
int main() {
double number, squareRoot;
printf("Enter a number: ");
scanf("%lf", &number);
// computing the square root
View Certificate Generator.py
from PIL import Image, ImageFont, ImageDraw
def main():
big_font = ImageFont.FreeTypeFont("gotham-bold.ttf", 70)
small_font = ImageFont.FreeTypeFont("gotham-bold.ttf", 30)
smallest_font = ImageFont.FreeTypeFont("gotham-bold.ttf", 24)
date_font = ImageFont.FreeTypeFont("gotham-bold.ttf", 40)
bg = Image.open("ROGC1.jpg")
draw = ImageDraw.Draw(bg)
View add_two_binary.cpp
#include <bits/stdc++.h>
using namespace std;
string add_binary(int a, int b)
{
int carry = 0;
string ans = "";
while (a > 0 && b > 0)
{
if (a % 2 == 0 && b % 2 == 0)
View !Card_Image_Maker.py
from PIL import Image, ImageDraw, ImageFont
import numpy
level = 1
rank = 5
final_xp = 1000
xp = 400
user_name = "WiperR"
discriminator = "#3131"
View Token
ODMzNzMzMDgxMTQzMDUwMjkw.YH2ocA.2PMYaHogtX4ArXnipo-M7Dw00AY
View Dictionary to object.py
dict_ = {"User" :{"Name" : "SQWiperYT", "ID" : 10, "Other" : {"ID" : 1}}}
import json
class OurObject:
def __init__(self, /, **kwargs):
self.__dict__.update(kwargs)
def __repr__(self):
keys = sorted(self.__dict__)
View flags.py
from discord.ext import commands, flags
import discord
bot = commands.Bot(command_prefix = '.')
class Flags(commands.Cog):
def __init__(self, bot):
self.bot = bot
@flags.add_flag('--name', type=str)
We couldn’t find that file to show.