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
extern crate clap; | |
extern crate diesel; | |
extern crate diesel_demo; | |
extern crate log; | |
extern crate simple_logger; | |
use self::diesel::prelude::*; | |
use self::diesel_demo::*; | |
use self::models::*; | |
use clap::{App, Arg}; |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text.RegularExpressions; | |
namespace PhillyC1 | |
{ | |
struct Split | |
{ | |
public int startIdx; |
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> | |
class word{ | |
public: | |
virtual const std::string get() const = 0; | |
}; | |
class word_decorator: public word{ | |
public: | |
word_decorator(const word& inner) : m_i{inner}{} |
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> | |
#include <vector> | |
#include <string> | |
#include <unordered_map> | |
class LineBuffer; | |
class Output{ | |
public: | |
void refresh(void){ | |
std::cout << "Output::refresh\n"; |
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> | |
#include <deque> | |
void x(void){ | |
std::cout << "Doing x" << std::endl; | |
} | |
void y(void){ | |
std::cout << "Doing y" << std::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
// | |
// main.c | |
// Playground | |
// | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#define MAX_TEXT 100 |
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 <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <limits.h> | |
enum{TITLE_MAX = 1024}; | |
typedef struct Story | |
{ |
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> | |
#include <vector> | |
#include "carbon_footprint.h" | |
#include "car.h" | |
#include "building.h" | |
#include "bicycle.h" | |
int main () | |
{ | |
{ |
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
/* | |
* Use the numbers 1-9 in that order to find all the ways of getting 100. | |
* You can't miss any of the numbers out and only use + and - operations | |
* No functions or classes allowed either! | |
* | |
* eg | |
* 1+2+3+4+5+6+7+8+9 = 100? Then show | |
* 123+456-789 = 100? Then Show | |
* | |
*/ |
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 <stdio.h> | |
#include <stdlib.h> | |
#include <limits.h> | |
#include <errno.h> | |
#include <math.h> | |
/// Uses luminosity to convert colour to greyscale | |
#define LUM_R 0.21F | |
#define LUM_G 0.72F | |
#define LUM_B 0.07F |
NewerOlder