Skip to content

Instantly share code, notes, and snippets.

View CompewterTutor's full-sized avatar
:shipit:

Compewter Tutor CompewterTutor

:shipit:
View GitHub Profile
@CompewterTutor
CompewterTutor / autoexec.cfg
Last active September 26, 2020 10:52
left4dead2 config file
cl_crosshair_dynamic 0
cl_crosshair_green 255
cl_crosshair_red 0
cl_crosshair_blue 0
cl_crosshair_alpha 100
@CompewterTutor
CompewterTutor / autoexec.cfg
Last active November 4, 2020 00:04
CS:GO Autoexec
echo " _____ __ _ "
echo " ____|__ // /___ __ __(_)___ ____ "
echo " / ___//_ </ / __ `/ |/_/ / __ \/ __ \"
echo " / / ___/ / / /_/ /> </ / /_/ / / / /"
echo "/_/ /____/_/\__,_/_/|_/_/\____/_/ /_/ "
echo ""
echo "CS:GO AutoExec Autoconfig latest source: "
echo "https://gist.github.com/CompewterTutor/7f2a6b72aeec3e59927cd7714f9fc19b"
echo ""
@CompewterTutor
CompewterTutor / .gitattributes
Last active November 9, 2020 21:30
Unreal Engine 4 Git Ignore file
# UE file types
*.uasset filter=lfs diff=lfs merge=lfs -text
*.umap filter=lfs diff=lfs merge=lfs -text
# Raw Content types
*.fbx filter=lfs diff=lfs merge=lfs -text
*.3ds filter=lfs diff=lfs merge=lfs -text
*.psd filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.mp3 filter=lfs diff=lfs merge=lfs -text
@CompewterTutor
CompewterTutor / debug.cpp
Created January 30, 2025 22:49
Leetcode C++ Debugging
//// OUTPUT MACROS FOR DEBUGGING
#define LINE0 9
#define cout_line (cout << "line " << __LINE__ - LINE0 << ": ")
#define vout(v) #v << " = " << (v)
#define print1(v) cout_line << vout(v) << endl
#define print2(v1, v2) cout_line << vout(v1) << ", " << vout(v2) << endl
#define print3(v1, v2, v3) cout_line << vout(v1) << ", " << vout(v2) << ", " << vout(v3) << endl
#define print4(v1, v2, v3, v4) cout_line << vout(v1) << ", " << vout(v2) << ", " << vout(v3) << ", " << vout(v4) << endl
#define GET_MACRO(_1,_2,_3,_4,NAME,...) NAME
#define print(...) GET_MACRO(__VA_ARGS__, print4, print3, print2, print1)(__VA_ARGS__) //COMMENT OUT BEFORE SUBMITTING