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 <math.h> | |
#include <vector> | |
using namespace std; | |
int StartUp(){ | |
int bookCode; | |
cout << "Please enter the book code: "; |
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 <math.h> | |
#include <time.h> | |
using namespace std; | |
void StartUp(){ | |
cout << "Welcome to Artillery."<<endl; | |
cout <<"You are in the middle of a war and being charged by thousands of enemies."<<endl; | |
cout <<"You have one cannon, which you can shoot at any angle."<<endl; |
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
var exchanges = [ | |
{ | |
name: "NYSE", | |
stocks: [ | |
{ | |
symbol: "XFX", | |
closes: [ | |
{ date: new Date(2014,11,24), price: 240.10 }, | |
{ date: new Date(2014,11,23), price: 232.08 }, | |
{ date: new Date(2014,11,22), price: 241.09 } |
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
module PrettyJSON (renderJValue, enclose) where | |
import SimpleJson(JValue(..)) | |
import Prettify (Doc, (<>), char, double, fsep, | |
hcat, punctuate, text, compact, pretty) | |
import Numeric (showHex) | |
import Data.Bits (shiftR,(.&.)) | |
import Data.Char (ord) | |
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
module Prettify ( | |
Doc (..), | |
(Prettify.<>), | |
empty, | |
char, | |
double, | |
line, | |
fold, | |
fsep, | |
hcat, |