This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''''''''''!'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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<style type="text/css"> | |
body { | |
color: black; | |
background: white; | |
white-space: nowrap; | |
} | |
h3 { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 | |
''' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#rock paper scissors | |
#DV Tate Testa | |
import random; | |
def randomChoice(): | |
options = ["rock","paper","scissors"]; | |
rChoice = random.randint(0,2); | |
return(options[rChoice]); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <stack> | |
#include <cstring> | |
#include <cstdio> | |
#include <cstdlib> | |
#include <cmath> | |
#define MAX_LEN 200 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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.\""); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<iostream> | |
#include<boost/algorithm/string/replace.hpp> //boost::replace_all() | |
std::string texttorunes(std::string); | |
std::string runestotext(std::string); | |
std::string textinput; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef ANIMAL_H | |
#define ANIMAL_H | |
#include <iostream> | |
class Animal { | |
public: | |
//some things that animals do: | |
template <typename T> |