Skip to content

Commit

Permalink
Thanks for choosing to learn from EazyBytes
Browse files Browse the repository at this point in the history
  • Loading branch information
eazybytes committed Sep 12, 2021
1 parent 58a797e commit b4f3199
Show file tree
Hide file tree
Showing 32 changed files with 937 additions and 0 deletions.
8 changes: 8 additions & 0 deletions 10_Complex keys inside YAML/ComplexKeys.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"This is a key that has multiple lines": "and this is its value",
"[\"Development\", \"UAT\", \"PROD\"]": [
"http://dev.eazybank.com",
"http://uat.eazybank.com",
"http://prod.eazybank.com"
]
}
11 changes: 11 additions & 0 deletions 10_Complex keys inside YAML/ComplexKeys.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Keys can also be complex, like multi-line objects
# We use ? followed by a space to indicate the start of a complex key.
? This is a key
that has multiple lines
: and this is its value
? - Development
- UAT
- PROD
: - http://dev.eazybank.com
- http://uat.eazybank.com
- http://prod.eazybank.com
125 changes: 125 additions & 0 deletions 11_Anchors and Alias inside YAML/Anchor_Alias.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
{
"definitions": {
"days": [
{
"weekday": {
"wakeup": "6:00 AM",
"activites": [
"workout",
"meetings",
"work",
"sleep"
],
"sleeptime": "10:00 PM"
}
},
{
"weekend": {
"wakeup": "8:00 AM",
"activites": [
"workout",
"playing",
"movies",
"friends",
"sleep"
],
"sleeptime": "12:00 AM"
}
}
]
},
"schedules": {
"days": {
"weekdays": [
{
"monday": {
"wakeup": "6:00 AM",
"activites": [
"workout",
"meetings",
"work",
"sleep"
],
"sleeptime": "10:00 PM"
}
},
{
"tuesday": {
"wakeup": "6:00 AM",
"activites": [
"workout",
"meetings",
"work",
"sleep"
],
"sleeptime": "10:00 PM"
}
},
{
"wednesday": {
"wakeup": "6:00 AM",
"activites": [
"workout",
"meetings",
"work",
"sleep"
],
"sleeptime": "10:00 PM"
}
},
{
"thursday": {
"wakeup": "6:00 AM",
"activites": [
"workout",
"meetings",
"work",
"sleep"
],
"sleeptime": "10:00 PM"
}
},
{
"friday": {
"wakeup": "6:00 AM",
"activites": [
"workout",
"meetings",
"work",
"sleep"
],
"sleeptime": "10:00 PM"
}
}
],
"weekends": [
{
"saturday": {
"wakeup": "8:00 AM",
"activites": [
"workout",
"playing",
"movies",
"friends",
"sleep"
],
"sleeptime": "12:00 AM"
}
},
{
"sunday": {
"wakeup": "8:00 AM",
"activites": [
"workout",
"playing",
"movies",
"friends",
"sleep"
],
"sleeptime": "12:00 AM"
}
}
]
}
}
}
31 changes: 31 additions & 0 deletions 11_Anchors and Alias inside YAML/Anchor_Alias.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
definitions:
days:
- weekday: &working
wakeup: 6:00 AM
activites:
- workout
- meetings
- work
- sleep
sleeptime: 10:00 PM
- weekend: &holiday
wakeup: 8:00 AM
activites:
- workout
- playing
- movies
- friends
- sleep
sleeptime: 12:00 AM

schedules:
days:
weekdays:
- monday: *working
- tuesday: *working
- wednesday: *working
- thursday: *working
- friday: *working
weekends:
- saturday: *holiday
- sunday: *holiday
127 changes: 127 additions & 0 deletions 12_Overriding inside YAML/Overriding.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
{
"definitions": {
"days": [
{
"weekday": {
"wakeup": "6:00 AM",
"activites": [
"workout",
"meetings",
"work",
"sleep"
],
"sleeptime": "10:00 PM"
}
},
{
"weekend": {
"wakeup": "8:00 AM",
"activites": [
"workout",
"playing",
"movies",
"friends",
"sleep"
],
"sleeptime": "12:00 AM"
}
}
]
},
"schedules": {
"days": {
"weekdays": [
{
"monday": {
"wakeup": "6:00 AM",
"activites": [
"workout",
"meetings",
"work",
"sleep"
],
"sleeptime": "10:00 PM"
}
},
{
"tuesday": {
"wakeup": "6:00 AM",
"activites": [
"workout",
"meetings",
"work",
"sleep"
],
"sleeptime": "10:00 PM"
}
},
{
"wednesday": {
"wakeup": "6:00 AM",
"activites": [
"workout",
"meetings",
"work",
"sleep"
],
"sleeptime": "10:00 PM"
}
},
{
"thursday": {
"wakeup": "6:00 AM",
"activites": [
"workout",
"meetings",
"work",
"sleep"
],
"sleeptime": "10:00 PM"
}
},
{
"friday": {
"wakeup": "6:00 AM",
"activites": [
"workout",
"meetings",
"work",
"sleep"
],
"sleeptime": "12:00 AM",
"nextflix": true
}
}
],
"weekends": [
{
"saturday": {
"wakeup": "8:00 AM",
"activites": [
"workout",
"playing",
"movies",
"friends",
"sleep"
],
"sleeptime": "12:00 AM"
},
"nextflix": true
},
{
"sunday": {
"wakeup": "8:00 AM",
"activites": [
"workout",
"playing",
"movies",
"friends",
"sleep"
],
"sleeptime": "10:00 PM"
}
}
]
}
}
}
37 changes: 37 additions & 0 deletions 12_Overriding inside YAML/Overriding.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
definitions:
days:
- weekday: &working
wakeup: 6:00 AM
activites:
- workout
- meetings
- work
- sleep
sleeptime: 10:00 PM
- weekend: &holiday
wakeup: 8:00 AM
activites:
- workout
- playing
- movies
- friends
- sleep
sleeptime: 12:00 AM

schedules:
days:
weekdays:
- monday: *working
- tuesday: *working
- wednesday: *working
- thursday: *working
- friday:
<<: *working
sleeptime: 12:00 AM
nextflix: true
weekends:
- saturday: *holiday
nextflix: true
- sunday:
<<: *holiday
sleeptime: 10:00 PM
18 changes: 18 additions & 0 deletions 13_Multi Document support inside YAML/MultiDocument.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"applications": [
{
"cards": {
"technology": "Python",
"name": "EazyCards",
"team-size": 12
}
},
{
"accounts": {
"technology": "Java",
"name": "EazyAccounts",
"team-size": 50
}
}
]
}
24 changes: 24 additions & 0 deletions 13_Multi Document support inside YAML/MultiDocument.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Development Applications Details
---
applications:
- cards:
name: EazyCards
technology: Python
team-size: 12
- accounts:
name: EazyAccounts
technology: Java
team-size: 50
...
---
# Product Applications Details
applications:
- loans:
name: EazyLoans
technology: Ruby
team-size: 8
- marketing:
name: EazyMarketing
technology: R
team-size: 4
...
Loading

0 comments on commit b4f3199

Please sign in to comment.