Useful Sticky Notes

Wednesday, June 15, 2016

Testing Code Embedding via Gists

// Testing embedded C++ code in blogspot via gist. Making this comment extra long so I can either see this wrap or the scroll bar.
int foo=0;
int bar(int x) {
return 5*x;
}
class Foobar {
public:
Foobar() {};
~Foobar() {};
void foobar() {};
};
int main(int argc, char **argv) {
Foobar obj = Foobar();
bar(foo);
}
My source for this information:
http://boddhisattvadedicates.blogspot.com/2013/09/testing-code-sample-gist.html

The Stackoverflow entry with actual HTML embedded code:
http://stackoverflow.com/questions/18788724/issues-adding-github-gist-to-my-blogusing-google-blogger/21355714#21355714


No comments:

Post a Comment