Input:
{"message":"hello there","id":1}
{"message":"why hello there","id":2}
Example:
{"id":1,"message":"hello there"}
Output:
{"id":1,"message":"hello there"}
{"there":id,"message":"why hello"}Show HN: A tool that transforms your whole list with just one example
101–110 of 151 posts
Re: Show HN: A tool that transforms your whole list with just one example
#102For example, I added some information in the example below about which pronoun to use based on gender. Would be really neat to have this sort of information built into the tool.
Input:
{name: "James", age:"30", hobby: "running", genderWord: "his"}
{name: "Erin", age:"28, hobby: "cooking", genderWord: "her"}
{name: "Owen", age:"3", hobby: "playing chase", genderWord: "his"}
{name: "Luke", age:"1", hobby: "reading", genderWord: "his"}
Example:
James is 30 years old and his favorite hobby is runningOutput:
James is 30 years old and his favorite hobby is running
Erin is 28 years old and her favorite hobby is cooking
Owen is 3 years old and his favorite hobby is playing chase
Luke is 1 years old and his favorite hobby is readingRe: Show HN: A tool that transforms your whole list with just one example
#103Earlier quoted context omitted.
For that use case you can use the Lapis[1][2] desktop app (the secret weapon I use for data munging), which allows you to choose several examples and edit a file with direct manipulation - or define patterns using a DSL. [1] https://en.wikipedia.org/wiki/Lapis_(text_editor) [2] http://groups.csail.mit.edu/uid/lapis/
I love how that editor "just works" 12 years after its last release. Thanks!
But thanks for the suggestion, it might be useful.
Re: Show HN: A tool that transforms your whole list with just one example
#104Also, your instructions makes it seem like the example is editable:
SUPER EASY TO USE 1. Paste your source data in the white box on the left.
2. Type in the green box on the right how you would like the first line of your data to look.
3. Transformy will look at your example and transform every line from your source data into the same format.
Re: Show HN: A tool that transforms your whole list with just one example
#105 1 Microsoft Way Apt 43, Redmond, WA 98065, U.S.A.
1-1/4 Palm Hwy, Colino, MA 87009, USA
500 Potasium Cloride, Sunshite-Big Blow City, PA 30000, United States of America
First line output should look like: 1 Redmond 98065 U.S.A.
Also having country-specific obscure sports terminology on landing page example can cause lot of confusion.Re: Show HN: A tool that transforms your whole list with just one example
#106I hope you sell your IP to Microsoft Excel. This would be a major time saver feature for a lot of the Excel world.
I could have used this hundreds of time in Visual Studio. We often process messages with hundreds of fields. So I will have a class from specs (usually excel) with a number of properties, then I need a method to populate each of those from some other object, then I need a method that does the reverse - populates some other object from the properties. This happens over and over for us. Typically I just use a Notepad++…
Re: Show HN: A tool that transforms your whole list with just one example
#107Re: Show HN: A tool that transforms your whole list with just one example
#108Good concept but doesn't work. Example, type different variations of legal well formatted addresses. 1 Microsoft Way Apt 43, Redmond, WA 98065, U.S.A. 1-1/4 Palm Hwy, Colino, MA 87009, USA 500 Potasium Cloride, Sunshite-Big Blow City, PA 30000, United States of America First line output should look like: 1 Redmond 98065 U.S.A. Also having country-specific obscure sports terminology on landing page example can cause l…