Skip to content

Instantly share code, notes, and snippets.

@DTSCode
DTSCode / Books
Last active August 29, 2015 14:09
Christmas Book List
Programming Languages: Application and Interpretation by Shriram Krishnamurthi
http://www.amazon.com/Operating-System-Concepts-Abraham-Silberschatz/dp/1118129385
http://rads.stackoverflow.com/amzn/click/0201734842
http://rads.stackoverflow.com/amzn/click/0321113586
http://rads.stackoverflow.com/amzn/click/0321227255
http://www.nostarch.com/lyah.htm
http://www.amazon.com/The-Programming-Language-2nd-Edition/dp/0131103628
http://www.amazon.com/Clean-Code-Handbook-Software-Craftsmanship/dp/0132350882
http://www.amazon.com/The-Pragmatic-Programmer-Journeyman-Master/dp/020161622X
http://www.amazon.com/Design-Patterns-Object-Oriented-Professional-Computing/dp/0201634988
@DTSCode
DTSCode / out.cpp
Last active August 29, 2015 14:08
Various C++ Codes
#include <ostream>
#include <string>
namespace dts {
void whisper(std::ostream &out, std::string msg) {
for(char &next : msg) {
out << ((next >= 'A' && next <= 'Z') ? (next - ('Z' - 'z')) : next);
}
}