Skip to content

Instantly share code, notes, and snippets.

View mathieubrunpicard's full-sized avatar

Mathieu Brun-Picard mathieubrunpicard

View GitHub Profile
#!/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)"
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>My page title</title>
</head>
<body>
<nav>
<div class="nav-sitename"></div>
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'
inherit_from:
- http://relaxed.ruby.style/rubocop.yml
AllCops:
DisplayStyleGuide: true
DisplayCopNames: true
Exclude:
- 'Gemfile'
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