Skip to content

Instantly share code, notes, and snippets.

View NerdyNerves's full-sized avatar

Dominique Rollins NerdyNerves

View GitHub Profile
@NerdyNerves
NerdyNerves / test.html
Created September 28, 2017 23:20
Test
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>RipleyCreates.com | Coming soon!</title>
<link rel="stylesheet" href="bootstrap.css" />
<link rel="stylesheet" href="animate.css" />
<link rel="stylesheet" href="style.css" />
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400" rel="stylesheet" />
@NerdyNerves
NerdyNerves / euler7.cpp
Last active August 29, 2015 14:02
Project Euler #7, C++. Determines 10001st prime and also prints how long it took to calculate.
#include <iostream>
#include <ctime>
using namespace std;
int main()
{
clock_t t;
t = clock();
int a, // holds first term
@NerdyNerves
NerdyNerves / Euler6.cpp
Created May 29, 2014 17:49
Finds the difference between the sum of the squares of the first one hundred natural numbers and the square of the sum.
#include <iostream>
using namespace std;
int main() {
int x, // Holds sum of the squares
y, // Holds square of the sum
z, // Holds difference of sum of the squares
i, // used for loop
@NerdyNerves
NerdyNerves / Euler2.cpp
Last active August 29, 2015 14:01
Project Euler, Fibonacci Sequence Solution
#include <iostream>
using namespace std;
int main()
{
int a, // holds first term
b, // holds second term
c, // holds third term
sum; // holds sum
#include <iostream>
#include <iomanip>
#include <cstdlib>
#include "Inventory.h"
using namespace std;
// *******************************************************************
// setItemNumber() sets the value of the member variable itemNumber. *
// *******************************************************************
void Inventory::setItemNumber(int itemNum) {