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
#!/usr/bin/env python | |
# coding=utf8 | |
#Identify the newest trends | |
from __future__ import division | |
import os | |
import re | |
import cPickle | |
import time | |
import sys |
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
template<class ElementType> | |
std::vector<ElementType> parse_string(std::string str,char delim) | |
{ | |
std::istringstream ss(str); | |
std::string token; | |
std::vector<ElementType> result; | |
while (getline(ss,token,delim)) | |
{ | |
std::istringstream token_parser(token); | |
ElementType value; |
NewerOlder