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 / 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
@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 / 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 / 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 / rsync_backup.py
Created July 8, 2020 12:02 — forked from seebk/rsync_backup.py
Python rsync backup script
#!/usr/bin/python3
#######################################################
# Python rsync Backup script
# Sebastian Kraft, 24.06.2013
#
#######################################################
#-----------------------------------------------------
# Config
@CompewterTutor
CompewterTutor / gist:40166088069aa868d900be16cd4abfbb
Created June 18, 2020 23:24 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: ๐Ÿ˜„ :smile: ๐Ÿ˜† :laughing:
๐Ÿ˜Š :blush: ๐Ÿ˜ƒ :smiley: โ˜บ๏ธ :relaxed:
๐Ÿ˜ :smirk: ๐Ÿ˜ :heart_eyes: ๐Ÿ˜˜ :kissing_heart:
๐Ÿ˜š :kissing_closed_eyes: ๐Ÿ˜ณ :flushed: ๐Ÿ˜Œ :relieved:
๐Ÿ˜† :satisfied: ๐Ÿ˜ :grin: ๐Ÿ˜‰ :wink:
๐Ÿ˜œ :stuck_out_tongue_winking_eye: ๐Ÿ˜ :stuck_out_tongue_closed_eyes: ๐Ÿ˜€ :grinning:
๐Ÿ˜— :kissing: ๐Ÿ˜™ :kissing_smiling_eyes: ๐Ÿ˜› :stuck_out_tongue:
@CompewterTutor
CompewterTutor / App.js
Created June 1, 2019 17:30
file changes (client/src/App.js client/src/components/Carousel.js client/src/components/pages/home.js
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import { Link } from 'react-router-dom';
import axios from 'axios';
import logo from './logo.svg';
import './App.css';
import './components/pages/home';
import HomePage from './components/pages/home';
@CompewterTutor
CompewterTutor / App.js
Created May 16, 2019 05:27 — forked from Thomas-Smyth/App.js
Reactstrap App.js Example for create-react-app
import React, { Component } from 'react';
import {
Collapse,
Navbar,
NavbarToggler,
NavbarBrand,
Nav,
NavItem,
NavLink,
Container,
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
{{!-- <link rel="icon" href="../../../../favicon.ico"> --}}
@CompewterTutor
CompewterTutor / liri.js
Created February 28, 2019 23:05
laura2
require("dotenv").config();
var keys = require("./keys.js");
var Spotify = require('node-spotify-api');
var spotify = new Spotify(keys.spotify);
const fs = require('fs');
const moment = require('moment');
const axios = require('axios');
var base_omdb_url = "http://www.omdbapi.com/?apikey=" + keys.omdb.api_key + "&";