Element -- selects all h2 elements on the page
h2 {
foo: bar;| o = 0 # Number of files | |
| n = 0 # Number of lines of code | |
| m = 0 # Number of lines of comments | |
| files = Dir.glob('/path/to/dir/**/*.rb') | |
| files.each do |f| | |
| next if FileTest.directory?(f) | |
| o += 1 | |
| i = 0 | |
| lines = [] |
| # Backup | |
| docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
| # Restore | |
| cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |
| { | |
| "name":"Millennium Falcon", | |
| "passengers":"6", | |
| "pilotConnection":{ | |
| "pilots":[ | |
| { | |
| "name":"Chewbacca", | |
| "species":{ | |
| "name":"Wookiee" | |
| } |
| class Cat | |
| def meow | |
| "Meow!" | |
| end | |
| end | |
| cat = Cat.new | |
| case "Meow!" | |
| in cat.meow | |
| "Reached" |
| case expression | |
| in pattern [if | unless condition] | |
| # here goes the code | |
| in pattern [if | unless condition] | |
| # here goes the code | |
| else | |
| # here goes the code | |
| end |