A Pen by Michael Howard on CodePen.
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 <cctype> | |
#include <vector> | |
#include <string> | |
using namespace std; | |
vector<string> rotator(const string& s) | |
{ | |
vector<string> word; |
A Pen by Michael Howard on CodePen.
A Pen by Michael Howard on CodePen.
Takes a JSON newsfeed from FreeCodeCamp and formats articles into a randomized honeycomb pattern.
Credit for the hexagon formatting code here: http://jsfiddle.net/kizu/bhGn4/
Loads of inspiration from user web-tiki: http://codepen.io/web-tiki/pen/HhCyd
A Pen by Michael Howard on CodePen.
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
function errorHandler(err){ | |
try{ | |
JSON.parse(err); | |
console.error(`Error: ${JSON.stringify(err)}`); | |
} catch(e){ | |
console.error(`Error: ${err}`); | |
} | |
} |