This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Colours stylesheet by Ash England-Elbro https://github.com/TheGoldKnight23 | |
light-grey = #3c3c3c // Light grey colour | |
tarkalian-pink = #cb31bc | |
romano-violet = #6041a7 | |
dusty-silk-grey = #393933 | |
placid-blue = #3C6478 | |
light-placid-blue = #74b2c7 | |
seline-smoke = #c7cabf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/******************************************************************************* | |
MIT License | |
Copyright (c) 2020 Natasha England-Elbro | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/******************************************************************************* | |
MIT License | |
Copyright (c) 2020 Natasha England-Elbro | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import tkinter as tk | |
from tkinter import ttk | |
import sqlite3 as sqlite | |
def connect_to_db() -> sqlite.Connection: | |
conn = sqlite.connect("example_database.db") | |
conn.execute(""" | |
CREATE TABLE IF NOT EXISTS students ( | |
first_name TEXT, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import tkinter as tk | |
from tkinter import ttk | |
import sqlite3 as sqlite | |
class DB: | |
_conn = None | |
def __init__(self): | |
self._conn = sqlite.connect("example_database.db") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Required for 'from util import *' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <concepts> | |
#include <filesystem> | |
#include <string_view> | |
#include <string> | |
#include <iostream> | |
namespace fs = std::filesystem; | |
template<typename MI> | |
concept mime_typeinfo = requires(MI::size_type i, std::string_view v, const fs::path& p) { |