Friday, February 15, 2013

java script beautifiers

  • beautify javascript or html

Beautify, unpack or deobfuscate JavaScript and HTML, make JSON/JSONP readable, etc.
http://jsbeautifier.org/



  • Notepad++ JS Beautifier

http://erickrdch.com/2011/09/notepad-js-beautifier.html


  • YAML  is a human-readable data serialization format that takes concepts from programming languages

such as C, Perl, and Python, and ideas from XML and the data format of electronic mail
Yet Another Markup Language
http://en.wikipedia.org/wiki/YAML
YAML is a data serialisation language designed to be directly writable and readable by humans.
It’s a strict superset of JSON, with the addition of syntactically significant newlines and indentation, like Python. Unlike Python, however, YAML doesn’t allow literal tab characters for indentation.
https://learnxinyminutes.com/docs/yaml/



  • YAML is the abbreviated form of “YAML Ain’t markup language” is a data serialization language which is designed to be human -friendly and works well with other programming languages for everyday tasks.


Prerequisites
The pre-requisites of this tutorial include basic knowledge of HTML, XML and JSON. YAML was specifically created to work well for common use cases such as configuration files, log files and cross language sharing files and data sharing.
https://www.tutorialspoint.com/yaml/index.htm



  • Features

YAML includes a markup language with important construct, to distinguish data-oriented language with the document markup. The design goals and features of YAML are given below −
    Matches native data structures of agile methodology and its languages such as Perl, Python, PHP, Ruby and JavaScript
    YAML data is portable between programming languages
    Includes data consistent data model
    Easily readable by humans
    Supports one-direction processing
    Ease of implementation and usage

https://www.tutorialspoint.com/yaml/yaml_introduction.htm


  • Rules for Creating YAML file

When you are creating a file in YAML, you should remember the following basic rules −
    YAML is case sensitive
    The files should have .yaml as the extension
    YAML does not allow the use of tabs while creating YAML files; spaces are allowed instead
https://www.tutorialspoint.com/yaml/yaml_basics.htm



  • Rules for Creating YAML file

When you are creating a file in YAML, you should remember the following basic rules −
    YAML is case sensitive
    The files should have .yaml as the extension
    YAML does not allow the use of tabs while creating YAML files; spaces are allowed instead

Synopsis of YAML Basic Elements
    The synopsis of YAML basic elements is given here: Comments in YAML begins with the (#) character.
    Comments must be separated from other tokens by whitespaces.
    Indentation of whitespace is used to denote structure.
    Tabs are not included as indentation for YAML files.
    List members are denoted by a leading hyphen (-).
    List members are enclosed in square brackets and separated by commas.
    Associative arrays are represented using colon ( : ) in the format of key value pair. They are enclosed in curly braces {}.
    Multiple documents with single streams are separated with 3 hyphens (---).
    Repeated nodes in each file are initially denoted by an ampersand (&) and by an asterisk (*) mark later.
    YAML always requires colons and commas used as list separators followed by space with scalar values.
    Nodes should be labelled with an exclamation mark (!) or double exclamation mark (!!), followed by string which can be expanded into an URI or URL.
https://www.tutorialspoint.com/yaml/yaml_basics.htm


  • Indentation of YAML

YAML does not include any mandatory spaces. Further, there is no need to be consistent.
https://www.tutorialspoint.com/yaml/yaml_indentation_and_separation.htm



  • Configuration

yamllint uses a set of rules to check source files for problems. Each rule is independent from the others, and can be enabled, disabled or tweaked. All these settings can be gathered in a configuration file.
https://yamllint.readthedocs.io/en/latest/configuration.html

No comments:

Post a Comment