Skip to content

Instantly share code, notes, and snippets.

@dankor
Last active April 11, 2022 15:05
Show Gist options
  • Save dankor/3be0deaa1e4d7389b1054d5a291c730c to your computer and use it in GitHub Desktop.
Save dankor/3be0deaa1e4d7389b1054d5a291c730c to your computer and use it in GitHub Desktop.

Revisions

  1. dankor revised this gist Apr 11, 2022. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion GuessType.MD
    Original file line number Diff line number Diff line change
    @@ -43,6 +43,6 @@ Acceptance criteria:
    - UI should be simple and work properly
    - The output order should be the same as an input value
    - Try to guess as accurately as possible (I'll run my own json files to check the accuracy)
    - There is no strong requirements about types, decide yourself which to pick
    - There is no strong requirements about types, decide yourself which to pick if any ambiguity
    - The code should be hosted on Github
    - README.MD should include clear instruction on how to run it and how it works
  2. dankor revised this gist Apr 11, 2022. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions GuessType.MD
    Original file line number Diff line number Diff line change
    @@ -43,5 +43,6 @@ Acceptance criteria:
    - UI should be simple and work properly
    - The output order should be the same as an input value
    - Try to guess as accurately as possible (I'll run my own json files to check the accuracy)
    - There is no strong requirements about types, decide yourself which to pick
    - The code should be hosted on Github
    - README.MD should include clear instruction on how to run it and how it works
  3. dankor revised this gist Apr 11, 2022. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion GuessType.MD
    Original file line number Diff line number Diff line change
    @@ -42,6 +42,6 @@ Acceptance criteria:
    - Code should be clean and extendable for more types
    - UI should be simple and work properly
    - The output order should be the same as an input value
    - Try to guess as accurately as possible (I'll run my own json files to check the accurency)
    - Try to guess as accurately as possible (I'll run my own json files to check the accuracy)
    - The code should be hosted on Github
    - README.MD should include clear instruction on how to run it and how it works
  4. dankor revised this gist Apr 11, 2022. 1 changed file with 2 additions and 3 deletions.
    5 changes: 2 additions & 3 deletions GuessType.MD
    Original file line number Diff line number Diff line change
    @@ -8,7 +8,7 @@ Input JSON structure example:
    "d": "https://gist.github.com/"
    }
    ```
    The result should guess the type of field and return a corresponding json:
    The output should be the guess of types per every field and return a corresponding json:
    ```json
    {
    "a": "integer",
    @@ -36,13 +36,12 @@ Possible types which you have to guess:
    - word (a word)
    - undefined (everything else)


    Acceptance criteria:
    - Web page should be browser-only, OS-agnostic, no additional software required
    - Only client-side, no server dependency
    - Code should be clean and extendable for more types
    - UI should be simple and work properly
    - The output order should be the same as an input value
    - Pass most of the tests (the result of testing I will provide after my testing)
    - Try to guess as accurately as possible (I'll run my own json files to check the accurency)
    - The code should be hosted on Github
    - README.MD should include clear instruction on how to run it and how it works
  5. dankor revised this gist Apr 11, 2022. 1 changed file with 9 additions and 9 deletions.
    18 changes: 9 additions & 9 deletions GuessType.MD
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    You have to create a web-app to convert one json to another json file. Feel free to create your own sophisticated UI.
    You have to create a web app to convert one json to another json file. Feel free to create your own sophisticated UI.
    Input JSON structure example:
    ```json
    {
    @@ -17,14 +17,14 @@ The result should guess the type of field and return a corresponding json:
    "d": "url"
    }
    ```
    Pssiable types which you have to guess:
    Possible types which you have to guess:
    - array (list)
    - object (dictionary)
    - boolean (binary)
    - integer (integer number)
    - double (floating-point digit)
    - zip (postal code)
    - uuid (universal unique identifier)
    - uuid (universal unique identifier)
    - phone (phone number)
    - date (date or datetime)
    - ip (internet protocol address)
    @@ -38,11 +38,11 @@ Pssiable types which you have to guess:


    Acceptance criteria:
    - Web page should be browser-only, OS-agnostic, no additinal software required
    - Only client side, no server dependency
    - Code should be clean and extandable for more types
    - Web page should be browser-only, OS-agnostic, no additional software required
    - Only client-side, no server dependency
    - Code should be clean and extendable for more types
    - UI should be simple and work properly
    - The output order should be the same as input value
    - Pass most of tests (the result of testing I will provide after my testing)
    - The output order should be the same as an input value
    - Pass most of the tests (the result of testing I will provide after my testing)
    - The code should be hosted on Github
    - README.MD should includ clear instruction how to run it and how it works
    - README.MD should include clear instruction on how to run it and how it works
  6. dankor revised this gist Apr 11, 2022. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion GuessType.MD
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    You have to create wep-app which will convert json to another json file. Feel free to create your own sophisticated UI.
    You have to create a web-app to convert one json to another json file. Feel free to create your own sophisticated UI.
    Input JSON structure example:
    ```json
    {
  7. dankor created this gist Apr 11, 2022.
    48 changes: 48 additions & 0 deletions GuessType.MD
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,48 @@
    You have to create wep-app which will convert json to another json file. Feel free to create your own sophisticated UI.
    Input JSON structure example:
    ```json
    {
    "a": "1",
    "b": true,
    "c": [1,2,3],
    "d": "https://gist.github.com/"
    }
    ```
    The result should guess the type of field and return a corresponding json:
    ```json
    {
    "a": "integer",
    "b": "boolean",
    "c": "array",
    "d": "url"
    }
    ```
    Pssiable types which you have to guess:
    - array (list)
    - object (dictionary)
    - boolean (binary)
    - integer (integer number)
    - double (floating-point digit)
    - zip (postal code)
    - uuid (universal unique identifier)
    - phone (phone number)
    - date (date or datetime)
    - ip (internet protocol address)
    - url (uniform resource locator address)
    - email (email address)
    - address (street address)
    - text (long text)
    - title (short text)
    - word (a word)
    - undefined (everything else)


    Acceptance criteria:
    - Web page should be browser-only, OS-agnostic, no additinal software required
    - Only client side, no server dependency
    - Code should be clean and extandable for more types
    - UI should be simple and work properly
    - The output order should be the same as input value
    - Pass most of tests (the result of testing I will provide after my testing)
    - The code should be hosted on Github
    - README.MD should includ clear instruction how to run it and how it works