Skip to content

Instantly share code, notes, and snippets.

Cars:
- BMW:
mph: 120
price: 50000
electric: No
- Tesla:
mph: 110
price: 45000
electric: Yes
# Enclose it in square brackets
bayarea: [sanfrancisco,paloalto,redwoodcity]
southbay: [sanjose,santaclara,sunnyvale]
bayarea:
- sanfrancisco
- paloalto
- redwoodcity
southbay:
- sanjose
- santaclara
- sunnyvale
canonical: 2001-12-15T02:59:43.1Z
valid iso8601: 2001-12-14t21:59:43.10-05:00
space separated: 2001-12-14 21:59:43.10 -5
no time zone (Z): 2001-12-15 2:59:43.10
date (00:00:00Z): 2002-12-14
age: !!int 30
name: !!str Martin
float: !!float 990.00
# This is single line comment.
# This is first multi-line comment
# First line comment
# Second line comment
#Comment can start any where in the line
name: Martin # Employee Name
age: 35
name: Thomas
integer: 25
string: "25"
float: 25.0
boolean: true
# An employee record
#name is the key
# The value is the Martin
# After the ':' there should be space
name: Martin
# An employee record
#name is the key
# The value is the Martin D'vloper
# After the ':' there should be space
name: Martin D'vloper
orig_func(7,9,11)