wtf
sophuwu sophie@skisiel.com
Sun, 23 Jun 2024 09:49:23 +0200
5 files changed,
32 insertions(+),
3 deletions(-)
M
.gitignore
→
.gitignore
@@ -1,3 +1,10 @@
-calc -calcStatic -termcalc +**/* +!**/*/ +!**/*.cpp +!**/*.c +!**/*.h +!**/*.hpp +!**/Makefile +!**/README.md +!**/.gitignore +!src/**/*
A
Makefile
@@ -0,0 +1,14 @@
+NAME := termcalc + +CXX := g++ -std=c++17 +SRC := src/*.cpp +TARGET := $(NAME) + +all: $(TARGET) + +$(TARGET): $(SRC) + $(CXX) -o $(TARGET) $(SRC) + +clean: + rm -rf $(OBJ_DIR) $(BIN_DIR) +
A
README.md
@@ -0,0 +1,5 @@
+# TermCalc +A simple calculator in c/c++ that works in the terminal. + +I made this to allow me to do simple calculations in the terminal when I would cat sys hwmon files and wanted to do some quick math on the values. +It turned out to be useful and I often call it when I'm using other shells that don't have a calculator built in.