- 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)
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
#pragma once | |
#include <string> | |
#include <vector> | |
template<typename T1, typename T2> | |
class map | |
{ | |
private: | |
size_t map_size; | |
std::vector<T1> left; |
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
#pragma once | |
#include <any> | |
#include <string> | |
#include <sqlite3.h> | |
#define SQLITE_HPP_VERSION 1.1 | |
/** | |
* UNSUPPORTED: | |
* |
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 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]): |
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
#!/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 |