Skip to content

Instantly share code, notes, and snippets.

View 0x00002a's full-sized avatar

Natasha England-Elbro 0x00002a

View GitHub Profile
@0x00002a
0x00002a / colours.styl
Created January 2, 2020 15:50
Stylus and general colours for use mostly in web design. All numbers are hex values
// 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
@0x00002a
0x00002a / SQLiteCXX.inl
Last active January 22, 2020 13:35
Tiny inline c++ header file which contains a c++ wrapper for the C API of sqlite3
/*******************************************************************************
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
@0x00002a
0x00002a / Base64.inl
Created January 22, 2020 13:36
Base64 Encoding and Decoding implemented in C++
/*******************************************************************************
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
@0x00002a
0x00002a / main.py
Last active November 10, 2020 14:26
Unit 5 intro code
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,
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")
@0x00002a
0x00002a / __init__.py
Created January 11, 2021 17:05
menu&login
# Required for 'from util import *'
#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) {