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
@dvtate
dvtate / tokipona_runes.cpp
Last active June 6, 2016 00:13
runic transliteration program for tokipona written in C++
#include<iostream>
#include<boost/algorithm/string/replace.hpp> //boost::replace_all()
std::string texttorunes(std::string);
std::string runestotext(std::string);
std::string textinput;
@dvtate
dvtate / dont_click.c
Last active March 14, 2017 12:48
This program requires a linux system with espeak installed.
#include <stdlib.h>
#include <time.h>
int main(){
srand(time(NULL));//generate random seed
int option = rand() % 10;//generate random integer r[0,8]
switch (option) {
case 0:
system("espeak \"don\'t touch me.\"");
@dvtate
dvtate / RPN.cpp
Last active August 17, 2024 05:44
a simple RPN calculator written in C++
#include <iostream>
#include <stack>
#include <cstring>
#include <cstdio>
#include <cstdlib>
#include <cmath>
#define MAX_LEN 200
@dvtate
dvtate / rock_paper_scissors.py
Created June 9, 2016 22:49
rock paper sicissors game running example: https://trinket.io/python/9ef5bd227b
#rock paper scissors
#DV Tate Testa
import random;
def randomChoice():
options = ["rock","paper","scissors"];
rChoice = random.randint(0,2);
return(options[rChoice]);
@dvtate
dvtate / turtle_fun.py
Created June 9, 2016 22:51
I made this in my programming class in 2014. working example: https://trinket.io/python/9e22afd794
#turtle fun
#DV Tate Testa
from turtle import *;
def draw_reg_poly(t_navn, dist, side_num, color, x0, y0, num_dash=0):
'''draw regular polygon
'params: turtle name, side length, number of sides, color, x, y, number of dashes.
'returns: draws the described polygon
'''
@dvtate
dvtate / triprog.asp
Created June 9, 2016 22:55
An asp classic page used to find the area of a triangle
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
body {
color: black;
background: white;
white-space: nowrap;
}
h3 {
''''''''''!'TriProg
'Author: Dustin Van Tate Testa
'Purpose: To find the area between any three points on a coordinate plane
'Original production date: 1-2-2014
'This is one of the many files lost on my programming drive which I have rebuilt
'Rebuild date: 12-28-2014
'
'TODO:
' Rebuild based on an ASP classic page I made based on this program
' Replace math process with heron's formula(like in website)
@dvtate
dvtate / search_bot.vbs
Created June 9, 2016 23:04
another old program of mine
Dim objIE, objWSH, intSC
MsgBox "Welcome to SearchBot 0.2" &vbNewLine& "-By: DV Tate Testa", 0, "Welcome - SearchBot 0.2"
'Get Info
strQ = InputBox("What do you want to search for?", "Query - SearchBot 1.2")
intSC = InputBox("How many times?", "SearchBot 1.2")
strQ = trim(strQ)
'Create IE obj
Set objIE = CreateObject("InternetExplorer.Application")
@dvtate
dvtate / dav.cs
Last active March 31, 2017 06:37
a helloworld application was all it took to tell me that C# wasn't for me...
using System;
class Dav {
string name;
bool noname = false;//default = no-loop
static void Main(){//run once @ start-up
@dvtate
dvtate / codequest_prob07_2014.java
Last active June 9, 2016 23:28
a morse code translator I made as practice for codequest 2015
import java.io.*;
import java.util.Scanner;
import java.util.ArrayList;
import java.util.Collections;//arrayList and .sort()
import java.util.*;
/**Morse Code translator
*-Summary:
* Translates text to morse code until it reaches
* "END OF TRANSMISSION" where it translates morse to text
*-Date: 4-29-2015