How to implement a custom search for Hugo usig Gruntjs and Lunrjs.
Install the following tools:
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
from sqlsoup import SQLSoup as sql | |
from sys import argv | |
DIGRAPH = """digraph structs { | |
graph [ | |
rankdir= "LR" | |
bgcolor=white | |
] |
template <class T1> | |
struct OuterStruct | |
{ | |
T1 mValue; | |
struct InnerStruct | |
{ | |
T1 mValue; | |
}; | |
}; |
string strToSplit = "splitting strings, in|multiple ways"; | |
std::vector<std::string> words; | |
boost::split(words, strToSplit, boost::is_any_of("\t ,|")); | |
std::copy (words.begin(), words.end(), std::ostream_iterator<string>(cout, "\n")); | |
words.clear(); | |
std::istringstream iss(strToSplit); | |
std::copy(std::istream_iterator<std::string>(iss), std::istream_iterator<std::string>(), std::back_inserter(words)); | |
std::copy (words.begin(), words.end(), std::ostream_iterator<string>(cout, "\n")); |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |