Skip to content

Instantly share code, notes, and snippets.

View phoebe-leong's full-sized avatar
😝
Just being myself

ph3b3 phoebe-leong

😝
Just being myself
View GitHub Profile
@phoebe-leong
phoebe-leong / philosophy.md
Created November 7, 2021 23:17
Phoebe's Software Philosophy

Phoebe's Software Philosophy (User-first Software Philosophy)

  • Easy to maintain, edit, and use as a program
  • Easy to build, preferably prebuilt
  • Open source if possible
  • Customisable interface, if interface is present - UI/GUI theme toggle, keyboard shortcuts, etc
  • Program able to be controlled solely by the keyboard, but does not force sole-keyboard control onto the user
  • Program provides easy to use documentation - both for the programmers (regarding what the code does and it's importance (including any APIs created for the program) - can be represented with comments), and for the users (regarding how to use the program)
  • Software uses safe code and regularly keeps up with code safety (if neccesary)
@phoebe-leong
phoebe-leong / map.hpp
Last active October 24, 2021 02:58
C++17 map
#pragma once
#include <string>
#include <vector>
template<typename T1, typename T2>
class map
{
private:
size_t map_size;
std::vector<T1> left;
@phoebe-leong
phoebe-leong / sqlite3.hpp
Last active October 26, 2021 21:19
SQLite3 wrapper for C++17
#pragma once
#include <any>
#include <string>
#include <sqlite3.h>
#define SQLITE_HPP_VERSION 1.1
/**
* UNSUPPORTED:
*
@phoebe-leong
phoebe-leong / gdd.py
Last active October 5, 2021 03:35
Github dependencies downloader
import os
import sys
def main():
if len(sys.argv) == 1:
print("You must provide at least one file to read!")
return -1
else:
for arg in range(len(sys.argv) - 1):
if os.path.exists(sys.argv[arg + 1]):
@phoebe-leong
phoebe-leong / pythonquiz.sh
Last active September 27, 2021 07:58
pythonquiz
#!/bin/bash
rm quiz.py &> /dev/null
touch quiz.py
read -p "Enter your name/nickname: " name
echo "# Generated by $name using a shell script" > quiz.py
printf "# Source code located at https://gist.github.com/phoebe-leong/b63c0d3da73fd64dd5ca22493c853b96\n\n" >> quiz.py
echo "score = 0" >> quiz.py