diff --git a/README.md b/README.md index c6a115c..7bd650f 100644 --- a/README.md +++ b/README.md @@ -52,4 +52,6 @@ npm install mysql npm install sanitizer npm install promise npm install markdown +npm install markdown-to-html -g +npm install highlight ``` diff --git a/css/code.css b/css/code.css new file mode 100644 index 0000000..bd778a7 --- /dev/null +++ b/css/code.css @@ -0,0 +1,129 @@ +/* + +github.com style (c) Vasily Polovnyov + +*/ + +pre code { + display: block; padding: 0.5em; + color: #000; + background: #f8f8ff +} + +pre .comment, +pre .template_comment, +pre .diff .header, +pre .javadoc { + color: #998; + font-style: italic +} + +pre .keyword, +pre .css .rule .keyword, +pre .winutils, +pre .javascript .title, +pre .lisp .title, +pre .subst { + color: #000; + font-weight: bold +} + +pre .number, +pre .hexcolor { + color: #40a070 +} + +pre .string, +pre .tag .value, +pre .phpdoc, +pre .tex .formula { + color: #d14 +} + +pre .title, +pre .id { + color: #900; + font-weight: bold +} + +pre .javascript .title, +pre .lisp .title, +pre .subst { + font-weight: normal +} + +pre .class .title, +pre .haskell .label, +pre .tex .command { + color: #458; + font-weight: bold +} + +pre .tag, +pre .tag .title, +pre .rules .property, +pre .django .tag .keyword { + color: #000080; + font-weight: normal +} + +pre .attribute, +pre .variable, +pre .instancevar, +pre .lisp .body { + color: #008080 +} + +pre .regexp { + color: #009926 +} + +pre .class { + color: #458; + font-weight: bold +} + +pre .symbol, +pre .ruby .symbol .string, +pre .ruby .symbol .keyword, +pre .ruby .symbol .keymethods, +pre .lisp .keyword, +pre .tex .special, +pre .input_number { + color: #990073 +} + +pre .builtin, +pre .built_in, +pre .lisp .title { + color: #0086b3 +} + +pre .preprocessor, +pre .pi, +pre .doctype, +pre .shebang, +pre .cdata { + color: #999; + font-weight: bold +} + +pre .deletion { + background: #fdd +} + +pre .addition { + background: #dfd +} + +pre .diff .change { + background: #0086b3 +} + +pre .chunk { + color: #aaa +} + +pre .tex .formula { + opacity: 0.5; +} diff --git a/entries/testing-my-server.md b/entries/testing-my-server.md index f5d2cf5..e6a217e 100644 --- a/entries/testing-my-server.md +++ b/entries/testing-my-server.md @@ -2,7 +2,34 @@ This page is merely for testing -- go away +``` +include +void main(int argc, char * argv[]) +{ + int vals[1000]; -```javascript -var i = 1; + //value will overflow a 32 bit int!!! + long int max = 0; + + char * data = argv[1]; + for(int i = 0; i < 1000; i++) + { + vals[i] = (int)data[i] - 48; + } + + for(int i = 0; i < 1000 - 13; i ++) + { + long int tempMax = 1; + for(int t = i; t < i + 13; t++) + { + tempMax *= vals[t]; + } + if(tempMax > max) + { + max = tempMax; + } + } + + printf("the max number is %ld", max); +} ``` \ No newline at end of file diff --git a/includes/footer.html b/includes/footer.html index 06c4f9c..3103b3e 100644 --- a/includes/footer.html +++ b/includes/footer.html @@ -19,6 +19,8 @@
Copyright © Jrtechs.net 2018
+ + diff --git a/includes/header.html b/includes/header.html index 58dc623..47bf5a7 100644 --- a/includes/header.html +++ b/includes/header.html @@ -13,6 +13,12 @@ + + + + +