This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| body { | |
| margin: 0px; | |
| } | |
| .parent { | |
| display: flex; | |
| background-color: yellow; | |
| } | |
| .one { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width"> | |
| <title>JS Bin</title> | |
| </head> | |
| <body> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # SQLite version 3.x | |
| # gem install sqlite3 | |
| # | |
| # Ensure the SQLite 3 gem is defined in your Gemfile | |
| # gem 'sqlite3' | |
| # | |
| default: &default | |
| adapter: postgresql | |
| encoding: unicode | |
| host: db |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: '3' | |
| services: | |
| db: | |
| image: postgres | |
| volumes: | |
| - ./tmp/db:/var/lib/postgresql/data | |
| web: | |
| build: . | |
| volumes: | |
| - .:/myapp |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: '3' | |
| services: | |
| db: | |
| image: postgres | |
| volumes: | |
| - ./tmp/db:/var/lib/postgresql/data | |
| web: | |
| build: . | |
| volumes: | |
| - .:/myapp |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "openapi": "3.0.0", | |
| "info": { | |
| "version": "1.0.0", | |
| "title": "Swagger Petstore", | |
| "description": "A sample API that uses a petstore as an example to demonstrate features in the OpenAPI 3.0 specification", | |
| "termsOfService": "http://swagger.io/terms/", | |
| "contact": { | |
| "name": "Swagger API Team", | |
| "email": "[email protected]", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Person | |
| puts "at the starting of person class" | |
| def self.my_attr_reader variable_name | |
| evaluate_string = "def #{variable_name} \n" + | |
| "return @#{variable_name} \n" + | |
| "end \n" | |
| eval(evaluate_string) | |
| end | |
| my_attr_reader "name" | |
| def initialize name, age |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def name | |
| return @name | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Person | |
| puts "at the starting of person class" | |
| ###### Look Here ######## | |
| def self.my_attr_reader variable_name | |
| evaluate_string = "def #{variable_name} \n" + | |
| "return @#{variable_name} \n" + | |
| "end \n" | |
| eval(evaluate_string) | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Person | |
| puts "at the starting of person class" | |
| def initialize name, age | |
| @name = name | |
| @age = age | |
| end | |
| puts "at the end of person class" | |
| end |