Updated in 2020 to work with Python 3. My company uses multiple git repos that all depend on one another. Often I find myself trying to grep through a few of them at the same time. Regular grep works, but it takes a long time and displays a lot of noise. git grep only searches […]
Archives for October 2016
Google May Be Stealing Your Mobile Traffic
Update 10/17/2016 6:30pm: You can read a response from the tech lead of the AMP Project for Google, in the comment area. Update 11/01/2016 10:40pm: After learning more about AMP, it became clear that the original title was inaccurate. A better title would have been You may be losing Your Mobile Traffic. Update 11/03/2016 10:30pm: […]
Parse JSON Object to Map in Scala Using Jackson
I couldn’t find a good example online, so here it goes. import com.fasterxml.jackson.module.scala.DefaultScalaModule import com.fasterxml.jackson.databind.ObjectMapper val data = “”” {“some”: “json data”} “”” val mapper = new ObjectMapper mapper.registerModule(DefaultScalaModule) mapper.readValue(data, classOf[Map[String, String]]) Hope it helps