Search Gear Notes

Search Gear #19 Regular Expressions

func getItem(entries toml.Value) func() (string, error) { i := -1 return func() (string, error) { rExpression := regexp.MustCompile(“(-([A-Z]+|[A-Z]+[1-9])-)”) i += 1 if i < len(entries.AsArray()) { if rExpression.FindString(entries.AsArray()[i].AsString()) != "" { foundString := rExpression.FindString(entries.AsArray()[i].AsString()) switch foundString { case "-YY-": replaceWith := strconv.Itoa(time.Now().Year()) entity := rExpression.ReplaceAllLiteralString(entries.AsArray()[i].AsString(), replaceWith[2:4]) return entity, nil case "-YY1-": replaceWith := strconv.Itoa(time.Now().Year() +…

Open Notebook Entry

Hypertext Notes – http://ht.acm.org/ht2014/

http://halley.exp.sis.pitt.edu/cn3/proceedingswithauthors.php?conferenceID=130&filter=contentType&item=all Day 1, Keynote. Economic Complexity http://dx.doi.org/10.1145/2631775.2631812. visualisation tools to support knowledge flow and prediction. Practical space as opposed to fundamental research. What do we know more based on the work? Seems to be that we can predict the economics of the future from the actuality of the past. And that the knowledge a country…