Skip to content

Instantly share code, notes, and snippets.

View dvtate's full-sized avatar
🐧
chilling

Dustin Van Tate Testa dvtate

🐧
chilling
View GitHub Profile
#include <iostream>
#include <vector>
#include <stack>
class Node {
public:
// to neighbors
std::vector<Node*> edges;
const fs = require("fs");
const Teemo = require("teemojs");
// riot api
const riotAPIToken = fs.readFileSync(`${process.env.HOME}/.corki/riot_key`).toString().trim();
const riot = new Teemo(riotAPIToken, {
"prefix": "https://%s.api.riotgames.com",
Look at you, hacker, a pathetic creature of meat and bone. How can you challenge a perfect immortal machine?<quote>
How beautiful it is to do nothing and then rest afterward.<quote>
With my luck, I'll probably be reincarnated as me.<quote>
Think before sharing with others.<quote>
More good code has been written in languages denounced as "bad" than in languages proclaimed "wonderful" -- much more.
-- Bjarne Stroustrup<quote>
Some people's idea of free speech is that they are free to say what they like, but if anyone says anything back that is an outrage.
-- Sir Winston Churchill<quote>
What comes around goes around.<quote>
Feel free to add your own fortunes using /addfortune your fortune<quote>
@dvtate
dvtate / arch programs to install
Last active May 20, 2019 03:31
a short list of programs I find essential for using linux
arduino zip unzip atom audacity bleachbit blender gnome-builder eclipse filezilla gpick gimp gparted htop ibus-pinyin ibus-hangul inkscape kdenlive lmms obs virtualbox qtcreator shadowsocks dosbox dolphin-emu wings3d vlc xfce4-terminal simplescreenrecorder openssh openvpn
fonts: adobe-source-han-sans-otc-fonts noto-fonts-cjk adobe-source-han-serif-otc-fonts ttf-dejavu ttf-droid ttf-hack ttf-roboto ttf-freefont ttf-junicode noto-fonts noto-fonts-emoji ttf-symbola font-mathematica
AUR:
clion discord-canary slack wps-office
other:
telegram
@dvtate
dvtate / body.html
Last active November 14, 2017 14:46
update.zip -- robobibb.github.io/updates
<h3>Sub-Title</h3>
<div class="img-wrapper">
<img src="https://robobibb.github.io/imgs/finals-awards.jpg" />
here is a picture contained in a div.img-wrapper
</div>
<br/>this text has a&lt;br/><br/>in it...
<br/><br/>&lt;hr/> makes divider bars <hr/>
@dvtate
dvtate / ubuntu_welcome.txt
Last active November 30, 2017 05:47
a message to give people after you install obonto on their PC :)
I've installed Ubuntu 16.04 (came out in 2016, so its stable but old). I wouldn't use this distro on my own, but it's great for people who have never used Linux before as it guides you through using it. It's kinda lame (IMO), but it gets the job done and millions of people rely on it so it can't be too bad.
I've installed some commonly used programs:
- chromium - google chrome is just a skin for this project
- firefox - another browser bc why not
- geany - write c/c++ code here (this ide is great for small projects and test programs)
- libreoffice - a really low quality office suite (look into WPS office)
- gimp - edit photos
- wine - run windows programs (not perfect)
- gedit - simple text editor (like notepad.exe)
#ifndef COLOR_H
#define COLOR_H
#include <inttypes.h>
// 24-bit color class
class Color { // 16777216 colors
public:
// 24-bit color
uint8_t r, g, b;
@dvtate
dvtate / grip_launcher.bat
Last active March 12, 2017 08:28
people like to click on things.... Holy shit M$ batch sucks
@if "%DEBUG%" == "" @echo off
echo I had to make this to run the command for me...
echo Starting GRIP...
choice /c:ync /n /m "Run offline? (y/N/cancel)"
if errorlevel 3 exit
if errorlevel == 1 (
@dvtate
dvtate / challenge.cpp
Created February 1, 2017 04:07
the solution to the challenge faced by my friend Umar Faroq
#include <stdio.h>
#include <stdlib.h>
int main(){
// prompt:
printf("please enter a string:");
// get input
size_t linelen = 500;
#include <iostream>
#include <string.h>
int main(int argc, char* args[]){
if (strcmp(args[1], "--version") == 0) {
std::cout <<"This is a ghetto echo function that reads in reverse.\n";
return 0;
} else if (strcmp(args[1], "--help") == 0) {
std::cout <<"Useage: echo [OPTION]... [STRING]...\n"