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 / 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")
''''''''''!'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 / 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 {
@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 / 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 / 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 / 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 / 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 / pwm_led_chaser.ino
Last active June 6, 2016 00:09
I wrote this function over a year ago, just backing up all the trash on my external HDD
inline void AnalogOutputTest(uint8_t startPin, uint8_t endPin, const int& timePerCycle, uint8_t incr = 5){
///checks pwm pins
if (startPin > endPin ) { // replace start & end pins
int cpStart = startPin,
cpEnd = endPin;
startPin=cpEnd;endPin=cpStart;
} else if (startPin == endPin) {
double delayTime = timePerCycle / ((startPin + 1 - endPin) * 51);
@dvtate
dvtate / animal.h
Last active November 27, 2016 20:01
ULTIMATE FISH OOP DEMONSTRATION C++
#ifndef ANIMAL_H
#define ANIMAL_H
#include <iostream>
class Animal {
public:
//some things that animals do:
template <typename T>