This file contains 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 <winsock2.h> | |
#include <iphlpapi.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <WS2tcpip.h> | |
// Link with Iphlpapi.lib | |
#pragma comment(lib, "IPHLPAPI.lib") | |
This file contains 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
/* | |
NOTE: I am hesitant to use this potential design because I think it is harder to read. Since I am working with 2 others | |
who don't have the same level of Javascript experience, I think this code may be harder for them to understand. | |
*/ | |
/* | |
initialization.js -- This file defines the things that should be done as soon as the web page initially loads. | |
Some things that need to be done at initialization: |
This file contains 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
require 'net/http' | |
require 'json' | |
require 'uri' | |
=begin | |
@about: API for making web requests | |
@author: Max Wiegant | |
@revisions: | |
[20161223] - First Draft | |
[20170107] - v1.0.0 completed |
This file contains 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
/* | |
* NOTE: I am not 100% sure these functions work as intended. They may serve | |
* as a useful place to start though if a problem involving data parsing needs | |
* to be solved. | |
*/ | |
// -------------------------------------------- | |
// Constants | |
// -------------------------------------------- | |
const char JAN[4] = "JAN"; |
This file contains 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
<head> | |
<title>Color Panel Display</title> | |
<link rel="stylesheet" type="text/css" href="styles.css"> | |
<script src="panel.js"></script> | |
</head> | |
<body> | |
<div class="con"> | |
<span class="panel" id="panel"></span> |
This file contains 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
<head> | |
<title>Toggle Timer Page</title> | |
</head> | |
<body> | |
<p id="date">should not see this</p> | |
<br> | |
<p id="time">should not see this</p> | |
<br> |
This file contains 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
<html> | |
<head> | |
<style> | |
div.panel {display:inline-block; width:100px; height:100px; border:3px solid black; | |
margin:20px} | |
div.on {background-color:blue;} | |
</style> | |
</head> | |
<body> |
This file contains 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
const Month JAN ( 0, "JAN" ); | |
const Month FEB ( 1, "FEB" ); | |
const Month MAR ( 2, "MAR" ); | |
const Month APR ( 3, "APR" ); | |
const Month MAY ( 4, "MAY" ); | |
const Month JUN ( 5, "JUN" ); | |
const Month JUL ( 6, "JUL" ); | |
const Month AUG ( 7, "AUG" ); | |
const Month SEP ( 8, "SEP" ); | |
const Month OCT ( 9, "OCT" ); |
This file contains 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> | |
using namespace; | |
int main() | |
{ | |
char charSix = '6'; | |
// int intSix = int( charSix ) - 48; // DON'T DO THIS, Leverington calls this 'terrible code' | |
int intSix = int( charSix - '0'); | |
cout << "The value of intSix is: " << intSix << endl; |
This file contains 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
/* I used the npm module github-api, check it out. | |
npm -- https://www.npmjs.com/package/github-api | |
github -- https://github.com/michael/github | |
*/ | |
var Github = require('github-api'); | |
//------------------ API ------------------------- | |
function API() { | |
// I assume you'll pass your username and password in as environment variables, which is probably the |