Skip to content

Instantly share code, notes, and snippets.

@vainveins
vainveins / mw_styles.css
Last active February 12, 2020 21:19
mw_styles.css
/*
New Perspectives on HTML and CSS
Tutorial 3
Case Problem 2
Mountain Wheels Text and Color Style
Author: Davis Giang
Date: 10/16/2016
Filename: mw_layout.css
@vainveins
vainveins / hi.cpp
Created September 28, 2016 02:11
HTML WEEK1
//syntax of two side tag
<element> content </element>
//paragraph
<p> welcome to the prop shop </p>
//element containing other element
<p> Welcome to <em> Dave's Devil Sticks. </em> </p>
//An element that does not enclose content is an empty element
@vainveins
vainveins / edited.cpp
Last active December 23, 2020 15:15
Knights tour
//=========================================================
//File: knightsTour.cpp
//Author: Davis Giang
//Description: Knights tour solver
//Date: 4/6/2016
//=========================================================
#include <iostream>
#include <iomanip>
@vainveins
vainveins / game.cpp
Last active March 11, 2016 12:07
yoyo
//=========================================================
//File: game.cpp
//Author: Davis Giang
//Description: Implementation of game class
//Date: 2/17/2016
//=========================================================
#include <iostream>
#include <iomanip>
#include <sstream>
@vainveins
vainveins / gist:f2578943b380b97be2d0
Last active November 12, 2015 19:27
timeFun prototype
//get time 24 hours
void getTime24(int&hour, int&min);
//optional
pass by value:
conver24to12:
input hour24
input min24
pass by reference:
@vainveins
vainveins / gist:af34cabbf1be64d28f23
Created November 12, 2015 19:13
timeFun prototype
//get time 24 hours
void getTime24(int&hour, int&min);