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 <ctime> | |
#include <sstream> | |
#include <fstream> | |
using namespace std; | |
// timestamp returns the current time as a string | |
std::string timestamp(); |
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 <time.h> | |
#include <string> | |
#include <stdlib.h> | |
inline time_t StringToTime(std::string time_24h) { | |
time_t theTime = time(NULL); | |
struct tm *aTime = localtime(&theTime); | |
std::string delimiter = ":"; |
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 "AirCraft.h" | |
#include "Mediator.h" | |
AirCraft::AirCraft(Mediator* med) { | |
med_ = med; | |
} | |
AirCraft::AirCraft(const AirCraft& orig) { | |
} |
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> | |
using namespace std; | |
int main() | |
{ | |
int numbers[] = {11,21,13,41,9,10,29,2,12,0,12}; | |
int highest = numbers[0]; | |
int second_highest = numbers[1]; |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
x <- sample(-50:50,50) # select 50 values between -50 and +50 with replacement - consider option replace=F | |
y <- 2*x + 1 # linearly correlated data | |
plot(x,y) | |
r <- runif(50, 1.0, 40.0) # generate 50 random numbers between 1 and 40 | |
y_1 <- y+ r # Correlated but not exact | |
plot(x,y_1) |
NewerOlder