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
| #!/bin/sh | |
| ## La base : Homebrew | |
| if test ! $(which brew) | |
| then | |
| echo 'Installation de Homebrew 💻' | |
| /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
| echo "eval $(/opt/homebrew/bin/brew shellenv)" >> $HOME/.zprofile | |
| eval "$(/opt/homebrew/bin/brew shellenv)" |
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 lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>My page title</title> | |
| </head> | |
| <body> | |
| <nav> | |
| <div class="nav-sitename"></div> |
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
| source 'https://rubygems.org' | |
| git_source(:github) { |repo| "https://github.com/#{repo}.git" } | |
| ruby '2.5.1' | |
| # Bundle edge Rails instead: gem 'rails', github: 'rails/rails' | |
| gem 'rails', '~> 5.2.0' | |
| # Use Puma as the app server | |
| gem 'puma', '~> 3.11' |
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
| inherit_from: | |
| - http://relaxed.ruby.style/rubocop.yml | |
| AllCops: | |
| DisplayStyleGuide: true | |
| DisplayCopNames: true | |
| Exclude: | |
| - 'Gemfile' | |
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 number_asker | |
| p "Salut, bienvenue dans ma super pyramide ! Combien d'étages veux-tu ?" | |
| gets.chomp.to_i | |
| end | |
| def building_pyramid(floor) | |
| p 'Voici la pyramide :' | |
| floor.times { |j| puts '*' * (j + 1) } | |
| end |