diff --git a/docs/bios-configuration.md b/docs/bios-configuration.md new file mode 100644 index 000000000..21fdfab47 --- /dev/null +++ b/docs/bios-configuration.md @@ -0,0 +1,29 @@ +# BIOS Configuration + +## Steps + +F10 (Open Setup) + +- _Security_ + - _Create BIOS Administrator Password_ → Set password +- _Advanced_ + - _Boot Options_ + - _USB Storage Boot_ → Disabled + - _Fast Boot_ → Disabled (disturbs network boot) + - _Audio Alerts During Boot_ → Disabled (very noisy) + - _HP Sure Recover_ + - _HP Sure Recover_ → Disabled (tries to restore Windows) + - _Secure Boot Configuration_ + - _Configure Legacy Support and Secure Boot_ → «Legacy Support Disable and Secure Boot Disable» (**TODO**: use Secure Boot) + +F10 → Yes (Save changes & Reboot) + +> Enter the code that the BIOS asks to disable the secure boot + +## Automation + +- Can be automated using Intel vPro/AMT (**TODO**) +- Can be partially automated with a USB programmable keyboard such as : + - [USB Rubber Ducky](https://shop.hak5.org/products/usb-rubber-ducky-deluxe) + - [XK-24 USB Programmable Keypad for Windows or Mac](https://www.amazon.com/gp/product/B003MB780E) + - [Cactus WHID: WiFi HID Injector USB Rubberducky](https://www.tindie.com/products/aprbrother/cactus-whid-wifi-hid-injector-usb-rubberducky/) diff --git a/docs/event-management.md b/docs/event-management.md index c41188074..d15e97519 100644 --- a/docs/event-management.md +++ b/docs/event-management.md @@ -1,59 +1,66 @@ # Events management ## Usage -> An event is associated to an object when the usage of this object implies: -> * a limited capacity of people -> * a limited time -> Event management require: -> * Edition of the attributes of the object on which the event is based -> * Creation and settings of the event associated to the reference object +An event is associated to an object when the usage of this object implies: + +- a limited capacity of people +- a limited time + +Event management require: + +- Edition of the attributes of the object on which the event is based +- Creation and settings of the event associated to the reference object > Events are used for: `piscines`, `check-in`, `exams`, `rushes`, `hackatons`, `conferences`. ## Settings for the reference object -> Important indications: -> * Objects that doesn't have required attributes for event creation will not be open to event creation. +Important indications: -> | name | fullfillment | -> | -------------------- | --------- | -> | capacity | **required** | -> | eventDuration | **required** | -> | registrationDuration | **required** | -> | description | optionnal | -> | eventStartDelay | optionnal | +- Objects that doesn't have required attributes for event creation will not be open to event creation. -> * All the attributes filled in the object are used as values by default for event's creation; it can be overloaded for each event related to the reference object. -> * If the reference object has a child or children which are events itself, settings are also required for each event child. +| name | fullfillment | +| -------------------- | ------------ | +| capacity | **required** | +| eventDuration | **required** | +| registrationDuration | **required** | +| description | optionnal | +| eventStartDelay | optionnal | + +- All the attributes filled in the object are used as values by default for event's creation; it can be overloaded for each event related to the reference object. +- If the reference object has a child or children which are events itself, settings are also required for each event child. #### Edit the object attributes: -> in *Object attributes* -Capture d’écran 2019-08-22 à 11 40 34 +> in _Object attributes_ + +Capture d’écran 2019-08-22 à 11 40 34 -* Add a new key **capacity** of type `Number` with the maximum number of persons you want for events related to the object by default -* Add a new key **eventDuration** of type `Number` with the duration in minutes you want for events related to the object by default -* Add a new key **registrationDuration** of type `Number` with the duration in minutes you want to allow to people to register to the event by default -* Add a new key **eventStartDelay** of type `Number`, if you want a default delay between the end of registration and the beginning of the event. This duration is expressed in minutes. -* Add a new key **description** of type `String`, if you need to associate some informations to your event (description, location, access, documents to provide, etc.) +- Add a new key **capacity** of type `Number` with the maximum number of persons you want for events related to the object by default +- Add a new key **eventDuration** of type `Number` with the duration in minutes you want for events related to the object by default +- Add a new key **registrationDuration** of type `Number` with the duration in minutes you want to allow to people to register to the event by default +- Add a new key **eventStartDelay** of type `Number`, if you want a default delay between the end of registration and the beginning of the event. This duration is expressed in minutes. +- Add a new key **description** of type `String`, if you need to associate some informations to your event (description, location, access, documents to provide, etc.) #### Edit the children -> in *Children* -Capture d’écran 2019-08-22 à 15 43 43 +> in _Children_ + +Capture d’écran 2019-08-22 à 15 43 43 -* Add a new key **startAfter** of type `Number`, with the default delay you want between the beginning of the event and the beginning of the child event. This duration is expressed in minutes. +- Add a new key **startAfter** of type `Number`, with the default delay you want between the beginning of the event and the beginning of the child event. This duration is expressed in minutes. ##### Example -Here is an example of the `Piscine Go` settings. It presents the settings of the object attributes `Piscine Go`, the settings of one of its child which is an event and the settings of the child object attributes itself. +Here is an example of the `Piscine Go` settings. It presents the settings of the object attributes `Piscine Go`, the settings of one of its child which is an event and the settings of the child object attributes itself. > NB : this object settings are provided in the admin, in the curses section: 'Piscine Go' and in the exams section 'Exam 01'. **Piscine Go** -*Object attributes* +_Object attributes_ + ```json { "capacity": 400, @@ -65,10 +72,11 @@ Here is an example of the `Piscine Go` settings. It presents the settings of the This piscine object attributes look like this: -![piscine object attributes](https://user-images.githubusercontent.com/35296671/63526946-239dfa00-c4f8-11e9-8272-270c578f3fb8.png) +![piscine-object-attributes](img/piscine-object-attributes.png) + +_Children_ -*Children* -> In the `Piscine Go`, children of type *exam* and *rush* have events itself. +> In the `Piscine Go`, children of type _exam_ and _rush_ have events itself. > A **startAfter** key has to be defined for each of them, in their parent object `Piscine Go`. For example, the exam-01 gets this key: @@ -80,12 +88,14 @@ This piscine object attributes look like this: This child attributes look like this: -![piscine children attributes](https://user-images.githubusercontent.com/35296671/63525543-c86b0800-c4f5-11e9-8820-60d9ff33994f.png) +![piscine children attributes](img/63525543-c86b0800-c4f5-11e9-8820-60d9ff33994f.png) **Exam 01** -> The object `Exam 01`, which is a child of `Piscine Go`, has its own *Object Attributes* filled in the child object. -*Object attributes* +> The object `Exam 01`, which is a child of `Piscine Go`, has its own _Object Attributes_ filled in the child object. + +_Object attributes_ + ```json { "eventDuration": 240, @@ -93,85 +103,88 @@ This child attributes look like this: "eventStartDelay": 60 } ``` + > NB: the **capacity** attribute is herited from the parent object `Piscine Go` here. This exam object attributes look like this: -![exam object attributes](https://user-images.githubusercontent.com/35296671/63527315-c3f41e80-c4f8-11e9-82da-d27c4c367323.png) +![exam-object-attributes](img/exam-object-attributes.png) ## Create the event ### Create a new event for your object -> (in *Admin* > *Manage events* > *Add new event*) -Capture d’écran 2019-08-22 à 11 37 13 -Capture d’écran 2019-08-22 à 11 37 35 -Capture d’écran 2019-08-22 à 11 38 07 +> (in _Admin_ > _Manage events_ > _Add new event_) +Capture d’écran 2019-08-22 à 11 37 13 +Capture d’écran 2019-08-22 à 11 37 35 +Capture d’écran 2019-08-22 à 11 38 07 -* The **reference object** of your event is the object for which you need to create an event: `Check`, `Piscine Go`, etc. -* The **registration starts at** indicates when registration of the event begins. -* The **registration ends at** indicates when registration of the event ends. -* The **event starts at** indicates when the event begins. +- The **reference object** of your event is the object for which you need to create an event: `Check`, `Piscine Go`, etc. +- The **registration starts at** indicates when registration of the event begins. +- The **registration ends at** indicates when registration of the event ends. +- The **event starts at** indicates when the event begins. > NB: -> * End of registration can't be before its beginning. -> * Start of event can't be before end of registration. -> * Date and Time input is not yet working in firefox but should be added soon by mozilla. In the mean while use chrome for adding events +> +> - End of registration can't be before its beginning. +> - Start of event can't be before end of registration. +> - Date and Time input is not yet working in firefox but should be added soon by mozilla. In the mean while use chrome for adding events ### Settings for you event > In the event you have created, 3 categories must be checked: +> > 1. General settings > 2. Registration's settings > 3. Event's settings #### General settings -Capture d’écran 2019-08-22 à 11 39 26 +Capture d’écran 2019-08-22 à 11 39 26 -General settings of your event can be set after creation of the event. By default, it is the values indicated in the **reference object**. +General settings of your event can be set after creation of the event. By default, it is the values indicated in the **reference object**. -* **Capacity** - * During the regitration, the capacity doesn't apply. When registration ends, we register the amount defined by the **capacity** to the event *(ordered by registration date)*. - * If someone unregister to the event during a registration, it release one place. - * During a registration, users can see if their place is guaranteed or if they are in waiting list. - * If the event has children which are event themselves, they will use by default the capacity of the parent event +- **Capacity** + - During the regitration, the capacity doesn't apply. When registration ends, we register the amount defined by the **capacity** to the event _(ordered by registration date)_. + - If someone unregister to the event during a registration, it release one place. + - During a registration, users can see if their place is guaranteed or if they are in waiting list. + - If the event has children which are event themselves, they will use by default the capacity of the parent event if no capacity was defined on this child. -* **Description** (facultative) - * It can be used to describe the topic of the event, or to add some practical informations: location, documents to provide, accessibility, etc. +- **Description** (facultative) + - It can be used to describe the topic of the event, or to add some practical informations: location, documents to provide, accessibility, etc. #### Registration -Capture d’écran 2019-08-22 à 11 39 37 +Capture d’écran 2019-08-22 à 11 39 37 -* End of registration can't be after start of registration. -* Dates can't be updated after it's passed. -* The **registration duration** indicated in the **reference object** is reminded under the inputs to help you fill the informations. -* Same for the **event start delay**. -* The list of users in the registration, pending or accepeted, is accessible by clicking on the link 'N users registered', at the left bottom of this categrory. +- End of registration can't be after start of registration. +- Dates can't be updated after it's passed. +- The **registration duration** indicated in the **reference object** is reminded under the inputs to help you fill the informations. +- Same for the **event start delay**. +- The list of users in the registration, pending or accepeted, is accessible by clicking on the link 'N users registered', at the left bottom of this categrory. #### Event -Capture d’écran 2019-08-22 à 11 39 49 +Capture d’écran 2019-08-22 à 11 39 49 -* End of event can't be after start of event. -* Dates can't be updated after it's passed. -* The **end of event** is calculated by default by adding the **event duration** indicated in the **reference object** to the **start of event** date. - * If the event contains other events, the **end of event** can't be before the end of the last child event. -* The **event duration** indicated in the **reference object** is reminded under the inputs to help you fill the informations. - * If the event contains other events, the **minimum end of event** is indicated under the inputs to help you fill the informations. -* The list of users selected for the event at its creation is accessible by clicking on the link 'N users registered', at the left bottom of this categrory. +- End of event can't be after start of event. +- Dates can't be updated after it's passed. +- The **end of event** is calculated by default by adding the **event duration** indicated in the **reference object** to the **start of event** date. + - If the event contains other events, the **end of event** can't be before the end of the last child event. +- The **event duration** indicated in the **reference object** is reminded under the inputs to help you fill the informations. + - If the event contains other events, the **minimum end of event** is indicated under the inputs to help you fill the informations. +- The list of users selected for the event at its creation is accessible by clicking on the link 'N users registered', at the left bottom of this categrory. #### Children (facultative) -Capture d’écran 2019-08-22 à 18 24 49 +Capture d’écran 2019-08-22 à 18 24 49 This category appears only if the event has children which are events itself. -* Children settings can't be overloaded. -* Each event child presents: - * Its **Start** and **end** (according to the children settings of the **reference object**) - * Its **capacity** - * Its **groups size** - * Reminder: in `hackatons` or `rushes`, candidates or students registered to the are divided in groups of N persons. +- Children settings can't be overloaded. +- Each event child presents: + - Its **Start** and **end** (according to the children settings of the **reference object**) + - Its **capacity** + - Its **groups size** + - Reminder: in `hackatons` or `rushes`, candidates or students registered to the are divided in groups of N persons. diff --git a/docs/img/4.png b/docs/img/4.png deleted file mode 100644 index 459f2cb23..000000000 Binary files a/docs/img/4.png and /dev/null differ diff --git a/docs/img/56507169-6505a500-6518-11e9-89bb-04c7fd9b41ca.png b/docs/img/56507169-6505a500-6518-11e9-89bb-04c7fd9b41ca.png new file mode 100644 index 000000000..73fa42e87 Binary files /dev/null and b/docs/img/56507169-6505a500-6518-11e9-89bb-04c7fd9b41ca.png differ diff --git a/docs/img/56507180-6afb8600-6518-11e9-97a5-4dcff8f0a069.png b/docs/img/56507180-6afb8600-6518-11e9-97a5-4dcff8f0a069.png new file mode 100644 index 000000000..eb6e1f42d Binary files /dev/null and b/docs/img/56507180-6afb8600-6518-11e9-97a5-4dcff8f0a069.png differ diff --git a/docs/img/56507445-3936ef00-6519-11e9-90c8-d85056e9330b.png b/docs/img/56507445-3936ef00-6519-11e9-90c8-d85056e9330b.png new file mode 100644 index 000000000..eda82e86b Binary files /dev/null and b/docs/img/56507445-3936ef00-6519-11e9-90c8-d85056e9330b.png differ diff --git a/docs/img/56517407-cb98bc00-6534-11e9-98d6-a2b1c0193a38.png b/docs/img/56517407-cb98bc00-6534-11e9-98d6-a2b1c0193a38.png new file mode 100644 index 000000000..6be361943 Binary files /dev/null and b/docs/img/56517407-cb98bc00-6534-11e9-98d6-a2b1c0193a38.png differ diff --git a/docs/img/56517421-d0f60680-6534-11e9-86ef-97fb9e59786e.png b/docs/img/56517421-d0f60680-6534-11e9-86ef-97fb9e59786e.png new file mode 100644 index 000000000..05ba53061 Binary files /dev/null and b/docs/img/56517421-d0f60680-6534-11e9-86ef-97fb9e59786e.png differ diff --git a/docs/img/56518936-a1e19400-6538-11e9-81c7-520ffd365cff.png b/docs/img/56518936-a1e19400-6538-11e9-81c7-520ffd365cff.png new file mode 100644 index 000000000..7e4fce070 Binary files /dev/null and b/docs/img/56518936-a1e19400-6538-11e9-81c7-520ffd365cff.png differ diff --git a/docs/img/6.png b/docs/img/6.png deleted file mode 100644 index e1f5c94a3..000000000 Binary files a/docs/img/6.png and /dev/null differ diff --git a/docs/img/63525316-64e0da80-c4f5-11e9-9e61-57d5a73da9b1.png b/docs/img/63525316-64e0da80-c4f5-11e9-9e61-57d5a73da9b1.png new file mode 100644 index 000000000..654f8ea55 Binary files /dev/null and b/docs/img/63525316-64e0da80-c4f5-11e9-9e61-57d5a73da9b1.png differ diff --git a/docs/img/63525543-c86b0800-c4f5-11e9-8820-60d9ff33994f.png b/docs/img/63525543-c86b0800-c4f5-11e9-8820-60d9ff33994f.png new file mode 100644 index 000000000..186018d9a Binary files /dev/null and b/docs/img/63525543-c86b0800-c4f5-11e9-8820-60d9ff33994f.png differ diff --git a/docs/img/63532891-9d87b080-c503-11e9-8ff2-46c7a5b19c12.png b/docs/img/63532891-9d87b080-c503-11e9-8ff2-46c7a5b19c12.png new file mode 100644 index 000000000..68e76757c Binary files /dev/null and b/docs/img/63532891-9d87b080-c503-11e9-8ff2-46c7a5b19c12.png differ diff --git a/docs/img/63533088-02430b00-c504-11e9-9675-bcab7bec825c.png b/docs/img/63533088-02430b00-c504-11e9-9675-bcab7bec825c.png new file mode 100644 index 000000000..09e1a5dab Binary files /dev/null and b/docs/img/63533088-02430b00-c504-11e9-9675-bcab7bec825c.png differ diff --git a/docs/img/63533145-21419d00-c504-11e9-8e80-fb4f53d93b00.png b/docs/img/63533145-21419d00-c504-11e9-8e80-fb4f53d93b00.png new file mode 100644 index 000000000..db5a2275d Binary files /dev/null and b/docs/img/63533145-21419d00-c504-11e9-8e80-fb4f53d93b00.png differ diff --git a/docs/img/63533589-015ea900-c505-11e9-8b77-b45b620cd171.png b/docs/img/63533589-015ea900-c505-11e9-8b77-b45b620cd171.png new file mode 100644 index 000000000..9d8651a79 Binary files /dev/null and b/docs/img/63533589-015ea900-c505-11e9-8b77-b45b620cd171.png differ diff --git a/docs/img/63533613-0facc500-c505-11e9-90e8-94254cef5ce3.png b/docs/img/63533613-0facc500-c505-11e9-90e8-94254cef5ce3.png new file mode 100644 index 000000000..cfc6daf10 Binary files /dev/null and b/docs/img/63533613-0facc500-c505-11e9-90e8-94254cef5ce3.png differ diff --git a/docs/img/63533641-1d624a80-c505-11e9-9cd1-e1d156dd7fc4.png b/docs/img/63533641-1d624a80-c505-11e9-9cd1-e1d156dd7fc4.png new file mode 100644 index 000000000..68139292d Binary files /dev/null and b/docs/img/63533641-1d624a80-c505-11e9-9cd1-e1d156dd7fc4.png differ diff --git a/docs/img/7.png b/docs/img/7.png deleted file mode 100644 index 92f0c1c02..000000000 Binary files a/docs/img/7.png and /dev/null differ diff --git a/docs/img/8.png b/docs/img/8.png deleted file mode 100644 index 0e688d67e..000000000 Binary files a/docs/img/8.png and /dev/null differ diff --git a/docs/img/9.png b/docs/img/9.png deleted file mode 100644 index 350a53603..000000000 Binary files a/docs/img/9.png and /dev/null differ diff --git a/docs/img/add-child-to-parent-object.png b/docs/img/add-child-to-parent-object.png new file mode 100644 index 000000000..86a1c806f Binary files /dev/null and b/docs/img/add-child-to-parent-object.png differ diff --git a/docs/img/all-object-page.png b/docs/img/all-object-page.png new file mode 100644 index 000000000..24e5fad7a Binary files /dev/null and b/docs/img/all-object-page.png differ diff --git a/docs/img/child-capture.png b/docs/img/child-capture.png new file mode 100644 index 000000000..3336ec72e Binary files /dev/null and b/docs/img/child-capture.png differ diff --git a/docs/img/children.png b/docs/img/children.png new file mode 100644 index 000000000..caf88e40f Binary files /dev/null and b/docs/img/children.png differ diff --git a/docs/img/document-to-sign-step-example.png b/docs/img/document-to-sign-step-example.png new file mode 100644 index 000000000..d32531003 Binary files /dev/null and b/docs/img/document-to-sign-step-example.png differ diff --git a/docs/img/exam-object-attributes.png b/docs/img/exam-object-attributes.png new file mode 100644 index 000000000..5fd99463b Binary files /dev/null and b/docs/img/exam-object-attributes.png differ diff --git a/docs/img/form-step-example.png b/docs/img/form-step-example.png new file mode 100644 index 000000000..3a596eed8 Binary files /dev/null and b/docs/img/form-step-example.png differ diff --git a/docs/img/go-to-objects.png b/docs/img/go-to-objects.png new file mode 100644 index 000000000..671da94c8 Binary files /dev/null and b/docs/img/go-to-objects.png differ diff --git a/docs/img/object-attributes.png b/docs/img/object-attributes.png new file mode 100644 index 000000000..c490ca38a Binary files /dev/null and b/docs/img/object-attributes.png differ diff --git a/docs/img/object-edit-overview.png b/docs/img/object-edit-overview.png new file mode 100644 index 000000000..fee93fcf7 Binary files /dev/null and b/docs/img/object-edit-overview.png differ diff --git a/docs/img/piscine-object-attributes.png b/docs/img/piscine-object-attributes.png new file mode 100644 index 000000000..dba2c5586 Binary files /dev/null and b/docs/img/piscine-object-attributes.png differ diff --git a/docs/img/1.png b/docs/img/ubuntu-installation/1.png similarity index 100% rename from docs/img/1.png rename to docs/img/ubuntu-installation/1.png diff --git a/docs/img/2.png b/docs/img/ubuntu-installation/2.png similarity index 100% rename from docs/img/2.png rename to docs/img/ubuntu-installation/2.png diff --git a/docs/img/3.png b/docs/img/ubuntu-installation/3.png similarity index 100% rename from docs/img/3.png rename to docs/img/ubuntu-installation/3.png diff --git a/docs/img/ubuntu-installation/4.png b/docs/img/ubuntu-installation/4.png new file mode 100644 index 000000000..cbeb11ab9 Binary files /dev/null and b/docs/img/ubuntu-installation/4.png differ diff --git a/docs/img/5.png b/docs/img/ubuntu-installation/5.png similarity index 100% rename from docs/img/5.png rename to docs/img/ubuntu-installation/5.png diff --git a/docs/img/ubuntu-installation/6.png b/docs/img/ubuntu-installation/6.png new file mode 100644 index 000000000..bb8ff4923 Binary files /dev/null and b/docs/img/ubuntu-installation/6.png differ diff --git a/docs/img/usb/1.png b/docs/img/usb-configuration/1.png similarity index 100% rename from docs/img/usb/1.png rename to docs/img/usb-configuration/1.png diff --git a/docs/img/usb/2.png b/docs/img/usb-configuration/2.png similarity index 100% rename from docs/img/usb/2.png rename to docs/img/usb-configuration/2.png diff --git a/docs/img/usb/3.png b/docs/img/usb-configuration/3.png similarity index 100% rename from docs/img/usb/3.png rename to docs/img/usb-configuration/3.png diff --git a/docs/img/usb/4.png b/docs/img/usb-configuration/4.png similarity index 100% rename from docs/img/usb/4.png rename to docs/img/usb-configuration/4.png diff --git a/docs/img/usb/5.png b/docs/img/usb-configuration/5.png similarity index 100% rename from docs/img/usb/5.png rename to docs/img/usb-configuration/5.png diff --git a/docs/img/usb/6.png b/docs/img/usb-configuration/6.png similarity index 100% rename from docs/img/usb/6.png rename to docs/img/usb-configuration/6.png diff --git a/docs/img/usb/7.png b/docs/img/usb-configuration/7.png similarity index 100% rename from docs/img/usb/7.png rename to docs/img/usb-configuration/7.png diff --git a/docs/img/usb/8.png b/docs/img/usb-configuration/8.png similarity index 100% rename from docs/img/usb/8.png rename to docs/img/usb-configuration/8.png diff --git a/docs/img/usb/9.png b/docs/img/usb-configuration/9.png similarity index 100% rename from docs/img/usb/9.png rename to docs/img/usb-configuration/9.png diff --git a/docs/modular-steps-management.md b/docs/modular-steps-management.md index 8cc568363..9c1f07b80 100644 --- a/docs/modular-steps-management.md +++ b/docs/modular-steps-management.md @@ -1,77 +1,84 @@ # Sign up & onboarding's Administration section - Modular steps management ## Usage -> After their first authentication in the app, every candidate has to do his **sign up** and his **onboarding**. The steps that compose the **sign up** and the **administration** section of the onboarding are either: -> * Forms (identification, medical information, etc.) -> * Documents to sign (general conditions, charts, regulations, etc.) -> -> All the sections are modular: you can add, update, delete and order them as you wish. -> -> This documentation explains how to manage these steps. + +After their first authentication in the app, every candidate has to do his **sign up** and his **onboarding**. The steps that compose the **sign up** and the **administration** section of the onboarding are either: + +- Forms (identification, medical information, etc.) +- Documents to sign (general conditions, charts, regulations, etc.) + +All the sections are modular: you can add, update, delete and order them as you wish. + +This documentation explains how to manage these steps. ## Create your step child object + ### Create a new object for your step in the admin -> Information is available for object's creation: [Object creation](https://github.com/01-edu/public/blob/master/doc/object-creation.md) -* This object must have the same type as its future parent object (*signup* or *onboarding*). +> Information is available for object's creation: [Object creation](object-creation.md) + +- This object must have the same type as its future parent object (_signup_ or _onboarding_). -> Your step is then available in the *Admin*. You can find it in the section of its type (*SignUp* or *Onboarding*) or thanks to the search bar of the cursus object's page. - +> Your step is then available in the _Admin_. You can find it in the section of its type (_SignUp_ or _Onboarding_) or thanks to the search bar of the cursus object's page. ### Add this new object as a child of your parent's object -* Edit the parent object: *Sign up* or *Administration* +- Edit the parent object: _Sign up_ or _Administration_ -> Information is available for object's creation: [Child object creation](https://github.com/01-edu/public/blob/master/doc/child-object-creation.md) +> Information is available for object's creation: [Child object creation](object-child-creation.md) ## Settings for a `form` step -> In the step object you have created, 2 attributes must be filled: -> 1. Subtype -> 2. Form + +In the step object you have created, 2 attributes must be filled: + +1. Subtype +2. Form ### Description #### Edit the step object you have created : -> in *Object attributes* -Capture d’écran 2019-04-22 à 15 59 33 +> in _Object attributes_ +Capture d’écran 2019-04-22 à 15 59 33 -* Add a new key **subtype** of type `String` with the exact value 'form-step' -* Add a new key **form** of type `Object` - * Form can have several sections. Each section is displayed with a title, and its inputs. - > NB: The submission of the form will check the required inputs of all the sections created for the form. - * To create a section, add a new key to the form object, of type `Object`, that contains: - * A **title** key of type `String`. The value of this property will be the title displayed in the top of the form section. +- Add a new key **subtype** of type `String` with the exact value 'form-step' +- Add a new key **form** of type `Object` + - Form can have several sections. Each section is displayed with a title, and its inputs. + > NB: The submission of the form will check the required inputs of all the sections created for the form. + - To create a section, add a new key to the form object, of type `Object`, that contains: + - A **title** key of type `String`. The value of this property will be the title displayed in the top of the form section. > If there is only one section in the form step, and no section title is needed, this property can be ignored. - * An **inputs** key of type `Object`, which will contain all the inputs of the section. For each wanted input, add a new `Object` element in the "inputs" object. - > The key of this object will be used as the "name" attribute of your input. + - An **inputs** key of type `Object`, which will contain all the inputs of the section. For each wanted input, add a new `Object` element in the "inputs" object. + > The key of this object will be used as the "name" attribute of your input. > The values will be considered as the properties of your input. #### Defining an input: -* A **type** key of type `String` must be declared. It defines the type of the input : `tel`, `text`, `date`, `select`, `radio`, `switch`, `checkbox`, `textarea`, `countries`. -* All other attributes needed for the input can be added to the object, according to the input type: `placeholder`, `id`, `required`, `label`, `items`, `emptyItems`, `index`, etc... - -#### Important indication: -* The **index** property is used to order the inputs. It will not be passed onto the input. Be mindful not to set the same index twice. -* The **type** property is required. It will be used to determine the kind of input should be generated. It is passed onto the input only if the input type attribute is required (type 'tel' or 'text' for example, but not for type 'select' - in this case, we will generate a select element) - - * A special type 'countries' has been added to the classicals. It generate a `Select` (containing all the countries) with a search bar. 'Items' property is handled by the app. - * It's recommended to add 'min' and 'max' properties to input type 'date' (no default value are set). -* `onChange` prop are ignored as the event is handled by the app. -* For `switch` and `checkbox` input types, the default value has to be set as a boolean property named **value**. -* More information for each inputs is available in the design documentation: - * [textInput documentation](https://alem.01-edu.org/design/Components/FormInputs/TextInput) - used for inputs type 'text', 'tel', and 'date' - * [textArea documentation](https://alem.01-edu.org/design/Components/FormInputs/TextArea) - * [select documentation](https://alem.01-edu.org/design/Components/FormControls/Select) - * [radio button documentation](https://alem.01-edu.org/design/Components/FormControls/Radio) - * [switch documentation](https://alem.01-edu.org/design/Components/FormControls/Switch) - * [checkbox documentation](https://alem.01-edu.org/design/Components/FormControls/Checkbox) +- A **type** key of type `String` must be declared. It defines the type of the input : `tel`, `text`, `date`, `select`, `radio`, `switch`, `checkbox`, `textarea`, `countries`. +- All other attributes needed for the input can be added to the object, according to the input type: `placeholder`, `id`, `required`, `label`, `items`, `emptyItems`, `index`, etc... + +#### Important indication: + +- The **index** property is used to order the inputs. It will not be passed onto the input. Be mindful not to set the same index twice. +- The **type** property is required. It will be used to determine the kind of input should be generated. It is passed onto the input only if the input type attribute is required (type 'tel' or 'text' for example, but not for type 'select' - in this case, we will generate a select element) + + - A special type 'countries' has been added to the classicals. It generate a `Select` (containing all the countries) with a search bar. 'Items' property is handled by the app. + - It's recommended to add 'min' and 'max' properties to input type 'date' (no default value are set). + +- `onChange` prop are ignored as the event is handled by the app. +- For `switch` and `checkbox` input types, the default value has to be set as a boolean property named **value**. +- More information for each inputs is available in the design documentation: + - [textInput documentation](https://01.alem.school/design/Components/FormInputs/TextInput) - used for inputs type 'text', 'tel', and 'date' + - [textArea documentation](https://01.alem.school/design/Components/FormInputs/TextArea) + - [select documentation](https://01.alem.school/design/Components/FormControls/Select) + - [radio button documentation](https://01.alem.school/design/Components/FormControls/Radio) + - [switch documentation](https://01.alem.school/design/Components/FormControls/Switch) + - [checkbox documentation](https://01.alem.school/design/Components/FormControls/Checkbox) ### Examples -Here is an example of the form step's attributes. It presents a form with two sections, and an example of each kind of input type. +Here is an example of the form step's attributes. It presents a form with two sections, and an example of each kind of input type. > NB : this example object is provided in the admin, in the onboarding section: 'Form step example'. @@ -173,14 +180,14 @@ Here is an example of the form step's attributes. It presents a form with two se This 'form' step would look like this: - -![form step example](https://user-images.githubusercontent.com/35296671/56816457-7cf06800-683b-11e9-9003-6f83b4545033.png) +![form-step-example](img/form-step-example.png) ## Settings for a `document to sign` step + The newly created child can be customized with these attributes : | name | fullfillment | -| ---------- | --------- | +| ---------- | ------------ | | subtype | **required** | | text | **required** | | buttonText | optionnal | @@ -191,21 +198,21 @@ The newly created child can be customized with these attributes : #### To set up the child object you have created with these elements: 1. Edit you step object -2. Go to *Object attributes* +2. Go to _Object attributes_ 3. Add the following attributes: - * Add a new key **subtype** of type `String` with the exact value 'sign-step' - * Add a new key **text** of type `String` with the text of your document to sign as value - * Add a new key **buttonText** of type `String` with the text that you want to display in the submit button of your step. Default value for this attribute is 'Sign'. - * Add a new key **checkbox** of type `Object`, if the user has to be forced to click on a checkbox before validating his document (ex: 'I have read and accepted the conditions'). In the checkbox object, the following attributes should be defined: - * A **label** key of type `String`, for the text associated to the checkbox - * A **required** key of type `Boolean`, set at true if the user has to check it - * A **name** key of type `String` - * All other attributes wanted for the checkbox. - * Add a new key **link** of type `Object`, if a link must be added to the step (ex: download of a .pdf version of the document to sign). In the link object, the following attributes should be defined: - * A **href** key of type `String`, with the link you want to add to the step - * A **label** key of type `String`, for the text displayed for the link (by default, '> Link to the document' is displayed) - * All other attributes wanted for the link. + - Add a new key **subtype** of type `String` with the exact value 'sign-step' + - Add a new key **text** of type `String` with the text of your document to sign as value + - Add a new key **buttonText** of type `String` with the text that you want to display in the submit button of your step. Default value for this attribute is 'Sign'. + - Add a new key **checkbox** of type `Object`, if the user has to be forced to click on a checkbox before validating his document (ex: 'I have read and accepted the conditions'). In the checkbox object, the following attributes should be defined: + - A **label** key of type `String`, for the text associated to the checkbox + - A **required** key of type `Boolean`, set at true if the user has to check it + - A **name** key of type `String` + - All other attributes wanted for the checkbox. + - Add a new key **link** of type `Object`, if a link must be added to the step (ex: download of a .pdf version of the document to sign). In the link object, the following attributes should be defined: + - A **href** key of type `String`, with the link you want to add to the step + - A **label** key of type `String`, for the text displayed for the link (by default, '> Link to the document' is displayed) + - All other attributes wanted for the link. ### Examples @@ -217,22 +224,21 @@ Here is an example of the structure a 'document to sign' step could have: "text": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent ornare non sem eu pretium. Integer porttitor risus eget nibh iaculis, ac lacinia orci dictum. Nunc ullamcorper consequat enim in posuere. Aliquam volutpat est odio, vel maximus arcu maximus sit amet. Donec ultricies faucibus magna id luctus. Duis et dapibus elit. In vestibulum ipsum erat, at commodo tortor convallis vel. Nunc ut ultrices nulla. Etiam lorem justo, consequat a consectetur a, porttitor non turpis. Mauris eu mollis nisl, id dignissim quam. Curabitur condimentum sollicitudin rutrum. Aenean blandit, arcu nec ullamcorper rhoncus, lectus sem lacinia lorem, venenatis dignissim velit mi et sapien. Nullam posuere augue ut magna ullamcorper dignissim. Ut rhoncus sapien vel nulla commodo finibus. Cras non leo vel urna finibus volutpat. Praesent et ex eget diam tincidunt suscipit. Phasellus bibendum neque vel placerat iaculis. Vestibulum bibendum ultrices ipsum, non sodales lectus. Cras eget orci eget elit blandit scelerisque at ut nulla. Integer ligula eros, eleifend quis sodales a, porttitor sit amet neque. Fusce mollis magna at lectus varius, quis suscipit mi cursus. Etiam id imperdiet metus, in malesuada quam. Aliquam facilisis nunc non sapien condimentum, quis iaculis nisl auctor. Nunc lorem sapien, interdum vel efficitur ac, dapibus a diam. Ut ante urna, sodales in bibendum vel, lacinia ut mauris. In vel placerat leo. In libero dui, tincidunt at sem id, faucibus sollicitudin elit.", "buttonText": "Sign chart", "checkbox": { - "name":"acceptChart", - "label":"I have read and accepted the Chart 01", - "required":true + "name": "acceptChart", + "label": "I have read and accepted the Chart 01", + "required": true }, "link": { - "label":"Download Chart 01", - "href":"https://help.github.com/en/articles/creating-an-issue", - "download":true, - "target":"_blank" + "label": "Download Chart 01", + "href": "https://help.github.com/en/articles/creating-an-issue", + "download": true, + "target": "_blank" } } ``` -NB : ```target``` & ```download``` are forwarded to the a html element as they are valid html properties +NB : `target` & `download` are forwarded to the a html element as they are valid html properties This 'document to sign' step would look like this: -![document to sign step example](https://user-images.githubusercontent.com/35296671/61788887-29c28d00-ae0b-11e9-872c-71a7d1ddbe09.png) - +![document-to-sign-step-example](img/document-to-sign-step-example.png) diff --git a/docs/object-attribute-reference.md b/docs/object-attribute-reference.md index a35f4867a..6012b609d 100644 --- a/docs/object-attribute-reference.md +++ b/docs/object-attribute-reference.md @@ -1,20 +1,21 @@ # Object Attribute Reference + ## List all **USABLE** preset object attributes -| Attribute | Type | Value | Description | -|-------------------|-----------|-------|-------------| -| `xp` | function | `exerciceExpCalculation`, `examExpCalculation` or `raidExpCalculation` | Amount of exeperience points that an object will give. | -| `correctionPrice` | function | `correctionPrice` | Amount of correction points needed to test an exercise. | -| `duration` | number | | | -| `time` | string | | | -| `info` | object | | | +| Attribute | Type | Value | Description | +| ----------------- | -------- | ---------------------------------------------------------------------- | ------------------------------------------------------- | +| `xp` | function | `exerciceExpCalculation`, `examExpCalculation` or `raidExpCalculation` | Amount of experience points that an object will give. | +| `correctionPrice` | function | `correctionPrice` | Amount of correction points needed to test an exercise. | +| `duration` | number | | | +| `time` | string | | | +| `info` | object | | | ## List all **RESERVED** preset object attributes -| Attribute | Type | Value | Description | -|-------------------|-----------|-------|-------------| -| `scopeStart` | function | | | -| `scopeEnd` | function | | | -| `startDay` | function | | | -| `status` | function | | | -| `week` | function | | | +| Attribute | Type | Value | Description | +| ------------ | -------- | ----- | ----------- | +| `scopeStart` | function | | | +| `scopeEnd` | function | | | +| `startDay` | function | | | +| `status` | function | | | +| `week` | function | | | diff --git a/docs/object-attribute-system.md b/docs/object-attribute-system.md index 8aea0fc16..5f403bc48 100644 --- a/docs/object-attribute-system.md +++ b/docs/object-attribute-system.md @@ -23,7 +23,7 @@ Once created, the new attributes appears right bellow and the ability to associa Any attribute can be delete by clicking on the 'trash' icon on the right hand of it. Here an example of how the section looks like. -![object-attributes](https://user-images.githubusercontent.com/15313830/56677487-88675600-66b8-11e9-9781-26dc0ee6301d.png) +![object-attributes](img/object-attributes.png) ## Attributes and RelationShips @@ -49,10 +49,10 @@ The following json shows how the object would be represented: ``` Children -![children](https://user-images.githubusercontent.com/15313830/56679319-b189e580-66bc-11e9-8f2a-3d51eb1486d4.png) +![children](img/children.png) Child -![chilld-capture](https://user-images.githubusercontent.com/15313830/56679320-b189e580-66bc-11e9-90ab-c8f69f531876.png) +![child-capture](img/child-capture.png) ## Detailed example @@ -151,12 +151,15 @@ All done, now when rendering an object, attributes are merged like so: ``` First we apply the **default attributes** from the referenced object. + > Here `duration` and `language` are applied. Then we apply the **children attributes** to every child. + > In this case we override every `duration` to 4800 and add the new `xp` attribute. After that we apply the **relation attributes**, that are the most specific and as such, override all others attributes. + > In this case only the `printalphabet` relation had attributes and so we apply -the given `duration` to the final merged object. +> the given `duration` to the final merged object. diff --git a/docs/object-child-creation.md b/docs/object-child-creation.md index 45c8d7e86..fd02a2169 100644 --- a/docs/object-child-creation.md +++ b/docs/object-child-creation.md @@ -1,33 +1,40 @@ # Admin object's management - create a child object ## Usage -> Objects of the Admin can be configured : -> * By setting particular **attributes** to the object -> * By associating **children** to the object -> -> Children can be added, deleted, reordered in the list. Also, it's possible to configure it in a special way for the parent object, by setting children attributes for all the children. -> -> This documentation explains how to associate a child to a parent object. + +Objects of the Admin can be configured : + +- By setting particular **attributes** to the object +- By associating **children** to the object + +Children can be added, deleted, reordered in the list. Also, it's possible to configure it in a special way for the parent object, by setting children attributes for all the children. + +This documentation explains how to associate a child to a parent object. ### Create a new object for your child in the admin -> Information is available for object's creation: [Modular step management](https://github.com/01-edu/public/blob/master/doc/object-creation.md) + +> Information is available for object's creation: [Object Creation](object-creation.md) ### Add this new object as a child of your parent's object #### 1. Edit the parent object -Capture d’écran 2019-04-22 à 19 24 23 -Capture d’écran 2019-04-22 à 19 24 10 -#### 2. Go to *Children* > *Add a child* -![add child to parent object](https://user-images.githubusercontent.com/35296671/56506977-de50c800-6517-11e9-9c71-d19a1ec4e5cd.png) +Capture d’écran 2019-04-22 à 19 24 23 +Capture d’écran 2019-04-22 à 19 24 10 + +#### 2. Go to _Children_ > _Add a child_ + +![add-child-to-parent-object](img/add-child-to-parent-object.png) #### 3. Set up the new child: -* Enter its name in the input "Add a child name" -* Select your step object in the select input -* Click on "ADD" - -> Your step is then related to its parent. You can see it in the *Children* section of the parent's object. There, you can now: -> * Delete the child from its parent (the actual object of your child will not be deleted). -> * Reorder it in the children's list, by dragging it to the place you want. -> * Update its original settings by clicking on the eye icon of its reference (redirection to object edit page of the child). -Capture d’écran 2019-04-22 à 19 51 12 + +- Enter its name in the input "Add a child name" +- Select your step object in the select input +- Click on "ADD" + +Your step is then related to its parent. You can see it in the _Children_ section of the parent's object. There, you can now: + +- Delete the child from its parent (the actual object of your child will not be deleted). +- Reorder it in the children's list, by dragging it to the place you want. +- Update its original settings by clicking on the eye icon of its reference (redirection to object edit page of the child). + Capture d’écran 2019-04-22 à 19 51 12 diff --git a/docs/object-creation.md b/docs/object-creation.md index 1fa5d31f4..4723f7845 100644 --- a/docs/object-creation.md +++ b/docs/object-creation.md @@ -1,53 +1,58 @@ # Admin object's management - create an object ## Usage -> Elements of the app are managed through objects in *Admin*. -> Objects of the Admin are first created and defined: -> * By their **title**, -> * By their **type**. +Elements of the app are managed through objects in _Admin_. -> Then it can be configured through: -> * Attributes, -> * Children. +Objects of the Admin are first created and defined: -> This documentation explains how to create an object. +- By their **title**, +- By their **type**. + +Then it can be configured through: + +- Attributes, +- Children. + +> This documentation explains how to create an object. ### Create a new object in the admin -> (in *Admin* > *Add new object*) - -Capture d’écran 2019-04-22 à 15 57 37 -Capture d’écran 2019-04-22 à 15 58 21 - - -* The **title** of your object will be the title displayed to your candidates. Use an intellegible title for your user. - > NB: you can always edit it in the *Admin* - -* The **type** depends on the nature of your object: - * **Campus** is used to declare a school. - * Examples: *Alem*, *Madeira*, etc. - * Campus can contains cursus: *Alem* contains for example *01-classical* and *Piscine Go*. - * **Cursus** is used to declare a course. - * Examples: *01-classical*, *Piscine Go*, etc. - * Cursuses can contains cursuses: the main cursus *01-classical*, for example, contains cursuses like *Piscine Go*, but also all the branches that the student have access to, as *Web*, *Security*, *Algorythm*, *Design*, etc. - * Cursuses can contains quests: *Piscine Go* of *01-classical* contains quests like *Quest 1* or *Quest 2*. - * **Quest** is used to declare a project. - * Examples: *Quest 1*, *Quest 2*, etc. - * Quest contains exercises: *Quest 1* of *Piscine Go* contains exercises like *printalphabet* or *printcomb*. - * Exercise is used to declare exercises - * Examples: *printalphabet*, *printcomb*, *atoi*, etc. - * Exercises doesn't contains any children. - * Signup is used to declare steps of the registration. - * Examples: *Using our services*, *Tell us more about you*, etc. - * One major object *Sign up* contains all the sign up's modular steps : *Using our services*, *Tell us more about you*, etc. - * Onbaording is used to declare steps of the onbaording. - * Examples: *Toad*, *Administration*, *Additional Informations*, *Chart 01*, etc. - * Three main objects define the major steps of the onboarding : *Toad*, *Administration*, *Piscine*. - * *Administration* contains modular steps: *Additional Informations*, *Chart 01*, etc. - -> The child object is then available in the *Admin*. It can be found in the section of its type or thanks to the search bar of the cursus object's page. - -> More information is available: -> * for setting attributes of an object: (soon available) -> * for setting children of an object: [Child object creation](https://github.com/01-edu/public/blob/master/doc/child-object-creation.md) -> * for creation of modular steps in Sign up and onboarding's Administration object: [Modular step management](https://github.com/01-edu/public/blob/master/doc/modular-steps-management.md) + +> (in _Admin_ > _Add new object_) + +Capture d’écran 2019-04-22 à 15 57 37 +Capture d’écran 2019-04-22 à 15 58 21 + +- The **title** of your object will be the title displayed to your candidates. Use an intellegible title for your user. + + > NB: you can always edit it in the _Admin_ + +- The **type** depends on the nature of your object: + - **Campus** is used to declare a school. + - Examples: _Alem_, _Madeira_, etc. + - Campus can contains cursus: _Alem_ contains for example _01-classical_ and _Piscine Go_. + - **Cursus** is used to declare a course. + - Examples: _01-classical_, _Piscine Go_, etc. + - Cursuses can contains cursuses: the main cursus _01-classical_, for example, contains cursuses like _Piscine Go_, but also all the branches that the student have access to, as _Web_, _Security_, _Algorythm_, _Design_, etc. + - Cursuses can contains quests: _Piscine Go_ of _01-classical_ contains quests like _Quest 1_ or _Quest 2_. + - **Quest** is used to declare a project. + - Examples: _Quest 1_, _Quest 2_, etc. + - Quest contains exercises: _Quest 1_ of _Piscine Go_ contains exercises like _printalphabet_ or _printcomb_. + - Exercise is used to declare exercises + - Examples: _printalphabet_, _printcomb_, _atoi_, etc. + - Exercises doesn't contains any children. + - Signup is used to declare steps of the registration. + - Examples: _Using our services_, _Tell us more about you_, etc. + - One major object _Sign up_ contains all the sign up's modular steps : _Using our services_, _Tell us more about you_, etc. + - Onbaording is used to declare steps of the onbaording. + - Examples: _Toad_, _Administration_, _Additional Informations_, _Chart 01_, etc. + - Three main objects define the major steps of the onboarding : _Toad_, _Administration_, _Piscine_. + - _Administration_ contains modular steps: _Additional Informations_, _Chart 01_, etc. + +The child object is then available in the _Admin_. It can be found in the section of its type or thanks to the search bar of the cursus object's page. + +More information is available: + +- for setting attributes of an object: (soon available) +- for setting children of an object: [Child object creation](object-child-creation.md) +- for creation of modular steps in Sign up and onboarding's Administration object: [Modular step management](modular-steps-management.md) diff --git a/docs/object-edit.md b/docs/object-edit.md index 272ca098c..5434d1c53 100644 --- a/docs/object-edit.md +++ b/docs/object-edit.md @@ -4,31 +4,31 @@ ## Page Composition -![object-edit-overview](https://user-images.githubusercontent.com/15313830/56667480-ceff8500-66a5-11e9-98c7-792d598f2394.png) +![object-edit-overview](img/object-edit-overview.png) ### Pin 1 -- Link back to the "Objects" page ; -- Editable name field, hit 'enter' or 'cmd + s' or click on the floppy-disk icon to save ; -- Major dependencies visualisation, (where my object is used as a child), click the label to navigate to the dependence ; -- External URL, this is an optional parameter, it's use to point at an other source of content or information needed by the object. We generaly use to point at a Git repository ; +- Link back to the "Objects" page ; +- Editable name field, hit 'enter' or 'cmd + s' or click on the floppy-disk icon to save ; +- Major dependencies visualisation, (where my object is used as a child), click the label to navigate to the dependence ; +- External URL, this is an optional parameter, it's use to point at an other source of content or information needed by the object. We generaly use to point at a Git repository ; ### Pin 2 -- Delete Button, Warning there, it will destroy your object! ; -- Type of your Object (`organisation`, `campus`, `onboarding`, `cursus`, `quest`, `exercise`), save on select ; -- Status of your Object (`draft`, `online`, `offline`), save on select ; -- The first and last name of the original author ; +- Delete Button, Warning there, it will destroy your object! ; +- Type of your Object (`organisation`, `campus`, `onboarding`, `cursus`, `quest`, `exercise`), save on select ; +- Status of your Object (`draft`, `online`, `offline`), save on select ; +- The first and last name of the original author ; ### Pin 3 -- Object Attribute edition area, manage all the attributes relative to this Object. These attributes will be exposed to its relationship ; +- Object Attribute edition area, manage all the attributes relative to this Object. These attributes will be exposed to its relationship ; ### Pin 4 -- Object Children edition area ; -- Children Attributes edition area, these attributes impact and overload all the following children. Works the same way as standard attributes ; -- Add a child, allows to add a child to the children list, more information here -> [Object Child creation](https://github.com/01-edu/public/blob/master/doc/object-child-creation.md) ; -- Children List, allows you to reorganise, delete and edit child. Each child can be overload with its own attributes, the edition works the same way as the original attributes ; +- Object Children edition area ; +- Children Attributes edition area, these attributes impact and overload all the following children. Works the same way as standard attributes ; +- Add a child, allows to add a child to the children list, more information here -> [Object Child creation](object-child-creation.md) ; +- Children List, allows you to reorganise, delete and edit child. Each child can be overload with its own attributes, the edition works the same way as the original attributes ; -More informations about attribute overload system [here] ((https://github.com/01-edu/public/blob/master/doc/object-attribute-overload-system.md) +More informations about attribute overload system [here](object-attribute-system.md) diff --git a/docs/objects.md b/docs/objects.md index 21cb3a7a7..81414db7e 100644 --- a/docs/objects.md +++ b/docs/objects.md @@ -11,19 +11,19 @@ It structure can be visualized in two parts. The first one is the definition of This is the minimal structure of an object: -- name -- type (`organisation`, `campus`, `onboarding`, `cursus`, `quest`, `exercise`) -- status (`draft`, `online`, `offline`) -- attrs {} -- childrenAttrs {} -- children {} +- name +- type (`organisation`, `campus`, `onboarding`, `cursus`, `quest`, `exercise`) +- status (`draft`, `online`, `offline`) +- attrs {} +- childrenAttrs {} +- children {} ## Browse Objects: To access your Objects, go to the admin dashboard and then click on the _manage object_ link within the "Object" card. -![go-to-objects](https://user-images.githubusercontent.com/15313830/56653756-46bdb780-6686-11e9-98ba-18e382987e9c.png) +![go-to-objects](img/go-to-objects.png) Objects are sorted by type in different sections. This page offer a search bar that allow you query the objects by name. In the top-right corner, click the _add a new object_ button to create a new object. Fill a name, select a type and click _create_ to validate your creation. You will be redirected to the Object Edition page (document is here). -![all-object-page](https://user-images.githubusercontent.com/15313830/56654475-137c2800-6688-11e9-880b-75092397890d.png) +![all-object-page](img/all-object-page.png) diff --git a/docs/os-deployment.md b/docs/os-deployment.md new file mode 100644 index 000000000..a572ab6df --- /dev/null +++ b/docs/os-deployment.md @@ -0,0 +1,30 @@ +# OS Deployment + +## Image creation steps + +- [Installation of Ubuntu](ubuntu-installation.md) + - minimal OS installation (downloads ~200 MB) + - Software installation (downloads ~900 MB) + - Optimization + - improve speed + - reduce image size + - reduce power (CPU) & memory usage + - reduce surface of attack + - reduce bandwidth usage + - Customization + - machine-dependent (drivers, bug workarounds...) + - time zone of the school + - school scripts + - Cleaning + - logs + - temporary files + - histories + - caches + - auto-generated IDs +- Preparation of the disk image + - zero unallocated space of filesystem (~7 GB of data remains) + - (optional) create compressed image with [lz4](https://lz4.github.io/lz4) (the resulting image is ~3.2 GB) + +## Network installation + +- Boot through PXE [UDPcast](http://udpcast.linux.lu) which allows an efficient transfer of the disk image (using multicast or broadcast) diff --git a/docs/piscine-go-curriculum.md b/docs/piscine-go-curriculum.md index 16198562b..23c912464 100644 --- a/docs/piscine-go-curriculum.md +++ b/docs/piscine-go-curriculum.md @@ -12,27 +12,27 @@ Notions: basic usage and interaction with a command line terminal. Videos: -- 1-2 Curl with the GitHub api and Example of Sh file | https://www.youtube.com/watch?v=A0Mqc215igw -- 1-3 Touch , Chmod and Echo | https://www.youtube.com/watch?v=21h-vsuXgDU -- 1-4 find and grep | https://www.youtube.com/watch?v=7a1JSWHhJlM -- 1-5 cut sed and tr | https://www.youtube.com/watch?v=Nil7rVP3eMI -- 1-6 jq and wc | https://www.youtube.com/watch?v=cQmcaOseuiA& +- 1-2 `curl` with the GitHub api and Example of shell file | https://www.youtube.com/watch?v=A0Mqc215igw +- 1-3 `touch`, `chmod` and `echo` | https://www.youtube.com/watch?v=21h-vsuXgDU +- 1-4 `find` and `grep` | https://www.youtube.com/watch?v=7a1JSWHhJlM +- 1-5 `cut`, `sed` and `tr` | https://www.youtube.com/watch?v=Nil7rVP3eMI +- 1-6 `jq` and `wc` | https://www.youtube.com/watch?v=cQmcaOseuiA& Exercices: -- introduction | https://public.01-edu.org/subjects/introduction.en -- make-it-better | https://public.01-edu.org/subjects/make-it-better.en -- to-git-or-not-to-git | https://public.01-edu.org/subjects/to-git-or-not-to-git.en -- who-are-you | https://public.01-edu.org/subjects/who-are-you.en -- cl-camp1 | https://public.01-edu.org/subjects/cl-camp1.en -- cl-camp2 | https://public.01-edu.org/subjects/cl-camp2.en -- cl-camp3 | https://public.01-edu.org/subjects/cl-camp3.en -- cl-camp4 | https://public.01-edu.org/subjects/cl-camp4.en -- cl-camp5 | https://public.01-edu.org/subjects/cl-camp5.en -- cl-camp6 | https://public.01-edu.org/subjects/cl-camp6.en -- cl-camp7 | https://public.01-edu.org/subjects/cl-camp7.en -- cl-camp8 | https://public.01-edu.org/subjects/cl-camp8.en -- now-get-to-work | https://public.01-edu.org/subjects/now-get-to-work.en +- introduction | https://public.01-edu.org/subjects/introduction.en +- make-it-better | https://public.01-edu.org/subjects/make-it-better.en +- to-git-or-not-to-git | https://public.01-edu.org/subjects/to-git-or-not-to-git.en +- who-are-you | https://public.01-edu.org/subjects/who-are-you.en +- cl-camp1 | https://public.01-edu.org/subjects/cl-camp1.en +- cl-camp2 | https://public.01-edu.org/subjects/cl-camp2.en +- cl-camp3 | https://public.01-edu.org/subjects/cl-camp3.en +- cl-camp4 | https://public.01-edu.org/subjects/cl-camp4.en +- cl-camp5 | https://public.01-edu.org/subjects/cl-camp5.en +- cl-camp6 | https://public.01-edu.org/subjects/cl-camp6.en +- cl-camp7 | https://public.01-edu.org/subjects/cl-camp7.en +- cl-camp8 | https://public.01-edu.org/subjects/cl-camp8.en +- now-get-to-work | https://public.01-edu.org/subjects/now-get-to-work.en ### Quest 2 @@ -42,21 +42,21 @@ Notions: Variables declaration, Loops, if and else statement, usage of z01.Print Videos: -- 02-01-If and Else Statements in Go | https://www.youtube.com/watch?v=rnF1_SfeGE4 -- 02-02-ForLoops | https://www.youtube.com/watch?v=Bt47lx6q2-4 -- 02-03-PrintRune function | https://www.youtube.com/watch?v=o8JrvI3jqoM -- 02-04-Variables Declaration and ascii | https://www.youtube.com/watch?v=RCNOV8m0hJQ +- 02-01-If and Else Statements in Go | https://www.youtube.com/watch?v=rnF1_SfeGE4 +- 02-02-ForLoops | https://www.youtube.com/watch?v=Bt47lx6q2-4 +- 02-03-PrintRune function | https://www.youtube.com/watch?v=o8JrvI3jqoM +- 02-04-Variables Declaration and ascii | https://www.youtube.com/watch?v=RCNOV8m0hJQ Exercices: -- printalphabet | https://public.01-edu.org/subjects/printalphabet.en -- printreversealphabet | https://public.01-edu.org/subjects/printreversealphabet.en -- prindigits | https://public.01-edu.org/subjects/printdigits.en -- isnegative | https://public.01-edu.org/subjects/isnegative.en -- printcomb | https://public.01-edu.org/subjects/printcomb.en -- printcomb2 | https://public.01-edu.org/subjects/printcomb2.en -- printnbr | https://public.01-edu.org/subjects/printnbr.en -- printcombn | https://public.01-edu.org/subjects/printcombn.en +- printalphabet | https://public.01-edu.org/subjects/printalphabet.en +- printreversealphabet | https://public.01-edu.org/subjects/printreversealphabet.en +- prindigits | https://public.01-edu.org/subjects/printdigits.en +- isnegative | https://public.01-edu.org/subjects/isnegative.en +- printcomb | https://public.01-edu.org/subjects/printcomb.en +- printcomb2 | https://public.01-edu.org/subjects/printcomb2.en +- printnbr | https://public.01-edu.org/subjects/printnbr.en +- printcombn | https://public.01-edu.org/subjects/printcombn.en ### Quest 3 @@ -66,25 +66,25 @@ Notions: String Manupulation, Range Loops, Pointers, Modulo and Division relativ Videos: -- 03-01-StringsManipulation | https://www.youtube.com/watch?v=8LplJN_8iOU -- 03-02-RangeLoop | https://www.youtube.com/watch?v=i89N4cjh1-g -- 03-03-Pointers on variables | https://www.youtube.com/watch?v=owVPa5b1BMc -- 03-04-Modulo and Division | https://www.youtube.com/watch?v=NVan-9-Ioec +- 03-01-StringsManipulation | https://www.youtube.com/watch?v=8LplJN_8iOU +- 03-02-RangeLoop | https://www.youtube.com/watch?v=i89N4cjh1-g +- 03-03-Pointers on variables | https://www.youtube.com/watch?v=owVPa5b1BMc +- 03-04-Modulo and Division | https://www.youtube.com/watch?v=NVan-9-Ioec Exercices: -- pointone | https://public.01-edu.org/subjects/pointone.en -- ultimatepointone | https://public.01-edu.org/subjects/ultimatepointone.en -- divmod | https://public.01-edu.org/subjects/divmod.en -- ultimatedivmod | https://public.01-edu.org/subjects/ultimatedivmod.en -- printstr | https://public.01-edu.org/subjects/printstr.en -- strlen | https://public.01-edu.org/subjects/strlen.en -- swap | https://public.01-edu.org/subjects/swap.en -- strrev | https://public.01-edu.org/subjects/strrev.en -- basicatoi | https://public.01-edu.org/subjects/basicatoi.en -- basicatoi2 | https://public.01-edu.org/subjects/basicatoi2.en -- atoi | https://public.01-edu.org/subjects/atoi.en -- sortintegerable | https://public.01-edu.org/subjects/sortintegertable.en +- pointone | https://public.01-edu.org/subjects/pointone.en +- ultimatepointone | https://public.01-edu.org/subjects/ultimatepointone.en +- divmod | https://public.01-edu.org/subjects/divmod.en +- ultimatedivmod | https://public.01-edu.org/subjects/ultimatedivmod.en +- printstr | https://public.01-edu.org/subjects/printstr.en +- strlen | https://public.01-edu.org/subjects/strlen.en +- swap | https://public.01-edu.org/subjects/swap.en +- strrev | https://public.01-edu.org/subjects/strrev.en +- basicatoi | https://public.01-edu.org/subjects/basicatoi.en +- basicatoi2 | https://public.01-edu.org/subjects/basicatoi2.en +- atoi | https://public.01-edu.org/subjects/atoi.en +- sortintegerable | https://public.01-edu.org/subjects/sortintegertable.en ### Exam 1 (4hours) @@ -106,19 +106,19 @@ Notions: Iterative and recursive programmation Videos: -- 04-01-Iterativity and Recursivity | https://www.youtube.com/watch?v=oCZDdAID5Ik +- 04-01-Iterativity and Recursivity | https://www.youtube.com/watch?v=oCZDdAID5Ik Exercices: -- iterativefactorial | https://public.01-edu.org/subjects/iterativefactorial.en -- recursivefactorial | https://public.01-edu.org/subjects/recursivefactorial.en -- iterativepower | https://public.01-edu.org/subjects/iterativepower.en -- recursivepower | https://public.01-edu.org/subjects/recursivepower.en -- fibonacci | https://public.01-edu.org/subjects/fibonacci.en -- sqrt | https://public.01-edu.org/subjects/sqrt.en -- isprime | https://public.01-edu.org/subjects/isprime.en -- findnextprime | https://public.01-edu.org/subjects/findnextprime.en -- eightqueens | https://public.01-edu.org/subjects/eightqueens.en +- iterativefactorial | https://public.01-edu.org/subjects/iterativefactorial.en +- recursivefactorial | https://public.01-edu.org/subjects/recursivefactorial.en +- iterativepower | https://public.01-edu.org/subjects/iterativepower.en +- recursivepower | https://public.01-edu.org/subjects/recursivepower.en +- fibonacci | https://public.01-edu.org/subjects/fibonacci.en +- sqrt | https://public.01-edu.org/subjects/sqrt.en +- isprime | https://public.01-edu.org/subjects/isprime.en +- findnextprime | https://public.01-edu.org/subjects/findnextprime.en +- eightqueens | https://public.01-edu.org/subjects/eightqueens.en ### Quest 5 @@ -128,28 +128,28 @@ Notions: String Manipulation and medium-advanced algorithmia Videos: -- 05-01-Runes, Bytes and Strings | https://www.youtube.com/watch?v=-eIU5ISID64 +- 05-01-Runes, Bytes and Strings | https://www.youtube.com/watch?v=-eIU5ISID64 Exercices: -- firstrune | https://public.01-edu.org/subjects/firstrune.en -- nrune | https://public.01-edu.org/subjects/nrune.en -- lastrune | https://public.01-edu.org/subjects/lastrune.en -- index | https://public.01-edu.org/subjects/index.en -- compare | https://public.01-edu.org/subjects/compare.en -- toupper | https://public.01-edu.org/subjects/toupper.en -- tolower | https://public.01-edu.org/subjects/tolower.en -- capitalize | https://public.01-edu.org/subjects/capitalize.en -- isalpha | https://public.01-edu.org/subjects/isalpha.en -- isnumeric | https://public.01-edu.org/subjects/isnumeric.en -- islower | https://public.01-edu.org/subjects/islower.en -- isupper | https://public.01-edu.org/subjects/isupper.en -- isprintable | https://public.01-edu.org/subjects/isprintable.en -- concat | https://public.01-edu.org/subjects/concat.en -- basicjoin | https://public.01-edu.org/subjects/basicjoin.en -- join | https://public.01-edu.org/subjects/join.en -- printnbrbase | https://public.01-edu.org/subjects/printnbrbase.en -- atoibase | https://public.01-edu.org/subjects/atoibase.en +- firstrune | https://public.01-edu.org/subjects/firstrune.en +- nrune | https://public.01-edu.org/subjects/nrune.en +- lastrune | https://public.01-edu.org/subjects/lastrune.en +- index | https://public.01-edu.org/subjects/index.en +- compare | https://public.01-edu.org/subjects/compare.en +- toupper | https://public.01-edu.org/subjects/toupper.en +- tolower | https://public.01-edu.org/subjects/tolower.en +- capitalize | https://public.01-edu.org/subjects/capitalize.en +- isalpha | https://public.01-edu.org/subjects/isalpha.en +- isnumeric | https://public.01-edu.org/subjects/isnumeric.en +- islower | https://public.01-edu.org/subjects/islower.en +- isupper | https://public.01-edu.org/subjects/isupper.en +- isprintable | https://public.01-edu.org/subjects/isprintable.en +- concat | https://public.01-edu.org/subjects/concat.en +- basicjoin | https://public.01-edu.org/subjects/basicjoin.en +- join | https://public.01-edu.org/subjects/join.en +- printnbrbase | https://public.01-edu.org/subjects/printnbrbase.en +- atoibase | https://public.01-edu.org/subjects/atoibase.en ### Quest 6 @@ -159,14 +159,14 @@ Notions: Arguments manipulation in programs Videos: -- 06-01-Os.Args | https://www.youtube.com/watch?v=I1xt_TLRhF0 +- 06-01-Os.Args | https://www.youtube.com/watch?v=I1xt_TLRhF0 Exercices: -- printprogramname | https://public.01-edu.org/subjects/printprogramname.en -- printparams | https://public.01-edu.org/subjects/printparams.en -- revparams | https://public.01-edu.org/subjects/revparams.en -- sortparams | https://public.01-edu.org/subjects/sortparams.en +- printprogramname | https://public.01-edu.org/subjects/printprogramname.en +- printparams | https://public.01-edu.org/subjects/printparams.en +- revparams | https://public.01-edu.org/subjects/revparams.en +- sortparams | https://public.01-edu.org/subjects/sortparams.en ### Quest 7 @@ -176,17 +176,17 @@ Notions: Usage of Make and Append Videos: -- 07-01-Make and Append methods | https://www.youtube.com/watch?v=2HHVUM0YQuI +- 07-01-Make and Append methods | https://www.youtube.com/watch?v=2HHVUM0YQuI Exercices: -- appendrange | https://public.01-edu.org/subjects/apprendrange.en -- makerange | https://public.01-edu.org/subjects/makerange.en -- concatparams | https://public.01-edu.org/subjects/concatparams.en -- splitwhitespaces | https://public.01-edu.org/subjects/splitwhitespaces.en -- printwordstables | https://public.01-edu.org/subjects/printwordstables.en -- convertbase | https://public.01-edu.org/subjects/converbase.en -- split | https://public.01-edu.org/subjects/split.en +- appendrange | https://public.01-edu.org/subjects/apprendrange.en +- makerange | https://public.01-edu.org/subjects/makerange.en +- concatparams | https://public.01-edu.org/subjects/concatparams.en +- splitwhitespaces | https://public.01-edu.org/subjects/splitwhitespaces.en +- printwordstables | https://public.01-edu.org/subjects/printwordstables.en +- convertbase | https://public.01-edu.org/subjects/converbase.en +- split | https://public.01-edu.org/subjects/split.en ### Exam 2 (4hours) @@ -208,16 +208,16 @@ Notions: Creation of struct types and file manipulation (Open, Read, Close metho Videos: -- 08-01-Structures in Go | https://www.youtube.com/watch?v=-24M7r7VuLY -- 08-02-File Manipulation in go | https://www.youtube.com/watch?v=8vUgchQGhcQ +- 08-01-Structures in Go | https://www.youtube.com/watch?v=-24M7r7VuLY +- 08-02-File Manipulation in go | https://www.youtube.com/watch?v=8vUgchQGhcQ Exercices: -- bool | https://public.01-edu.org/subjects/bool.en -- point | https://public.01-edu.org/subjects/point.en -- displayfile | https://public.01-edu.org/subjects/displayfile.en -- cat | https://public.01-edu.org/subjects/cat.en -- ztail | https://public.01-edu.org/subjects/ztail.en +- bool | https://public.01-edu.org/subjects/bool.en +- point | https://public.01-edu.org/subjects/point.en +- displayfile | https://public.01-edu.org/subjects/displayfile.en +- cat | https://public.01-edu.org/subjects/cat.en +- ztail | https://public.01-edu.org/subjects/ztail.en ### Quest 9 @@ -227,18 +227,18 @@ Notions: Advance function prototyping Videos: -- 09-01-Functions as Arguments | https://www.youtube.com/watch?v=lw8jUwsluAE +- 09-01-Functions as Arguments | https://www.youtube.com/watch?v=lw8jUwsluAE Exercices: -- foreach | https://public.01-edu.org/subjects/foreach.en -- map | https://public.01-edu.org/subjects/map.en -- any | https://public.01-edu.org/subjects/any.en -- countif | https://public.01-edu.org/subjects/countif.en -- issorted | https://public.01-edu.org/subjects/issorted.en -- doop | https://public.01-edu.org/subjects/doop.en -- sortwordarr | https://public.01-edu.org/subjects/sortwordarr.en -- advancedsortwordarr | https://public.01-edu.org/subjects/advancedsortwordarr.en +- foreach | https://public.01-edu.org/subjects/foreach.en +- map | https://public.01-edu.org/subjects/map.en +- any | https://public.01-edu.org/subjects/any.en +- countif | https://public.01-edu.org/subjects/countif.en +- issorted | https://public.01-edu.org/subjects/issorted.en +- doop | https://public.01-edu.org/subjects/doop.en +- sortwordarr | https://public.01-edu.org/subjects/sortwordarr.en +- advancedsortwordarr | https://public.01-edu.org/subjects/advancedsortwordarr.en ### Quest 10 @@ -248,18 +248,18 @@ Notions: All previously viewed concepts in team work Exercices: -- rot14 | https://public.01-edu.org/subjects/rot14.en -- abort | https://public.01-edu.org/subjects/abort.en -- collatzcountdown | https://public.01-edu.org/subjects/collatzcountdown.en -- comcheck | https://public.01-edu.org/subjects/comcheck.en -- enigma | https://public.01-edu.org/subjects/enigma.en -- pilot | https://public.01-edu.org/subjects/pilot.en -- fixthemain | https://public.01-edu.org/subjects/fixthemain.en -- compact | https://public.01-edu.org/subjects/compact.en -- activebits | https://public.01-edu.org/subjects/activebits.en -- max | https://public.01-edu.org/subjects/max.en -- join | https://public.01-edu.org/subjects/join.en -- unmatch | https://public.01-edu.org/subjects/unmatch.en +- rot14 | https://public.01-edu.org/subjects/rot14.en +- abort | https://public.01-edu.org/subjects/abort.en +- collatzcountdown | https://public.01-edu.org/subjects/collatzcountdown.en +- comcheck | https://public.01-edu.org/subjects/comcheck.en +- enigma | https://public.01-edu.org/subjects/enigma.en +- pilot | https://public.01-edu.org/subjects/pilot.en +- fixthemain | https://public.01-edu.org/subjects/fixthemain.en +- compact | https://public.01-edu.org/subjects/compact.en +- activebits | https://public.01-edu.org/subjects/activebits.en +- max | https://public.01-edu.org/subjects/max.en +- join | https://public.01-edu.org/subjects/join.en +- unmatch | https://public.01-edu.org/subjects/unmatch.en ### Exam 3 (4hours) @@ -281,25 +281,25 @@ Notions: Pointers manipulation and data structure Videos: -- 11-01-Linked Lists Introduction | https://www.youtube.com/watch?v=EPICVEbylU0 +- 11-01-Linked Lists Introduction | https://www.youtube.com/watch?v=EPICVEbylU0 Exercices: -- listpushback | https://public.01-edu.org/subjects/listpushback.en -- listpushfront | https://public.01-edu.org/subjects/listpushfront.en -- listsize | https://public.01-edu.org/subjects/listsize.en -- listlast | https://public.01-edu.org/subjects/listlast.en -- listclear | https://public.01-edu.org/subjects/listclear.en -- listat | https://public.01-edu.org/subjects/listat.en -- listreverse | https://public.01-edu.org/subjects/listreverse.en -- listforeach | https://public.01-edu.org/subjects/listforeach.en -- listforeachif | https://public.01-edu.org/subjects/listforeachif.en -- listfind | https://public.01-edu.org/subjects/listfind.en -- listremoveif | https://public.01-edu.org/subjects/listremoveif.en -- listmerge | https://public.01-edu.org/subjects/listmerge.en -- listsort | https://public.01-edu.org/subjects/listsort.en -- sortlistinsert | https://public.01-edu.org/subjects/sortlistinsert.en -- sortedlistmerge | https://public.01-edu.org/subjects/sortedlistmerge.en +- listpushback | https://public.01-edu.org/subjects/listpushback.en +- listpushfront | https://public.01-edu.org/subjects/listpushfront.en +- listsize | https://public.01-edu.org/subjects/listsize.en +- listlast | https://public.01-edu.org/subjects/listlast.en +- listclear | https://public.01-edu.org/subjects/listclear.en +- listat | https://public.01-edu.org/subjects/listat.en +- listreverse | https://public.01-edu.org/subjects/listreverse.en +- listforeach | https://public.01-edu.org/subjects/listforeach.en +- listforeachif | https://public.01-edu.org/subjects/listforeachif.en +- listfind | https://public.01-edu.org/subjects/listfind.en +- listremoveif | https://public.01-edu.org/subjects/listremoveif.en +- listmerge | https://public.01-edu.org/subjects/listmerge.en +- listsort | https://public.01-edu.org/subjects/listsort.en +- sortlistinsert | https://public.01-edu.org/subjects/sortlistinsert.en +- sortedlistmerge | https://public.01-edu.org/subjects/sortedlistmerge.en ### Quest 12 @@ -309,21 +309,21 @@ Notions: Advanced Data Structure using binary trees Videos: -- 12-01-Introduction to Binary Trees | https://www.youtube.com/watch?v=3g2WCqWNIVs +- 12-01-Introduction to Binary Trees | https://www.youtube.com/watch?v=3g2WCqWNIVs Exercices: -- btreeinsertdata | https://public.01-edu.org/subjects/btreeinsertdata.en -- btreeapplyinorder | https://public.01-edu.org/subjects/btreeapplyinorder.en -- btreeapplypreorder | https://public.01-edu.org/subjects/btreeapplypreorder.en -- btreesearchitem | https://public.01-edu.org/subjects/btreesearchitem.en -- btreelevelcount | https://public.01-edu.org/subjects/btreelevelcount.en -- btreeisbinary | https://public.01-edu.org/subjects/btreeisbinary.en -- btreeapplylevel | https://public.01-edu.org/subjects/btreeapplylevel.en -- btreemax | https://public.01-edu.org/subjects/btreemax.en -- btreemin | https://public.01-edu.org/subjects/btreemin.en -- btreetransplant | https://public.01-edu.org/subjects/btreetransplant.en -- btreedeletenode | https://public.01-edu.org/subjects/btreedeletenode.en +- btreeinsertdata | https://public.01-edu.org/subjects/btreeinsertdata.en +- btreeapplyinorder | https://public.01-edu.org/subjects/btreeapplyinorder.en +- btreeapplypreorder | https://public.01-edu.org/subjects/btreeapplypreorder.en +- btreesearchitem | https://public.01-edu.org/subjects/btreesearchitem.en +- btreelevelcount | https://public.01-edu.org/subjects/btreelevelcount.en +- btreeisbinary | https://public.01-edu.org/subjects/btreeisbinary.en +- btreeapplylevel | https://public.01-edu.org/subjects/btreeapplylevel.en +- btreemax | https://public.01-edu.org/subjects/btreemax.en +- btreemin | https://public.01-edu.org/subjects/btreemin.en +- btreetransplant | https://public.01-edu.org/subjects/btreetransplant.en +- btreedeletenode | https://public.01-edu.org/subjects/btreedeletenode.en ### Exam 4 - Final Exam (8hours) diff --git a/docs/principles.md b/docs/principles.md new file mode 100644 index 000000000..901cbb529 --- /dev/null +++ b/docs/principles.md @@ -0,0 +1,37 @@ +# Principles + +## Make a simple system (less complexity) + +Rationale : + +- Reduce the number of potential bugs and problems +- The remaining bugs will be easier to identify/isolate & fix +- Easier maintenance +- Lower human capital required + +## Limit security & filtering mechanisms + +Especially during the launch, rationale : + +- Reduce complexity (see above) +- Alem is a school, not a bank, so the security requirements are lower +- Some students will be able to bypass security systems in all cases + - And they will spread the word quickly +- The only reliable way to identify students will be security cameras and staff attention + - Students will share accounts and USB drives + - They will open connections to the outside and there is no definitive way to prevent this +- We will "hire" the students who have found vulnerabilities using technical skills and creativity + - We cannot anticipate every breach hundreds of students will find & exploit +- Focus on endpoint security rather than network security (firewall on each node) + - Reduce complexity of the network and make it more flexible + +## Promote open, neutral network & technologies + +Rationale : + +- Students will spend more time learning things and exchanging ideas than bypassing censorship +- Students will have more extensive knowledge and skills +- It is better to make them aware of their situation than to try to stop them +- A student's motivation is very much influenced by his or her environment + - An environment with limitations will limit the spectrum of things that stimulate the student's curiosity +- A focus will made on increasing student's empowerement in order to make them feel accountable for their own actions. If the student cheats, he has to understand that he is only hindering his own progress. diff --git a/docs/responsibilities.md b/docs/responsibilities.md new file mode 100644 index 000000000..7f546b883 --- /dev/null +++ b/docs/responsibilities.md @@ -0,0 +1,31 @@ +# Responsibilities + +## Alem + +- Hardware + - Maintenance & replacement of parts + - HP machines + - Inventory (associates MAC address or other ID to the physical location of the machine) + - [BIOS configuration](bios-configuration.md) + - Connected on Ethernet network + - Audio & USB extension cables (to protect the PC ports) + - Computers & cables are physically attached to the table (to prevent stealing or damage) + - Monitor brightness (the default might be too high and it cannot be controlled by software) + - Server (virtualized with at least these dedicated resources) + - CPU : 8 threads + - RAM : 64 GB + - SSD : 512 GB + - NIC : pass-through or bridged ? (see with Vitalii) +- Software + - DHCP + - DNS + - PXE + - Image creation & deployment (with the help of team 01) + +## 01 + +- Software maintenance + - Implement the features requested or identified at the Alem School + - Bug fix +- Technical advice +- Pedagogical support diff --git a/docs/tasks.md b/docs/tasks.md new file mode 100644 index 000000000..1d72d7949 --- /dev/null +++ b/docs/tasks.md @@ -0,0 +1,11 @@ +# Tasks + +- [x] Install, connect, check the server and the HP clients (_Alem_, _Vitalii_) +- [x] Check the settings of the virtual machine (_01_, _Vitalii_) +- [x] Install the server (_01_, _Vitalii_) +- [x] Tests & benchmark of the server (_01_) +- [x] Test the [OS deployment](https://github.com/01-edu/public/blob/master/docs/os-deployment.md) (_01_, _Vitalii_) +- [ ] Write process documentation (_01_, _Alem_, _Vitalii_) +- [ ] Ensure the tester only works inside the school (_01_, _Alem_) +- [ ] Ensure the exam app works as expected (_01_, _Alem_) +- [ ] Test the entire piscine (_01_, _Alem_) diff --git a/docs/ubuntu-installation.md b/docs/ubuntu-installation.md index 3acb73645..f32e75098 100644 --- a/docs/ubuntu-installation.md +++ b/docs/ubuntu-installation.md @@ -6,20 +6,18 @@ Download and boot the [last Ubuntu release](http://releases.ubuntu.com/19.04/ubu Follow the steps : -![img1](img/1.png) -![img2](img/2.png) -![img3](img/3.png) +![img1](img/ubuntu-installation/1.png) +![img2](img/ubuntu-installation/2.png) +![img3](img/ubuntu-installation/3.png) The partitioning is : -1) 256 MB : EFI partition -2) 20 GB : system partition -3) 32 GB : unused partition (will be used later) -4) rest : unused partition (will be used later) +1. 256 MB : EFI partition +2. 20 GB : system partition -![img4](img/4.png) -![img5](img/5.png) -![img6](img/6.png) +![img4](img/ubuntu-installation/4.png) +![img5](img/ubuntu-installation/5.png) +![img6](img/ubuntu-installation/6.png) Remove the installation disk and then reboot. @@ -27,43 +25,42 @@ Skip the welcoming window. Don't install updates if Ubuntu asks to. The scripts will. -Start the disk utility to name partitions so that OverlayFS can identify them. +## OS customization -3) 32 GB - **Partition 3** : `01-tmp-home` -4) rest - **Partition 4** : `01-tmp-system` +You can overwrite the files of the folder `system` by setting an environment variable named `OVERWRITE` with the format : `Destination folder;Git URL`. -The same procedure is required to make USB disk usable for the students, the partition name must be : `01-home` +For example to write the content of the repository [github.com/xpetit/custom](https://github.com/xpetit/custom) in the system folder : -![img7](img/7.png) -![img8](img/8.png) -![img9](img/9.png) +```shell +export OVERWRITE='.;https://github.com/xpetit/custom.git' +``` ## OS configuration +Run a terminal and type these commands : + ```shell -student@tmp-hostname:~$ wget github.com/01-edu/public/archive/master.zip -student@tmp-hostname:~$ unzip master.zip -student@tmp-hostname:~$ cd public-master/scripts -student@tmp-hostname:~$ sudo ./install_client.sh -[...] -Ask for student user password (will be removed later) -[...] -Ask to set the root password -[...] -Long installation/configuration process -[...] -student@tmp-hostname:~$ cat dconfig.txt | dconf load / -student@tmp-hostname:~$ reboot +unset HISTFILE +sudo apt-get -y install curl +bash <(curl -sSL raw.githubusercontent.com/01-edu/public/master/scripts/kickstart.sh) ``` +The script will ask for student user password (which will be deleted after) and then after a long configuration process it will restart the computer. + The system is now read-only, every data is written to a temporary partition. The session is password-less. -To gain a superuser terminal with read/write access to the filesystem, type these commands: +To gain a superuser terminal, use SSH : -```shell -student@tmp-hostname:~$ su - -Password: -root@tmp-hostname:~# overlayroot-chroot +```console +user@remote:~$ ssh -p521 root@IP_ADDRESS +``` + +To gain access with read/write access to the filesystem, use this command : + +```console +root@ubuntu:~# overlayroot-chroot +INFO: Chrooting into [/media/root-ro] +root@ubuntu:/# ``` diff --git a/docs/usb-configuration.md b/docs/usb-configuration.md index 759f85cd8..4a530532f 100644 --- a/docs/usb-configuration.md +++ b/docs/usb-configuration.md @@ -2,45 +2,43 @@ Requirements : -1) 32 GB -3) interface type: 3.0 +1. 32 GB +2. interface type: 3.0 Follow the steps : > Execute the "disks" program -![img1](img/usb/1.png) +![img1](img/usb-configuration/1.png) > Choose the usb drive to configure and press format disk -![img2](img/usb/2.png) +![img2](img/usb-configuration/2.png) > Choose "Compatible with modern systems and hard disks > 2TB(GPT)" -![img3](img/usb/3.png) +![img3](img/usb-configuration/3.png) -![img4](img/usb/4.png) +![img4](img/usb-configuration/4.png) > Create new partition (size == all memory) -![img5](img/usb/5.png) +![img5](img/usb-configuration/5.png) > Volume name: any > Erase: none > Type: other -![img6](img/usb/6.png) +![img6](img/usb-configuration/6.png) > Choose F2FS -![img7](img/usb/7.png) +![img7](img/usb-configuration/7.png) > Format created partition -![img8](img/usb/8.png) +![img8](img/usb-configuration/8.png) > The new name must be 01-home -![img9](img/usb/9.png) - - +![img9](img/usb-configuration/9.png) diff --git a/scripts/dconfig.txt b/scripts/dconfig.txt index d485a1ccb..fcabcd7c4 100644 --- a/scripts/dconfig.txt +++ b/scripts/dconfig.txt @@ -67,6 +67,7 @@ default-size-columns=160 [org/gnome/desktop/background] show-desktop-icons=false +picture-uri='file:///usr/share/backgrounds/01/wallpaper.png' [org/gnome/desktop/peripherals/mouse] accel-profile='flat' diff --git a/scripts/grub.sh b/scripts/grub.sh index ad7678119..502f8e430 100755 --- a/scripts/grub.sh +++ b/scripts/grub.sh @@ -8,8 +8,6 @@ cd $SCRIPT_DIR DISK=$1 -apt-get -y install grub-efi-amd64 - sed -i -e 's/message=/message_null=/g' /etc/grub.d/10_linux cat <> /etc/default/grub diff --git a/scripts/install_client.sh b/scripts/install_client.sh index 1c6c2647e..b36df9a3d 100755 --- a/scripts/install_client.sh +++ b/scripts/install_client.sh @@ -9,13 +9,6 @@ SCRIPT_DIR="$(cd -P "$(dirname "$BASH_SOURCE")" && pwd)" cd $SCRIPT_DIR . set.sh -# Set root password -passwd root - -# Remove user password -passwd -d student -cp /etc/shadow /etc/shadow- - SSH_PORT=521 DISK=$(lsblk -o tran,kname,hotplug,type,fstype -pr | grep -e nvme -e sata | @@ -24,10 +17,26 @@ DISK=$(lsblk -o tran,kname,hotplug,type,fstype -pr | sort | head -n1) +systemctl stop unattended-upgrades.service + +sgdisk -n0:0:+32G "$DISK" +sgdisk -N0 "$DISK" +sgdisk -c3:01-tmp-home "$DISK" +sgdisk -c4:01-tmp-system "$DISK" + apt-get update apt-get -y upgrade apt-get -y autoremove --purge +# Remove outdated kernels +old_kernels=$(ls -1 /boot/config-* | sed '$d' | xargs -n1 basename | cut -d- -f2,3) + +for old_kernel in $old_kernels; do + dpkg -P $(dpkg-query -f '${binary:Package}\n' -W *"$old_kernel"*) +done + +apt-get -yf install + . bash_tweaks.sh . ssh.sh . firewall.sh @@ -61,20 +70,51 @@ rm /usr/share/initramfs-tools/hooks/fsck cp -r system /tmp cd /tmp/system -sed -i -e "s|::DISK::|$DISK|g" etc/udev/rules.d/10-local.rules -apt-get -y install overlayroot -echo overlayroot=\"device:dev=/dev/disk/by-partlabel/01-tmp-system,recurse=0\" >> /etc/overlayroot.conf +# Overwrite with custom files from Git repository +if test -v OVERWRITE; then + folder=$(echo "$OVERWRITE" | cut -d';' -f1) + url=$(echo "$OVERWRITE" | cut -d';' -f2) + if git ls-remote -q "$url" &>/dev/null; then + tmp=$(mktemp -d) + git clone --depth 1 "$url" "$tmp" + rm -rf "$tmp"/.git + cp -aT "$tmp" "$folder" + rm -rf "$tmp" + fi +fi # Fix permissions find . -type d -exec chmod 755 {} \; find . -type f -exec chmod 644 {} \; find . -type f -exec /bin/sh -c "file {} | grep -q 'shell script' && chmod +x {}" \; +find . -type f -exec /bin/sh -c "file {} | grep -q 'public key' && chmod 400 {}" \; + +sed -i -e "s|::DISK::|$DISK|g" etc/udev/rules.d/10-local.rules + +# Generate wallpaper +cd usr/share/backgrounds/01 +test ! -e wallpaper.png && composite logo.png background.png wallpaper.png +cd /tmp/system + cp --preserve=mode -RT . / cd $SCRIPT_DIR rm -rf /tmp/system +apt-get -y install overlayroot +echo overlayroot=\"device:dev=/dev/disk/by-partlabel/01-tmp-system,recurse=0\" >> /etc/overlayroot.conf + update-initramfs -u +# Remove root & user password +passwd -d root +passwd -d student +cp /etc/shadow /etc/shadow- + +# Remove user abilities +gpasswd -d student sudo +gpasswd -d student lpadmin +gpasswd -d student sambashare + . clean.sh diff --git a/scripts/kickstart.sh b/scripts/kickstart.sh new file mode 100755 index 000000000..20c48811c --- /dev/null +++ b/scripts/kickstart.sh @@ -0,0 +1,48 @@ +#!/usr/bin/env bash + +# Run me with: +# +# bash <(curl -Ss raw.githubusercontent.com/01-edu/public/master/scripts/kickstart.sh) + +# Treat unset variables as an error when substituting. +set -u + +# Exit immediately if a command exits with a non-zero status. +set -e + +# Set the variable corresponding to the return value of a pipeline is the status +# of the last command to exit with a non-zero status, or zero if no command +# exited with a non-zero status +set -o pipefail + +# Separate tokens on newlines only +IFS=' +' + +# The value of this parameter is expanded like PS1 and the expanded value is the +# prompt printed before the command line is echoed when the -x option is set +# (see The Set Builtin). The first character of the expanded value is replicated +# multiple times, as necessary, to indicate multiple levels of indirection. +# \D{%F %T} prints date like this : 2019-12-31 23:59:59 +PS4='-\D{%F %T} ' + +# Print commands and their arguments as they are executed. +set -x + +# Skip dialogs during apt-get install commands +export DEBIAN_FRONTEND=noninteractive # DEBIAN_PRIORITY=critical + +gsettings set org.gnome.desktop.session idle-delay 0 +gsettings set org.gnome.desktop.screensaver lock-enabled false + +cd +wget github.com/01-edu/public/archive/master.zip +unzip master.zip + +cd public-master/scripts +sudo -E ./install_client.sh +cat dconfig.txt | dconf load / + +cd +rm -rf master.zip public-master +reboot diff --git a/scripts/nodejs.sh b/scripts/nodejs.sh index c08f012a9..9aa678e3d 100755 --- a/scripts/nodejs.sh +++ b/scripts/nodejs.sh @@ -6,5 +6,5 @@ SCRIPT_DIR="$(cd -P "$(dirname "$BASH_SOURCE")" && pwd)" cd $SCRIPT_DIR . set.sh -curl -sL https://deb.nodesource.com/setup_10.x | bash - +curl -sL https://deb.nodesource.com/setup_12.x | bash - apt-get -y install nodejs diff --git a/scripts/preseed.cfg b/scripts/preseed.cfg new file mode 100644 index 000000000..5fdd31b57 --- /dev/null +++ b/scripts/preseed.cfg @@ -0,0 +1,21 @@ +# d-i debconf/priority select critical + +d-i anna/choose_modules string network-console +d-i preseed/early_command string anna-install network-console +d-i network-console/authorized_keys_url string https://raw.githubusercontent.com/xpetit/.ssh/master/id_ed25519.pub +d-i network-console/password-disabled boolean true + +d-i debian-installer/locale string en_US +d-i console-keymaps-at/keymap select us +d-i keyboard-configuration/xkb-keymap select us + +d-i mirror/country string manual +d-i mirror/http/hostname string deb.debian.org +d-i mirror/http/directory string /debian +d-i mirror/http/proxy string + +#d-i netcfg/choose_interface select auto +#d-i netcfg/get_hostname string debian +#d-i netcfg/get_domain string local + +d-i hw-detect/load_firmware boolean true diff --git a/scripts/ssh.sh b/scripts/ssh.sh index 3e0a56771..e0f8a1b51 100755 --- a/scripts/ssh.sh +++ b/scripts/ssh.sh @@ -16,10 +16,3 @@ Port $SSH_PORT PasswordAuthentication no AllowUsers root EOF - -mkdir -p /root/.ssh -chmod -f 700 /root/.ssh -# echo 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIH30lZP4V26RVWWvAW91jM7UBSN68+xkuJc5cRionpMc' >> /root/.ssh/authorized_keys -chmod -f 600 /root/.ssh/authorized_keys || true - -systemctl restart sshd.service diff --git a/scripts/system/etc/gdm3/PostLogin/Default b/scripts/system/etc/gdm3/PostLogin/Default index e2aa9c68a..e2acb90fa 100755 --- a/scripts/system/etc/gdm3/PostLogin/Default +++ b/scripts/system/etc/gdm3/PostLogin/Default @@ -40,7 +40,7 @@ else mount -o noatime,nobarrier /dev/disk/by-partlabel/01-tmp-home /mnt fi -user_path=/mnt/.01/"$USER" +user_path=/mnt/.01/user temp_path=/mnt/.01/tmp mkdir -p "$user_path" "$temp_path" diff --git a/scripts/system/etc/gdm3/PostSession/Default b/scripts/system/etc/gdm3/PostSession/Default index 9292367d7..21aba95dc 100755 --- a/scripts/system/etc/gdm3/PostSession/Default +++ b/scripts/system/etc/gdm3/PostSession/Default @@ -16,11 +16,11 @@ PS4='-\D{%F %T} ' # Print commands and their arguments as they are executed. set -x -passwd -d $USER +passwd -d "$USER" ||: systemctl stop user@1000.service # Make sure the mountpoints are free -kill $(lsof -t "$HOME" /mnt) $(ps --no-headers -u student -o pid) +kill $(lsof -t "$HOME" /mnt) $(ps --no-headers -u "$USER" -o pid) umount "$HOME" /mnt umount /dev/disk/by-partlabel/01-home ||: wipefs -a /dev/disk/by-partlabel/01-tmp-home diff --git a/scripts/system/usr/share/backgrounds/01/background.png b/scripts/system/usr/share/backgrounds/01/background.png new file mode 100644 index 000000000..2a06dfb7b Binary files /dev/null and b/scripts/system/usr/share/backgrounds/01/background.png differ diff --git a/scripts/system/usr/share/backgrounds/01/logo.png b/scripts/system/usr/share/backgrounds/01/logo.png new file mode 100644 index 000000000..719b8a659 Binary files /dev/null and b/scripts/system/usr/share/backgrounds/01/logo.png differ diff --git a/scripts/ubuntu_tweaks.sh b/scripts/ubuntu_tweaks.sh index aa5223c74..2209d28ae 100755 --- a/scripts/ubuntu_tweaks.sh +++ b/scripts/ubuntu_tweaks.sh @@ -39,13 +39,6 @@ swapoff /swapfile || true rm -f /swapfile sed -i '/swapfile/d' /etc/fstab -# Network configuration -interface=$(ip route get 1.1.1.1 | head -1 | cut -d' ' -f5) - -cat <> /etc/network/interfaces -allow-hotplug $interface -iface $interface inet dhcp -EOF # Purge unused Ubuntu packages PKGS=" @@ -62,7 +55,6 @@ gnome-power-manager gnome-software gnome-software-common memtest86+ -network-manager* orca popularity-contest python3-update-manager @@ -112,6 +104,7 @@ gnome-calculator gnome-system-monitor gnome-tweaks i3lock +imagemagick mpv zenity " diff --git a/subjects/abort.en.md b/subjects/abort.en.md index c9cfb12f4..1eb4398b8 100644 --- a/subjects/abort.en.md +++ b/subjects/abort.en.md @@ -33,8 +33,8 @@ func main() { And its output : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 5 -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/abort.fr.md b/subjects/abort.fr.md index 16951323e..bb6722fc2 100644 --- a/subjects/abort.fr.md +++ b/subjects/abort.fr.md @@ -33,8 +33,8 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 5 -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/activebits.en.md b/subjects/activebits.en.md index 44c5220d2..7c4217fef 100644 --- a/subjects/activebits.en.md +++ b/subjects/activebits.en.md @@ -33,8 +33,8 @@ func main() { And its output : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 3 -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/activebits.fr.md b/subjects/activebits.fr.md index 24e9de392..4ae7c03c9 100644 --- a/subjects/activebits.fr.md +++ b/subjects/activebits.fr.md @@ -33,8 +33,8 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 3 -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/addprimesum.en.md b/subjects/addprimesum.en.md index db4428e18..10b6de75d 100644 --- a/subjects/addprimesum.en.md +++ b/subjects/addprimesum.en.md @@ -9,12 +9,12 @@ Write a program that takes a positive integer as argument and displays the sum o ### Usage ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test 5 +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 5 10 -student@ubuntu:~/piscine/test$ ./test 7 +student@ubuntu:~/piscine-go/test$ ./test 7 17 -student@ubuntu:~/piscine/test$ ./test 57 +student@ubuntu:~/piscine-go/test$ ./test 57 0 -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/addprimesum.fr.md b/subjects/addprimesum.fr.md index 86c5d28bd..4c8266a4b 100644 --- a/subjects/addprimesum.fr.md +++ b/subjects/addprimesum.fr.md @@ -9,12 +9,12 @@ ### Utilisation ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test 5 +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 5 10 -student@ubuntu:~/piscine/test$ ./test 7 +student@ubuntu:~/piscine-go/test$ ./test 7 17 -student@ubuntu:~/piscine/test$ ./test 57 +student@ubuntu:~/piscine-go/test$ ./test 57 0 -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/advancedsortwordarr.en.md b/subjects/advancedsortwordarr.en.md index c51dc1f0c..09c162959 100644 --- a/subjects/advancedsortwordarr.en.md +++ b/subjects/advancedsortwordarr.en.md @@ -35,8 +35,8 @@ func main() { And its output : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test [1 2 3 A B C a b c] -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/advancedsortwordarr.fr.md b/subjects/advancedsortwordarr.fr.md index ba52968aa..4d13440d9 100644 --- a/subjects/advancedsortwordarr.fr.md +++ b/subjects/advancedsortwordarr.fr.md @@ -35,8 +35,8 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test [1 2 3 A B C a b c] -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/any.en.md b/subjects/any.en.md index 4f94fdad1..303eb64fa 100644 --- a/subjects/any.en.md +++ b/subjects/any.en.md @@ -40,9 +40,9 @@ func main() { And its output : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test false true -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/any.fr.md b/subjects/any.fr.md index 77afa5a14..c1312a2ac 100644 --- a/subjects/any.fr.md +++ b/subjects/any.fr.md @@ -40,9 +40,9 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test false true -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/appendrange.en.md b/subjects/appendrange.en.md index a521a7087..71b7cd75e 100644 --- a/subjects/appendrange.en.md +++ b/subjects/appendrange.en.md @@ -40,9 +40,9 @@ func main() { And its output : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test [5 6 7 8 9] [] -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/appendrange.fr.md b/subjects/appendrange.fr.md index 801e060f6..c0c31179a 100644 --- a/subjects/appendrange.fr.md +++ b/subjects/appendrange.fr.md @@ -39,9 +39,9 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test [5 6 7 8 9] [] -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/atoi.en.md b/subjects/atoi.en.md index f8d596156..33fff5d9e 100644 --- a/subjects/atoi.en.md +++ b/subjects/atoi.en.md @@ -63,8 +63,8 @@ func main() { And its output : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 12345 12345 0 @@ -73,5 +73,5 @@ student@ubuntu:~/piscine/test$ ./test -1234 0 0 -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/atoi.fr.md b/subjects/atoi.fr.md index f11586ed3..ae3be54a3 100644 --- a/subjects/atoi.fr.md +++ b/subjects/atoi.fr.md @@ -63,8 +63,8 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 12345 12345 0 @@ -73,5 +73,5 @@ student@ubuntu:~/piscine/test$ ./test -1234 0 0 -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/atoibase.en.md b/subjects/atoibase.en.md index f582db427..94fa2534c 100644 --- a/subjects/atoibase.en.md +++ b/subjects/atoibase.en.md @@ -48,12 +48,12 @@ func main() { And its output : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 125 125 125 125 0 -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/atoibase.fr.md b/subjects/atoibase.fr.md index 165115ade..3d67678ef 100644 --- a/subjects/atoibase.fr.md +++ b/subjects/atoibase.fr.md @@ -48,12 +48,12 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 125 125 125 125 0 -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/basicatoi.en.md b/subjects/basicatoi.en.md index 37685d334..c56fadc50 100644 --- a/subjects/basicatoi.en.md +++ b/subjects/basicatoi.en.md @@ -48,10 +48,10 @@ func main() { And its output : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 12345 12345 0 -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/basicatoi.fr.md b/subjects/basicatoi.fr.md index 1f9f02836..d2eba2111 100644 --- a/subjects/basicatoi.fr.md +++ b/subjects/basicatoi.fr.md @@ -48,10 +48,10 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 12345 12345 0 -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/basicatoi2.en.md b/subjects/basicatoi2.en.md index 16ba8ed3c..5472c6f62 100644 --- a/subjects/basicatoi2.en.md +++ b/subjects/basicatoi2.en.md @@ -52,11 +52,11 @@ func main() { And its output : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 12345 12345 0 0 -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/basicatoi2.fr.md b/subjects/basicatoi2.fr.md index e04d6f6a4..e6be4da4d 100644 --- a/subjects/basicatoi2.fr.md +++ b/subjects/basicatoi2.fr.md @@ -52,11 +52,11 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 12345 12345 0 0 -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/basicjoin.en.md b/subjects/basicjoin.en.md index b1cfa29c9..ee43d8bb0 100644 --- a/subjects/basicjoin.en.md +++ b/subjects/basicjoin.en.md @@ -33,8 +33,8 @@ func main() { And its output : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test Hello! How are you? -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/basicjoin.fr.md b/subjects/basicjoin.fr.md index 8b1921c04..4f93ea566 100644 --- a/subjects/basicjoin.fr.md +++ b/subjects/basicjoin.fr.md @@ -33,8 +33,8 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test Hello! How are you? -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/btreeapplybylevel.en.md b/subjects/btreeapplybylevel.en.md index 37547bb50..942ab89a1 100644 --- a/subjects/btreeapplybylevel.en.md +++ b/subjects/btreeapplybylevel.en.md @@ -7,7 +7,7 @@ Write a function, `BTreeApplyByLevel`, that applies the function given by `fn` t ### Expected function ```go -func BTreeApplyByLevel(root *TreeNode, fn interface{}) { +func BTreeApplyByLevel(root *TreeNode, f func(...interface{}) (int, error)) { } ``` diff --git a/subjects/btreeapplyinorder.en.md b/subjects/btreeapplyinorder.en.md index 0318f9ab6..540394858 100644 --- a/subjects/btreeapplyinorder.en.md +++ b/subjects/btreeapplyinorder.en.md @@ -38,11 +38,11 @@ func main() { And its output : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 1 4 5 7 -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/btreeapplyinorder.fr.md b/subjects/btreeapplyinorder.fr.md index d37414197..e633a5763 100644 --- a/subjects/btreeapplyinorder.fr.md +++ b/subjects/btreeapplyinorder.fr.md @@ -38,11 +38,11 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 1 4 5 7 -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/btreeapplypostorder.en.md b/subjects/btreeapplypostorder.en.md index 0a6b7a095..dafba8b07 100644 --- a/subjects/btreeapplypostorder.en.md +++ b/subjects/btreeapplypostorder.en.md @@ -37,11 +37,11 @@ func main() { And its output : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 1 5 7 4 -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/btreeapplypostorder.fr.md b/subjects/btreeapplypostorder.fr.md index 8d6d596e7..320e14929 100644 --- a/subjects/btreeapplypostorder.fr.md +++ b/subjects/btreeapplypostorder.fr.md @@ -37,11 +37,11 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine/btreeinsertdata$ go build -student@ubuntu:~/piscine/btreeinsertdata$ ./btreeinsertdata +student@ubuntu:~/piscine-go/btreeinsertdata$ go build +student@ubuntu:~/piscine-go/btreeinsertdata$ ./btreeinsertdata 1 5 7 4 -student@ubuntu:~/piscine/btreeinsertdata$ +student@ubuntu:~/piscine-go/btreeinsertdata$ ``` diff --git a/subjects/btreeapplypreorder.en.md b/subjects/btreeapplypreorder.en.md index 3fe6b3143..3a00e4629 100644 --- a/subjects/btreeapplypreorder.en.md +++ b/subjects/btreeapplypreorder.en.md @@ -37,11 +37,11 @@ func main() { And its output : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 4 1 7 5 -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/btreeapplypreorder.fr.md b/subjects/btreeapplypreorder.fr.md index 8eba30056..ff1310076 100644 --- a/subjects/btreeapplypreorder.fr.md +++ b/subjects/btreeapplypreorder.fr.md @@ -37,11 +37,11 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 4 1 7 5 -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/btreeinsertdata.en.md b/subjects/btreeinsertdata.en.md index 2125affc0..df65e8eea 100644 --- a/subjects/btreeinsertdata.en.md +++ b/subjects/btreeinsertdata.en.md @@ -47,11 +47,11 @@ func main() { And its output : ```console -student@ubuntu:~/piscine/btreeinsertdata$ go build -student@ubuntu:~/piscine/btreeinsertdata$ ./btreeinsertdata +student@ubuntu:~/piscine-go/btreeinsertdata$ go build +student@ubuntu:~/piscine-go/btreeinsertdata$ ./btreeinsertdata 1 4 5 7 -student@ubuntu:~/piscine/btreeinsertdata$ +student@ubuntu:~/piscine-go/btreeinsertdata$ ``` diff --git a/subjects/btreeinsertdata.fr.md b/subjects/btreeinsertdata.fr.md index 76899a1c1..af21d518e 100644 --- a/subjects/btreeinsertdata.fr.md +++ b/subjects/btreeinsertdata.fr.md @@ -46,11 +46,11 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine/btreeinsertdata$ go build -student@ubuntu:~/piscine/btreeinsertdata$ ./btreeinsertdata +student@ubuntu:~/piscine-go/btreeinsertdata$ go build +student@ubuntu:~/piscine-go/btreeinsertdata$ ./btreeinsertdata 1 4 5 7 -student@ubuntu:~/piscine/btreeinsertdata$ +student@ubuntu:~/piscine-go/btreeinsertdata$ ``` diff --git a/subjects/btreeprintroot.en.md b/subjects/btreeprintroot.en.md index 68c311704..10cd6dd90 100644 --- a/subjects/btreeprintroot.en.md +++ b/subjects/btreeprintroot.en.md @@ -38,10 +38,10 @@ func main() { And its output : ```console -student@ubuntu:~/piscine/printroot$ go build -student@ubuntu:~/piscine/printroot$ ./printroot +student@ubuntu:~/piscine-go/printroot$ go build +student@ubuntu:~/piscine-go/printroot$ ./printroot who are you -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/btreeprintroot.fr.md b/subjects/btreeprintroot.fr.md index 4b6da978b..7f3894601 100644 --- a/subjects/btreeprintroot.fr.md +++ b/subjects/btreeprintroot.fr.md @@ -38,10 +38,10 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine/printroot$ go build -student@ubuntu:~/piscine/printroot$ ./printroot +student@ubuntu:~/piscine-go/printroot$ go build +student@ubuntu:~/piscine-go/printroot$ ./printroot who are you -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/btreesearchitem.en.md b/subjects/btreesearchitem.en.md index cc8c41053..475d3314c 100644 --- a/subjects/btreesearchitem.en.md +++ b/subjects/btreesearchitem.en.md @@ -63,11 +63,11 @@ func main() { And its output : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test Item selected -> 7 Parent of selected item -> 4 Left child of selected item -> 5 Right child of selected item -> nil -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/btreesearchitem.fr.md b/subjects/btreesearchitem.fr.md index bf5cf598d..4f378c84f 100644 --- a/subjects/btreesearchitem.fr.md +++ b/subjects/btreesearchitem.fr.md @@ -63,11 +63,11 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test Item selected -> 7 Parent of selected item -> 4 Left child of selected item -> 5 Right child of selected item -> nil -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/capitalize.en.md b/subjects/capitalize.en.md index 44f4d6472..2eb6efb41 100644 --- a/subjects/capitalize.en.md +++ b/subjects/capitalize.en.md @@ -34,8 +34,8 @@ func main() { And its output : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test Hello! How Are You? How+Are+Things+4you? -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/capitalize.fr.md b/subjects/capitalize.fr.md index 1e1058e59..18c5348e7 100644 --- a/subjects/capitalize.fr.md +++ b/subjects/capitalize.fr.md @@ -34,8 +34,8 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test Hello! How Are You? How+Are+Things+4you? -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/cl-camp2.en.md b/subjects/cl-camp2.en.md index 9f7e7cca2..3ac44176d 100644 --- a/subjects/cl-camp2.en.md +++ b/subjects/cl-camp2.en.md @@ -11,7 +11,7 @@ A line is a sequence of characters preceding the [end of line](https://en.wikipe ### Usage ```console -student@ubuntu:~/piscine/test$ cat -e r +student@ubuntu:~/piscine-go/test$ cat -e r R$ -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/cl-camp2.fr.md b/subjects/cl-camp2.fr.md index dfc323498..0d806145c 100644 --- a/subjects/cl-camp2.fr.md +++ b/subjects/cl-camp2.fr.md @@ -11,7 +11,7 @@ Une ligne est une suite de caractères précédant le caractère [fin de ligne]( ### Utilisation ```console -student@ubuntu:~/piscine/test$ cat -e r +student@ubuntu:~/piscine-go/test$ cat -e r R$ -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/cl-camp4.en.md b/subjects/cl-camp4.en.md index 0ffc7771b..8dfaed0a1 100644 --- a/subjects/cl-camp4.en.md +++ b/subjects/cl-camp4.en.md @@ -17,8 +17,8 @@ Create a file `myfamily.sh`, which will show a subject's family (key: relatives) ### Usage ```console -student@ubuntu:~/piscine/test$ export HERO_ID=1 -student@ubuntu:~/piscine/test$ ./myfamily.sh +student@ubuntu:~/piscine-go/test$ export HERO_ID=1 +student@ubuntu:~/piscine-go/test$ ./myfamily.sh Marlo Chandler-Jones (wife); Polly (aunt); Mrs. Chandler (mother-in-law); Keith Chandler, Ray Chandler, three unidentified others (brothers-in-law); unidentified father (deceased); Jackie Shorr (alleged mother; unconfirmed) -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/cl-camp4.fr.md b/subjects/cl-camp4.fr.md index de43b2004..2ae90dcb1 100644 --- a/subjects/cl-camp4.fr.md +++ b/subjects/cl-camp4.fr.md @@ -17,8 +17,8 @@ Créer un fichier `myfamily.sh`, qui affichera la famille d'un individu (clef: r ### Utilisation ```console -student@ubuntu:~/piscine/test$ export HERO_ID=1 -student@ubuntu:~/piscine/test$ ./myfamily.sh +student@ubuntu:~/piscine-go/test$ export HERO_ID=1 +student@ubuntu:~/piscine-go/test$ ./myfamily.sh Marlo Chandler-Jones (wife); Polly (aunt); Mrs. Chandler (mother-in-law); Keith Chandler, Ray Chandler, three unidentified others (brothers-in-law); unidentified father (deceased); Jackie Shorr (alleged mother; unconfirmed) -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/cl-camp5.en.md b/subjects/cl-camp5.en.md index 578fb6032..252ad4aae 100644 --- a/subjects/cl-camp5.en.md +++ b/subjects/cl-camp5.en.md @@ -13,11 +13,11 @@ That command will only show the name of the files without the `.sh`. ### Usage ```console -student@ubuntu:~/piscine/test$ ./lookagain.sh | cat -e +student@ubuntu:~/piscine-go/test$ ./lookagain.sh | cat -e file1$ file2$ file3$ -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` ### Hint diff --git a/subjects/cl-camp5.fr.md b/subjects/cl-camp5.fr.md index 1f6e3f56d..0b5f932ff 100644 --- a/subjects/cl-camp5.fr.md +++ b/subjects/cl-camp5.fr.md @@ -13,11 +13,11 @@ Cette commande montrera le nom des fichiers sans le`.sh`. ### Utilisation ```console -student@ubuntu:~/piscine/test$ ./lookagain.sh | cat -e +student@ubuntu:~/piscine-go/test$ ./lookagain.sh | cat -e file1$ file2$ file3$ -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` ### Indice diff --git a/subjects/cl-camp6.en.md b/subjects/cl-camp6.en.md index 585438bc6..9b728fe0f 100644 --- a/subjects/cl-camp6.en.md +++ b/subjects/cl-camp6.en.md @@ -9,7 +9,7 @@ Create a file `countfiles.sh`, which will print the number **(and only the numbe ### Usage ```console -student@ubuntu:~/piscine/test$ ./countfiles.sh | cat -e +student@ubuntu:~/piscine-go/test$ ./countfiles.sh | cat -e 12$ -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/cl-camp6.fr.md b/subjects/cl-camp6.fr.md index f5577df39..23da145f9 100644 --- a/subjects/cl-camp6.fr.md +++ b/subjects/cl-camp6.fr.md @@ -9,7 +9,7 @@ Créer un fichier `countfiles.sh`, qui affichera le nombre **(et seulement le no ### Utilisation ```console -student@ubuntu:~/piscine/test$ ./countfiles.sh | cat -e +student@ubuntu:~/piscine-go/test$ ./countfiles.sh | cat -e 12$ -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/cl-camp7.en.md b/subjects/cl-camp7.en.md index bbbfabed5..e1337abe0 100644 --- a/subjects/cl-camp7.en.md +++ b/subjects/cl-camp7.en.md @@ -9,7 +9,7 @@ Create a file `"\?$*'ChouMi'*$?\"` that will contain "01" and **nothing else**. ### Usage ```console -student@ubuntu:~/piscine/test$ ls | cat -e -"\?$*'ChouMi'*$?\" $ -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ls | cat -e +"\?$*'ChouMi'*$?\"$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/cl-camp7.fr.md b/subjects/cl-camp7.fr.md index c316524b4..764a80ea4 100644 --- a/subjects/cl-camp7.fr.md +++ b/subjects/cl-camp7.fr.md @@ -9,7 +9,7 @@ Créer un fichier `"\?$*'ChouMi'*$?\"` qui contiendra "01" et **rien d'autre**. ### Utilisation ```console -student@ubuntu:~/piscine/test$ ls | cat -e +student@ubuntu:~/piscine-go/test$ ls | cat -e "\?$*'ChouMi'*$?\" $ -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/collatzcountdown.en.md b/subjects/collatzcountdown.en.md index 02607c56e..85dbc8df3 100644 --- a/subjects/collatzcountdown.en.md +++ b/subjects/collatzcountdown.en.md @@ -33,8 +33,8 @@ func main() { And its output : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 10 -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/comcheck.en.md b/subjects/comcheck.en.md index 17b6674de..b1190914c 100644 --- a/subjects/comcheck.en.md +++ b/subjects/comcheck.en.md @@ -11,10 +11,10 @@ Write a program `comcheck` that displays on the standard output `Alert!!!` follo ### Usage ```console -student@ubuntu:~/piscine/comcheck$ go build -student@ubuntu:~/piscine/comcheck$ ./comcheck "I" "Will" "Enter" "the" "galaxy" +student@ubuntu:~/piscine-go/comcheck$ go build +student@ubuntu:~/piscine-go/comcheck$ ./comcheck "I" "Will" "Enter" "the" "galaxy" Alert!!! -student@ubuntu:~/piscine/comcheck$ ./comcheck "galaxy 01" "do" "you" "hear" "me" +student@ubuntu:~/piscine-go/comcheck$ ./comcheck "galaxy 01" "do" "you" "hear" "me" Alert!!! -student@ubuntu:~/piscine/comcheck$ +student@ubuntu:~/piscine-go/comcheck$ ``` diff --git a/subjects/comcheck.fr.md b/subjects/comcheck.fr.md index 181f5e5ca..dd890cc4c 100644 --- a/subjects/comcheck.fr.md +++ b/subjects/comcheck.fr.md @@ -11,10 +11,10 @@ ### Usage ```console -student@ubuntu:~/piscine/comcheck$ go build -student@ubuntu:~/piscine/comcheck$ ./comcheck "I" "Will" "Enter" "the" "galaxy" +student@ubuntu:~/piscine-go/comcheck$ go build +student@ubuntu:~/piscine-go/comcheck$ ./comcheck "I" "Will" "Enter" "the" "galaxy" Alert!!! -student@ubuntu:~/piscine/comcheck$ ./comcheck "galaxy 01" "do" "you" "hear" "me" +student@ubuntu:~/piscine-go/comcheck$ ./comcheck "galaxy 01" "do" "you" "hear" "me" Alert!!! -student@ubuntu:~/piscine/comcheck$ +student@ubuntu:~/piscine-go/comcheck$ ``` diff --git a/subjects/compact.en.md b/subjects/compact.en.md index 5c637f851..40ee7df79 100644 --- a/subjects/compact.en.md +++ b/subjects/compact.en.md @@ -53,8 +53,8 @@ func main() { And its output : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test a b @@ -65,5 +65,5 @@ Size after compacting: 3 a b c -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/compact.fr.md b/subjects/compact.fr.md index aaeb5b8e3..54f2f339c 100644 --- a/subjects/compact.fr.md +++ b/subjects/compact.fr.md @@ -53,8 +53,8 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test a b @@ -65,5 +65,5 @@ Size after compacting: 3 a b c -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/compare.en.md b/subjects/compare.en.md index 9133ea0c8..2ac075c46 100644 --- a/subjects/compare.en.md +++ b/subjects/compare.en.md @@ -34,10 +34,10 @@ func main() { And its output : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 0 -1 1 -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/compare.fr.md b/subjects/compare.fr.md index 9f27f0c0a..c227fe0ff 100644 --- a/subjects/compare.fr.md +++ b/subjects/compare.fr.md @@ -34,10 +34,10 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 0 -1 1 -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/concat.en.md b/subjects/concat.en.md index c5b4644ce..67f2fc8bf 100644 --- a/subjects/concat.en.md +++ b/subjects/concat.en.md @@ -33,8 +33,8 @@ func main() { And its output : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test Hello! How are you? -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/concat.fr.md b/subjects/concat.fr.md index 20f7feeb0..7976aae9b 100644 --- a/subjects/concat.fr.md +++ b/subjects/concat.fr.md @@ -33,8 +33,8 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test Hello! How are you? -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/concatparams.en.md b/subjects/concatparams.en.md index b9425ecdb..de48463ec 100644 --- a/subjects/concatparams.en.md +++ b/subjects/concatparams.en.md @@ -34,11 +34,11 @@ func main() { And its output : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test Hello how are you? -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/concatparams.fr.md b/subjects/concatparams.fr.md index b5e5084c0..0836badc5 100644 --- a/subjects/concatparams.fr.md +++ b/subjects/concatparams.fr.md @@ -34,11 +34,11 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test Hello how are you? -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/convertbase.en.md b/subjects/convertbase.en.md index 760e34539..0f4862a55 100644 --- a/subjects/convertbase.en.md +++ b/subjects/convertbase.en.md @@ -36,8 +36,8 @@ func main() { And its output : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 43 -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/convertbase.fr.md b/subjects/convertbase.fr.md index 76899372b..64c5d6e26 100644 --- a/subjects/convertbase.fr.md +++ b/subjects/convertbase.fr.md @@ -36,8 +36,8 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 43 -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/countdown.en.md b/subjects/countdown.en.md index adf526884..04658497f 100644 --- a/subjects/countdown.en.md +++ b/subjects/countdown.en.md @@ -8,8 +8,8 @@ newline(`'\n'`). ### Usage ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 9876543210 -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/countdown.fr.md b/subjects/countdown.fr.md index 550a60104..2c3cd90cb 100644 --- a/subjects/countdown.fr.md +++ b/subjects/countdown.fr.md @@ -7,8 +7,8 @@ ### Utilisation ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 9876543210 -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/countif.en.md b/subjects/countif.en.md index 234987de4..727ce5870 100644 --- a/subjects/countif.en.md +++ b/subjects/countif.en.md @@ -36,9 +36,9 @@ func main() { And its output : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 0 2 -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/countif.fr.md b/subjects/countif.fr.md index 7db913a68..77b6a87a2 100644 --- a/subjects/countif.fr.md +++ b/subjects/countif.fr.md @@ -36,9 +36,9 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 0 2 -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/createelem.en.md b/subjects/createelem.en.md index ecdb9ea7e..bf0e0657a 100644 --- a/subjects/createelem.en.md +++ b/subjects/createelem.en.md @@ -38,8 +38,8 @@ func main() { And its output : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test &{1234} -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/createelem.fr.md b/subjects/createelem.fr.md index 8fe85efd1..32521643f 100644 --- a/subjects/createelem.fr.md +++ b/subjects/createelem.fr.md @@ -38,8 +38,8 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test &{1234} -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/displaya.en.md b/subjects/displaya.en.md index 2e0e6f539..37e8f96bd 100644 --- a/subjects/displaya.en.md +++ b/subjects/displaya.en.md @@ -10,12 +10,12 @@ string, the program just writes `a` followed by a newline(`'\n'`). If the number ### Usage ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test "abc" +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test "abc" a -student@ubuntu:~/piscine/test$ ./test "bcvbvA" +student@ubuntu:~/piscine-go/test$ ./test "bcvbvA" a -student@ubuntu:~/piscine/test$ ./test "nbv" +student@ubuntu:~/piscine-go/test$ ./test "nbv" a -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/displaya.fr.md b/subjects/displaya.fr.md index fc14657c9..21bd7c7af 100644 --- a/subjects/displaya.fr.md +++ b/subjects/displaya.fr.md @@ -7,12 +7,12 @@ ### Utilisation ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test "abc" +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test "abc" a -student@ubuntu:~/piscine/test$ ./test "bcvbvA" +student@ubuntu:~/piscine-go/test$ ./test "bcvbvA" a -student@ubuntu:~/piscine/test$ ./test "nbv" +student@ubuntu:~/piscine-go/test$ ./test "nbv" a -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/displayfirstparam.en.md b/subjects/displayfirstparam.en.md index 2f0cffaef..986dc459a 100644 --- a/subjects/displayfirstparam.en.md +++ b/subjects/displayfirstparam.en.md @@ -7,11 +7,11 @@ Write a program that takes `strings` as arguments, and displays its first argume ### Usage ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test hello there +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test hello there hello -student@ubuntu:~/piscine/test$ ./test "hello there" how are you +student@ubuntu:~/piscine-go/test$ ./test "hello there" how are you hello there -student@ubuntu:~/piscine/test$ ./test -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/displayfirstparam.fr.md b/subjects/displayfirstparam.fr.md index 4b50eeb9e..7f74947e5 100644 --- a/subjects/displayfirstparam.fr.md +++ b/subjects/displayfirstparam.fr.md @@ -7,11 +7,11 @@ ### Utilisation ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test hello there +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test hello there hello -student@ubuntu:~/piscine/test$ ./test "hello there" how are you +student@ubuntu:~/piscine-go/test$ ./test "hello there" how are you hello there -student@ubuntu:~/piscine/test$ ./test -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/displaylastparam.en.md b/subjects/displaylastparam.en.md index 557c47593..27d059377 100644 --- a/subjects/displaylastparam.en.md +++ b/subjects/displaylastparam.en.md @@ -7,13 +7,13 @@ Write a program that takes `strings` as arguments, and displays its last argumen ### Expected output ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test hello there +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test hello there there -student@ubuntu:~/piscine/test$ ./test "hello there" how are you +student@ubuntu:~/piscine-go/test$ ./test "hello there" how are you you -student@ubuntu:~/piscine/test$ ./test "hello there" +student@ubuntu:~/piscine-go/test$ ./test "hello there" hello there -student@ubuntu:~/piscine/test$ ./test -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/displaylastparam.fr.md b/subjects/displaylastparam.fr.md index 8114ee0b3..26e63f1fb 100644 --- a/subjects/displaylastparam.fr.md +++ b/subjects/displaylastparam.fr.md @@ -7,13 +7,13 @@ ### Expected output ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test hello there +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test hello there there -student@ubuntu:~/piscine/test$ ./test "hello there" how are you +student@ubuntu:~/piscine-go/test$ ./test "hello there" how are you you -student@ubuntu:~/piscine/test$ ./test "hello there" +student@ubuntu:~/piscine-go/test$ ./test "hello there" hello there -student@ubuntu:~/piscine/test$ ./test -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ./test +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/displayz.en.md b/subjects/displayz.en.md index 07cb8d9a9..1ed71cec7 100644 --- a/subjects/displayz.en.md +++ b/subjects/displayz.en.md @@ -10,12 +10,12 @@ string, the program just writes `z` followed by a newline(`'\n'`). If the number ### Usage ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test "xyz" +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test "xyz" z -student@ubuntu:~/piscine/test$ ./test "bcvbvZ" +student@ubuntu:~/piscine-go/test$ ./test "bcvbvZ" z -student@ubuntu:~/piscine/test$ ./test "nbv" +student@ubuntu:~/piscine-go/test$ ./test "nbv" z -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ ./test ``` diff --git a/subjects/displayz.fr.md b/subjects/displayz.fr.md index 62fc4f2f5..d4af3c100 100644 --- a/subjects/displayz.fr.md +++ b/subjects/displayz.fr.md @@ -7,12 +7,12 @@ ### Utilisation ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test "xyz" +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test "xyz" z -student@ubuntu:~/piscine/test$ ./test "bcvbvZ" +student@ubuntu:~/piscine-go/test$ ./test "bcvbvZ" z -student@ubuntu:~/piscine/test$ ./test "nbv" +student@ubuntu:~/piscine-go/test$ ./test "nbv" z -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ ./test ``` diff --git a/subjects/divmod.en.md b/subjects/divmod.en.md index 1deb4ce1d..6d2ab871e 100644 --- a/subjects/divmod.en.md +++ b/subjects/divmod.en.md @@ -42,9 +42,9 @@ func main() { And its output : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 6 1 -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/divmod.fr.md b/subjects/divmod.fr.md index 5af68c2ff..fb79adda6 100644 --- a/subjects/divmod.fr.md +++ b/subjects/divmod.fr.md @@ -42,9 +42,9 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 6 1 -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/doop.en.md b/subjects/doop.en.md index d0c5a914f..58ac5b07f 100644 --- a/subjects/doop.en.md +++ b/subjects/doop.en.md @@ -21,20 +21,20 @@ The program has to handle the modulo and division operations by 0 as shown on th ### Usage ```console -student@ubuntu:~/piscine/test$ go build doop.go -student@ubuntu:~/piscine/test$ ./doop -student@ubuntu:~/piscine/test$ ./doop 1 + 1 +student@ubuntu:~/piscine-go/test$ go build doop.go +student@ubuntu:~/piscine-go/test$ ./doop +student@ubuntu:~/piscine-go/test$ ./doop 1 + 1 2 -student@ubuntu:~/piscine/test$ ./doop hello + 1 | cat -e +student@ubuntu:~/piscine-go/test$ ./doop hello + 1 | cat -e 0$ -student@ubuntu:~/piscine/test$ ./doop 1 p 1 +student@ubuntu:~/piscine-go/test$ ./doop 1 p 1 0 -student@ubuntu:~/piscine/test$ ./doop 1 + 1 +student@ubuntu:~/piscine-go/test$ ./doop 1 + 1 2 -student@ubuntu:~/piscine/test$ ./doop 1 / 0 | cat -e +student@ubuntu:~/piscine-go/test$ ./doop 1 / 0 | cat -e No division by 0$ -student@ubuntu:~/piscine/test$ ./doop 1 % 0 | cat -e +student@ubuntu:~/piscine-go/test$ ./doop 1 % 0 | cat -e No modulo by 0$ -student@ubuntu:~/piscine/test$ ./doop 1 "*" 1 +student@ubuntu:~/piscine-go/test$ ./doop 1 "*" 1 1 ``` diff --git a/subjects/doop.fr.md b/subjects/doop.fr.md index 5075e6cc2..8f799ea1c 100644 --- a/subjects/doop.fr.md +++ b/subjects/doop.fr.md @@ -22,21 +22,21 @@ Le programme doit géré les opérations modulo et division par 0 comme dans les ### Utilisation ```console -student@ubuntu:~/piscine/test$ go build doop.go -student@ubuntu:~/piscine/test$ ./doop -student@ubuntu:~/piscine/test$ ./doop 1 + 1 +student@ubuntu:~/piscine-go/test$ go build doop.go +student@ubuntu:~/piscine-go/test$ ./doop +student@ubuntu:~/piscine-go/test$ ./doop 1 + 1 2 -student@ubuntu:~/piscine/test$ ./doop hello + 1 | cat -e +student@ubuntu:~/piscine-go/test$ ./doop hello + 1 | cat -e 0$ -student@ubuntu:~/piscine/test$ ./doop 1 p 1 +student@ubuntu:~/piscine-go/test$ ./doop 1 p 1 0 -student@ubuntu:~/piscine/test$ ./doop 1 + 1 +student@ubuntu:~/piscine-go/test$ ./doop 1 + 1 2 -student@ubuntu:~/piscine/test$ ./doop 1 / 0 +student@ubuntu:~/piscine-go/test$ ./doop 1 / 0 No division by 0 -student@ubuntu:~/piscine/test$ ./doop 1 % 0 +student@ubuntu:~/piscine-go/test$ ./doop 1 % 0 No modulo by 0 -student@ubuntu:~/piscine/test$ ./doop 1 * 1 +student@ubuntu:~/piscine-go/test$ ./doop 1 * 1 1 ``` diff --git a/subjects/eightqueens.en.md b/subjects/eightqueens.en.md index 9964bfdd0..bad19e06a 100644 --- a/subjects/eightqueens.en.md +++ b/subjects/eightqueens.en.md @@ -1,6 +1,6 @@ ## eightqueens -### Intructions +### Instructions Write a function that prints the solutions to the [eight queens puzzle](https://en.wikipedia.org/wiki/Eight_queens_puzzle). @@ -9,8 +9,8 @@ Recursivity must be used to solve this problem. It should print something like this : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 15863724 16837425 17468253 diff --git a/subjects/eightqueens.fr.md b/subjects/eightqueens.fr.md index 927baa65b..b3e9640ee 100644 --- a/subjects/eightqueens.fr.md +++ b/subjects/eightqueens.fr.md @@ -1,6 +1,6 @@ ## eightqueens -### Intructions +### Instructions Écrire une [fonction](TODO-LINK) qui affiche toutes les solutions du [problème des huit dames](https://en.wikipedia.org/wiki/Eight_queens_puzzle). @@ -9,8 +9,8 @@ La récursion doit être utilisée pour résoudre ce problème. L'affichage sera quelque chose comme ça : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 15863724 16837425 17468253 diff --git a/subjects/enigma.en.md b/subjects/enigma.en.md index 5f8e01225..ce2d533b3 100644 --- a/subjects/enigma.en.md +++ b/subjects/enigma.en.md @@ -74,8 +74,8 @@ func main() { And its output : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 5 2 7 @@ -85,5 +85,5 @@ After using Enigma 6 5 7 -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/enigma.fr.md b/subjects/enigma.fr.md index 3a1bb321f..5451e4dff 100644 --- a/subjects/enigma.fr.md +++ b/subjects/enigma.fr.md @@ -73,8 +73,8 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 5 2 7 @@ -84,5 +84,5 @@ After using Enigma 6 5 7 -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/fibonacci.en.md b/subjects/fibonacci.en.md index 47ad3862c..47e89f3d9 100644 --- a/subjects/fibonacci.en.md +++ b/subjects/fibonacci.en.md @@ -1,6 +1,6 @@ ## fibonacci -### Intructions +### Instructions Write an **recursive** function that returns the value of fibonacci sequence matching the index passed as parameter. @@ -17,7 +17,7 @@ A negative index will return `-1`. ```go package main -func Fibonacci(int index) int { +func Fibonacci(index int) int { } ``` @@ -43,8 +43,8 @@ func main() { And its output : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 3 -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/fibonacci.fr.md b/subjects/fibonacci.fr.md index c6b5b0a22..be9191788 100644 --- a/subjects/fibonacci.fr.md +++ b/subjects/fibonacci.fr.md @@ -1,6 +1,6 @@ ## fibonacci -### Intructions +### Instructions Écrire une fonction **récursive** qui renvoie la valeur de la suite de fibonacci correspondant à l'index passé en paramètre. @@ -17,7 +17,7 @@ Un index négatif renvoie `-1`. ```go package main -func Fibonacci(int index) int { +func Fibonacci(index int) int { } ``` @@ -43,9 +43,9 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine/test$go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$go build +student@ubuntu:~/piscine-go/test$ ./test 3 -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/findnextprime.en.md b/subjects/findnextprime.en.md index 4e74607fc..6d844c848 100644 --- a/subjects/findnextprime.en.md +++ b/subjects/findnextprime.en.md @@ -1,6 +1,6 @@ ## findnextprime -### Intructions +### Instructions Write a function that returns the first prime number that is equal or superior to the `int` passed as parameter. @@ -9,7 +9,7 @@ The function must be optimized in order to avoid time-outs with the tester. ### Expected function ```go -func FindNextPrime(int nb) int { +func FindNextPrime(nb int) int { } ``` @@ -35,9 +35,9 @@ func main() { And its output : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 5 5 -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/findnextprime.fr.md b/subjects/findnextprime.fr.md index 5af76ba66..a7c8e0882 100644 --- a/subjects/findnextprime.fr.md +++ b/subjects/findnextprime.fr.md @@ -1,6 +1,6 @@ ## findnextprime -### Intructions +### Instructions Écrire une fonction qui renvoie le premier nombre premier qui est égal ou supérieur à l'`int` passé en paramètre. @@ -9,7 +9,7 @@ La fonction devra être optimisée pour éviter les time-outs avec le testeur. ### Fonction attendue ```go -func FindNextPrime(int nb) int { +func FindNextPrime(nb int) int { } ``` @@ -37,9 +37,9 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 5 5 -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/firstrune.en.md b/subjects/firstrune.en.md index f257da3dd..d4cd52feb 100644 --- a/subjects/firstrune.en.md +++ b/subjects/firstrune.en.md @@ -35,8 +35,8 @@ func main() { And its output : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test HSO -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/firstrune.fr.md b/subjects/firstrune.fr.md index 932cbe453..ebaf6eb35 100644 --- a/subjects/firstrune.fr.md +++ b/subjects/firstrune.fr.md @@ -35,8 +35,8 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test HSO -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/firstword.en.md b/subjects/firstword.en.md index 13ada5971..25fa1c061 100644 --- a/subjects/firstword.en.md +++ b/subjects/firstword.en.md @@ -13,14 +13,14 @@ Write a program that takes a `string` and displays its first word, followed by a ### Usage ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test "hello there" +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test "hello there" hello -student@ubuntu:~/piscine/test$ ./test "hello ......... bye" +student@ubuntu:~/piscine-go/test$ ./test "hello ......... bye" hello -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ ./test -student@ubuntu:~/piscine/test$ ./test "hello" "there" +student@ubuntu:~/piscine-go/test$ ./test "hello" "there" -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/firstword.fr.md b/subjects/firstword.fr.md index 4eedf04c2..74b78fb7d 100644 --- a/subjects/firstword.fr.md +++ b/subjects/firstword.fr.md @@ -13,14 +13,14 @@ ### Utilisation ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test "hello there" +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test "hello there" hello -student@ubuntu:~/piscine/test$ ./test "hello ......... bye" +student@ubuntu:~/piscine-go/test$ ./test "hello ......... bye" hello -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ ./test -student@ubuntu:~/piscine/test$ ./test "hello" "there" +student@ubuntu:~/piscine-go/test$ ./test "hello" "there" -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/foreach.en.md b/subjects/foreach.en.md index d21c6ca09..d47ec6520 100644 --- a/subjects/foreach.en.md +++ b/subjects/foreach.en.md @@ -29,8 +29,8 @@ func main() { And its output : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 123456 -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/foreach.fr.md b/subjects/foreach.fr.md index 18ac85ac7..868b119b0 100644 --- a/subjects/foreach.fr.md +++ b/subjects/foreach.fr.md @@ -29,8 +29,8 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 123456 -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/fprime.en.md b/subjects/fprime.en.md index 7e3f65ebc..ae8697a70 100644 --- a/subjects/fprime.en.md +++ b/subjects/fprime.en.md @@ -13,18 +13,18 @@ Write a program that takes a positive `int` and displays its prime factors, foll ### Usage ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test 225225 +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 225225 3*3*5*5*7*11*13 -student@ubuntu:~/piscine/test$ ./test 8333325 +student@ubuntu:~/piscine-go/test$ ./test 8333325 3*3*5*5*7*11*13*37 -student@ubuntu:~/piscine/test$ ./test 9539 +student@ubuntu:~/piscine-go/test$ ./test 9539 9539 -student@ubuntu:~/piscine/test$ ./test 804577 +student@ubuntu:~/piscine-go/test$ ./test 804577 804577 -student@ubuntu:~/piscine/test$ ./test 42 +student@ubuntu:~/piscine-go/test$ ./test 42 2*3*7 -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ ./test -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/fprime.fr.md b/subjects/fprime.fr.md index 28b11eb44..bde628daf 100644 --- a/subjects/fprime.fr.md +++ b/subjects/fprime.fr.md @@ -13,18 +13,18 @@ ### Utilisation ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test 225225 +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 225225 3*3*5*5*7*11*13 -student@ubuntu:~/piscine/test$ ./test 8333325 +student@ubuntu:~/piscine-go/test$ ./test 8333325 3*3*5*5*7*11*13*37 -student@ubuntu:~/piscine/test$ ./test 9539 +student@ubuntu:~/piscine-go/test$ ./test 9539 9539 -student@ubuntu:~/piscine/test$ ./test 804577 +student@ubuntu:~/piscine-go/test$ ./test 804577 804577 -student@ubuntu:~/piscine/test$ ./test 42 +student@ubuntu:~/piscine-go/test$ ./test 42 2*3*7 -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ ./test -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/hello.en.md b/subjects/hello.en.md index c0380fbc9..60207b56b 100644 --- a/subjects/hello.en.md +++ b/subjects/hello.en.md @@ -7,8 +7,8 @@ Write a program that displays "Hello World!" followed by a newline(`'\n'`). ### Usage ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test Hello World! -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/hello.fr.md b/subjects/hello.fr.md index cd50fd567..ac6c9f93f 100644 --- a/subjects/hello.fr.md +++ b/subjects/hello.fr.md @@ -7,8 +7,8 @@ ### Utilisation ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test Hello World! -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/index.en.md b/subjects/index.en.md index 4210f76d2..7272ad1d0 100644 --- a/subjects/index.en.md +++ b/subjects/index.en.md @@ -34,10 +34,10 @@ func main() { And its output : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 2 1 -1 -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/index.fr.md b/subjects/index.fr.md index fa2566387..dfad63ab9 100644 --- a/subjects/index.fr.md +++ b/subjects/index.fr.md @@ -34,10 +34,10 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 2 1 -1 -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/inter.en.md b/subjects/inter.en.md index f72a410d2..da04aadcf 100644 --- a/subjects/inter.en.md +++ b/subjects/inter.en.md @@ -11,10 +11,10 @@ Write a program that takes two `strings` and displays, without doubles, the char ### Usage ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test "padinton" "paqefwtdjetyiytjneytjoeyjnejeyj" +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test "padinton" "paqefwtdjetyiytjneytjoeyjnejeyj" padinto -student@ubuntu:~/piscine/test$ ./test ddf6vewg64f twthgdwthdwfteewhrtag6h4ffdhsd +student@ubuntu:~/piscine-go/test$ ./test ddf6vewg64f twthgdwthdwfteewhrtag6h4ffdhsd df6ewg4 -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/inter.fr.md b/subjects/inter.fr.md index 84b38c16d..e5b8f153c 100644 --- a/subjects/inter.fr.md +++ b/subjects/inter.fr.md @@ -11,10 +11,10 @@ ### Utilisation ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test "padinton" "paqefwtdjetyiytjneytjoeyjnejeyj" +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test "padinton" "paqefwtdjetyiytjneytjoeyjnejeyj" padinto -student@ubuntu:~/piscine/test$ ./test ddf6vewg64f twthgdwthdwfteewhrtag6h4ffdhsd +student@ubuntu:~/piscine-go/test$ ./test ddf6vewg64f twthgdwthdwfteewhrtag6h4ffdhsd df6ewg4 -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/introduction.en.md b/subjects/introduction.en.md index 65a4fe0a7..1744c853a 100644 --- a/subjects/introduction.en.md +++ b/subjects/introduction.en.md @@ -27,9 +27,9 @@ Where `{username}` is your `github username` If the `{username}` is `kigiri` : ```console -user@host:~/piscine$ ./hello.sh +user@host:~/piscine-go$ ./hello.sh Hello kigiri! -user@host:~/piscine$ +user@host:~/piscine-go$ ``` #### 3- go-say-hello diff --git a/subjects/introduction.fr.md b/subjects/introduction.fr.md index 06a075f68..0e7b2e90e 100644 --- a/subjects/introduction.fr.md +++ b/subjects/introduction.fr.md @@ -27,9 +27,9 @@ Où `{username}` est votre `github username` Si l'`{username}` est `kigiri` : ```console -user@host:~/piscine$ ./hello.sh +user@host:~/piscine-go$ ./hello.sh Hello kigiri! -user@host:~/piscine$ +user@host:~/piscine-go$ ``` #### 3- go-say-hello diff --git a/subjects/isalpha.en.md b/subjects/isalpha.en.md index 92cc667ff..298a9f020 100644 --- a/subjects/isalpha.en.md +++ b/subjects/isalpha.en.md @@ -36,11 +36,11 @@ func main() { And its output : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test false true false true -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/isalpha.fr.md b/subjects/isalpha.fr.md index 0bd3b2ce7..9540ce54f 100644 --- a/subjects/isalpha.fr.md +++ b/subjects/isalpha.fr.md @@ -36,11 +36,11 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test false true false true -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/islower.en.md b/subjects/islower.en.md index 71d43576f..c9015e4a2 100644 --- a/subjects/islower.en.md +++ b/subjects/islower.en.md @@ -34,9 +34,9 @@ func main() { And its output : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test true false -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/islower.fr.md b/subjects/islower.fr.md index 47b13436a..7234ef69b 100644 --- a/subjects/islower.fr.md +++ b/subjects/islower.fr.md @@ -34,9 +34,9 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test true false -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/isnegative.en.md b/subjects/isnegative.en.md index faa8b57ce..b8cf74bab 100644 --- a/subjects/isnegative.en.md +++ b/subjects/isnegative.en.md @@ -31,10 +31,10 @@ func main() { And its output : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test F F T -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/isnegative.fr.md b/subjects/isnegative.fr.md index 9804e33bd..d65ddea2c 100644 --- a/subjects/isnegative.fr.md +++ b/subjects/isnegative.fr.md @@ -31,10 +31,10 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test F F T -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/isnumeric.en.md b/subjects/isnumeric.en.md index 550dced3d..781e8f870 100644 --- a/subjects/isnumeric.en.md +++ b/subjects/isnumeric.en.md @@ -33,9 +33,9 @@ func main() { And its output : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test true false -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/isnumeric.fr.md b/subjects/isnumeric.fr.md index adaec9bae..0cfbb276b 100644 --- a/subjects/isnumeric.fr.md +++ b/subjects/isnumeric.fr.md @@ -34,9 +34,9 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test true false -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/isprime.en.md b/subjects/isprime.en.md index 8dc2593b3..0962260cd 100644 --- a/subjects/isprime.en.md +++ b/subjects/isprime.en.md @@ -1,6 +1,6 @@ ## isprime -### Intructions +### Instructions Write a function that returns `true` if the `int` passed as parameter is a prime number. Otherwise it returns `false`. @@ -9,7 +9,7 @@ The function must be optimized in order to avoid time-outs with the tester. ### Expected function ```go -func IsPrime(int nb) bool { +func IsPrime(nb int) bool { } ``` @@ -35,9 +35,9 @@ func main() { And its output : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test true false -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/isprime.fr.md b/subjects/isprime.fr.md index b244d29aa..0903a2358 100644 --- a/subjects/isprime.fr.md +++ b/subjects/isprime.fr.md @@ -1,6 +1,6 @@ ## isprime -### Intructions +### Instructions Écrire une fonction qui renvoie `true` si l'`int` passé en paramètre est un nombre premier. Autrement elle renvoie `false`. @@ -9,7 +9,7 @@ La fonction devra être optimisée pour éviter les time-outs avec le testeur. ### Fonction attendue ```go -func IsPrime(int nb) bool { +func IsPrime(nb int) bool { } ``` @@ -35,9 +35,9 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test true false -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/isprintable.en.md b/subjects/isprintable.en.md index f306f083d..6bd30a8dc 100644 --- a/subjects/isprintable.en.md +++ b/subjects/isprintable.en.md @@ -34,9 +34,9 @@ func main() { And its output : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test true false -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/isprintable.fr.md b/subjects/isprintable.fr.md index a5a3096e7..1e2f1a1d8 100644 --- a/subjects/isprintable.fr.md +++ b/subjects/isprintable.fr.md @@ -34,9 +34,9 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test true false -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/issorted.en.md b/subjects/issorted.en.md index 97e5a23d3..249da6380 100644 --- a/subjects/issorted.en.md +++ b/subjects/issorted.en.md @@ -43,9 +43,9 @@ func main() { And its output : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test true false -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/issorted.fr.md b/subjects/issorted.fr.md index 031a8b294..1d378d409 100644 --- a/subjects/issorted.fr.md +++ b/subjects/issorted.fr.md @@ -42,9 +42,9 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test true false -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/isupper.en.md b/subjects/isupper.en.md index 66980bec7..396e5893e 100644 --- a/subjects/isupper.en.md +++ b/subjects/isupper.en.md @@ -34,9 +34,9 @@ func main() { And its output : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test true false -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/isupper.fr.md b/subjects/isupper.fr.md index 9b991785d..393bf54db 100644 --- a/subjects/isupper.fr.md +++ b/subjects/isupper.fr.md @@ -34,8 +34,8 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test true false stude0t@ubuntu:~$ diff --git a/subjects/iterativefactorial.en.md b/subjects/iterativefactorial.en.md index 2e882e558..7557d75fd 100644 --- a/subjects/iterativefactorial.en.md +++ b/subjects/iterativefactorial.en.md @@ -1,6 +1,6 @@ ## iterativefactorial -### Intructions +### Instructions Write an **iterative** function that returns the factorial of the `int` passed as parameter. @@ -9,7 +9,7 @@ Errors (non possible values or overflows) will return `0`. ### Expected function ```go -func IterativeFactorial(int nb) int { +func IterativeFactorial(nb int) int { } ``` @@ -35,8 +35,8 @@ func main() { And its output : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 24 -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/iterativefactorial.fr.md b/subjects/iterativefactorial.fr.md index 79f2a2f24..2f98314e3 100644 --- a/subjects/iterativefactorial.fr.md +++ b/subjects/iterativefactorial.fr.md @@ -1,6 +1,6 @@ ## iterativefactorial -### Intructions +### Instructions Écrire une fonction **itérative** qui renvoie la factorielle d'un `int` passé en paramètre. @@ -9,7 +9,7 @@ Les erreurs (valeurs non possibles ou overflows) renverront `0`. ### Fonction attendue ```go -func IterativeFactorial(int nb) int { +func IterativeFactorial(nb int) int { } ``` @@ -35,8 +35,8 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 24 -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/iterativepower.en.md b/subjects/iterativepower.en.md index a7d30fea4..17b8f575f 100644 --- a/subjects/iterativepower.en.md +++ b/subjects/iterativepower.en.md @@ -1,6 +1,6 @@ ## iterativepower -### Intructions +### Instructions Write an **iterative** function that returns the power of the `int` passed as parameter. @@ -9,7 +9,7 @@ Negative powers will return `0`. Overflows do **not** have to be dealt with. ### Expected function ```go -func IterativePower(int nb, int power) int { +func IterativePower(nb int, power int) int { } ``` @@ -37,8 +37,8 @@ func main() { And its output : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 64 -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/iterativepower.fr.md b/subjects/iterativepower.fr.md index c4fac89d7..af3fc617c 100644 --- a/subjects/iterativepower.fr.md +++ b/subjects/iterativepower.fr.md @@ -1,6 +1,6 @@ ## iterativepower -### Intructions +### Instructions Écrire une fonction **itérative** qui renvoie la puissance de deux `int` passés en paramètre. @@ -9,7 +9,7 @@ Les puissances négatives renverront `0`. Les overflows **ne doivent pas** être ### Fonction attendue ```go -func IterativePower(int nb, int power) int { +func IterativePower(nb int, power int) int { } ``` @@ -37,8 +37,8 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 64 -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/join.en.md b/subjects/join.en.md index cf5800d35..d5daaba3c 100644 --- a/subjects/join.en.md +++ b/subjects/join.en.md @@ -33,8 +33,8 @@ func main() { And its output : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test Hello!: How: are: you? -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/join.fr.md b/subjects/join.fr.md index 03317193a..0a3584e6b 100644 --- a/subjects/join.fr.md +++ b/subjects/join.fr.md @@ -33,8 +33,8 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test Hello!: How: are: you? -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/lastrune.en.md b/subjects/lastrune.en.md index 03a110671..e9bd15217 100644 --- a/subjects/lastrune.en.md +++ b/subjects/lastrune.en.md @@ -35,8 +35,8 @@ func main() { And its output : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test !!! -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/lastrune.fr.md b/subjects/lastrune.fr.md index da208207d..fdd47229c 100644 --- a/subjects/lastrune.fr.md +++ b/subjects/lastrune.fr.md @@ -35,8 +35,8 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test !!! -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/listat.en.md b/subjects/listat.en.md index 0ae017591..8f8d9aeef 100644 --- a/subjects/listat.en.md +++ b/subjects/listat.en.md @@ -50,10 +50,10 @@ func main() { And its output : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 1 how are -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/listat.fr.md b/subjects/listat.fr.md index 9d7467ddb..6010b4294 100644 --- a/subjects/listat.fr.md +++ b/subjects/listat.fr.md @@ -50,10 +50,10 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 1 how are -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/listclear.en.md b/subjects/listclear.en.md index 590f436d5..5bf9a8d93 100644 --- a/subjects/listclear.en.md +++ b/subjects/listclear.en.md @@ -58,11 +58,11 @@ func main() { And its output : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test ------list------ I -> 1 -> something -> 2 -> ------updated list------ -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/listclear.fr.md b/subjects/listclear.fr.md index fa073f9b9..80e33a767 100644 --- a/subjects/listclear.fr.md +++ b/subjects/listclear.fr.md @@ -58,11 +58,11 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test ------list------ I -> 1 -> something -> 2 -> ------updated list------ -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/listfind.en.md b/subjects/listfind.en.md index b17e4f45d..f7271e413 100644 --- a/subjects/listfind.en.md +++ b/subjects/listfind.en.md @@ -58,11 +58,11 @@ func main() { And its output : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 0xc42000a0a0 hello2 -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` ### Note diff --git a/subjects/listfind.fr.md b/subjects/listfind.fr.md index 6f553abf6..2be405aee 100644 --- a/subjects/listfind.fr.md +++ b/subjects/listfind.fr.md @@ -58,11 +58,11 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 0xc42000a0a0 hello2 -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` ### Note diff --git a/subjects/listforeach.en.md b/subjects/listforeach.en.md index d2f91bb4b..4dc0c2fe3 100644 --- a/subjects/listforeach.en.md +++ b/subjects/listforeach.en.md @@ -76,11 +76,11 @@ func main() { And its output : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 12 22 32 52 -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/listforeach.fr.md b/subjects/listforeach.fr.md index 75d6c2e58..57a62c2fa 100644 --- a/subjects/listforeach.fr.md +++ b/subjects/listforeach.fr.md @@ -76,11 +76,11 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 12 22 32 52 -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/listforeachif.en.md b/subjects/listforeachif.en.md index 497e3dc29..fb54e4633 100644 --- a/subjects/listforeachif.en.md +++ b/subjects/listforeachif.en.md @@ -118,8 +118,8 @@ func main() { And its output : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 1 -> hello -> 3 -> there -> 23 -> ! -> 54 -> --------function applied-------- hello @@ -127,5 +127,5 @@ there ! --------function applied-------- 1 -> 1 -> 3 -> 1 -> 23 -> 1 -> 54 -> -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/listforeachif.fr.md b/subjects/listforeachif.fr.md index c0f6be181..a4c2f76f3 100644 --- a/subjects/listforeachif.fr.md +++ b/subjects/listforeachif.fr.md @@ -118,8 +118,8 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 1 -> hello -> 3 -> there -> 23 -> ! -> 54 -> --------function applied-------- hello @@ -127,5 +127,5 @@ there ! --------function applied-------- 1 -> 1 -> 3 -> 1 -> 23 -> 1 -> 54 -> -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/listlast.en.md b/subjects/listlast.en.md index 4fa672ad8..84fad8c96 100644 --- a/subjects/listlast.en.md +++ b/subjects/listlast.en.md @@ -51,9 +51,9 @@ func main() { And its output : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 1 -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/listlast.fr.md b/subjects/listlast.fr.md index d50831d1e..e3e137dad 100644 --- a/subjects/listlast.fr.md +++ b/subjects/listlast.fr.md @@ -51,9 +51,9 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 1 -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/listmerge.en.md b/subjects/listmerge.en.md index 0a72201fe..b1b2c332a 100644 --- a/subjects/listmerge.en.md +++ b/subjects/listmerge.en.md @@ -73,8 +73,8 @@ func main() { And its output : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test a -> b -> c -> d -> e -> f -> g -> h -> -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/listmerge.fr.md b/subjects/listmerge.fr.md index acf7cce69..b9255c7dc 100644 --- a/subjects/listmerge.fr.md +++ b/subjects/listmerge.fr.md @@ -73,8 +73,8 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test a -> b -> c -> d -> e -> f -> g -> h -> -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/listpushback.en.md b/subjects/listpushback.en.md index 9cecd849b..ba735ee33 100644 --- a/subjects/listpushback.en.md +++ b/subjects/listpushback.en.md @@ -51,10 +51,10 @@ func main() { And its output : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test Hello man how are you -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/listpushback.fr.md b/subjects/listpushback.fr.md index e4637db86..cca420154 100644 --- a/subjects/listpushback.fr.md +++ b/subjects/listpushback.fr.md @@ -51,10 +51,10 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test Hello man how are you -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/listpushfront.en.md b/subjects/listpushfront.en.md index dd01e9fa9..3d377c59b 100644 --- a/subjects/listpushfront.en.md +++ b/subjects/listpushfront.en.md @@ -52,10 +52,10 @@ func main() { And its output : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test how are you man Hello -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/listpushfront.fr.md b/subjects/listpushfront.fr.md index 4a2ddd2a7..c547c4a48 100644 --- a/subjects/listpushfront.fr.md +++ b/subjects/listpushfront.fr.md @@ -52,10 +52,10 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test how are you man Hello -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/listpushpara.en.md b/subjects/listpushpara.en.md index 08520796c..df36aab7e 100644 --- a/subjects/listpushpara.en.md +++ b/subjects/listpushpara.en.md @@ -9,12 +9,12 @@ Write a program that creates a new linked list and includes each command-line ar And its output : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./listpushparams choumi is the best cat +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./listpushparams choumi is the best cat cat best the is choumi -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/listpushparams.en.md b/subjects/listpushparams.en.md index c799dce26..4dcdd9660 100644 --- a/subjects/listpushparams.en.md +++ b/subjects/listpushparams.en.md @@ -11,12 +11,12 @@ Write a program that creates a new linked list and includes each command-line ar And its output : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./listpushparams choumi is the best cat +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./listpushparams choumi is the best cat cat best the is choumi -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ```` diff --git a/subjects/listpushparams.fr.md b/subjects/listpushparams.fr.md index 7db913a68..77b6a87a2 100644 --- a/subjects/listpushparams.fr.md +++ b/subjects/listpushparams.fr.md @@ -36,9 +36,9 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 0 2 -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/listremoveif.en.md b/subjects/listremoveif.en.md index ba94e9933..4f5636a35 100644 --- a/subjects/listremoveif.en.md +++ b/subjects/listremoveif.en.md @@ -81,8 +81,8 @@ func main() { And its output : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test ----normal state---- 1 -> ------answer----- @@ -92,5 +92,5 @@ student@ubuntu:~/piscine/test$ ./test 1 -> Hello -> 1 -> There -> 1 -> 1 -> How -> 1 -> are -> you -> 1 -> ------answer----- Hello -> There -> How -> are -> you -> -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/listremoveif.fr.md b/subjects/listremoveif.fr.md index fa4c9650e..8e5a32fc6 100644 --- a/subjects/listremoveif.fr.md +++ b/subjects/listremoveif.fr.md @@ -81,8 +81,8 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test ----normal state---- 1 -> ------answer----- @@ -92,5 +92,5 @@ student@ubuntu:~/piscine/test$ ./test 1 -> Hello -> 1 -> There -> 1 -> 1 -> How -> 1 -> are -> you -> 1 -> ------answer----- Hello -> There -> How -> are -> you -> -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/listreverse.en.md b/subjects/listreverse.en.md index ceffdc402..b49cb7600 100644 --- a/subjects/listreverse.en.md +++ b/subjects/listreverse.en.md @@ -58,13 +58,13 @@ func main() { And its output : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 4 3 2 1 Tail &{1 } Head &{4 0xc42000a140} -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/listreverse.fr.md b/subjects/listreverse.fr.md index ec962b58d..9e8be6e5e 100644 --- a/subjects/listreverse.fr.md +++ b/subjects/listreverse.fr.md @@ -58,13 +58,13 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 4 3 2 1 Tail &{1 } Head &{4 0xc42000a140} -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/listsize.en.md b/subjects/listsize.en.md index eea17c08c..454a3d36d 100644 --- a/subjects/listsize.en.md +++ b/subjects/listsize.en.md @@ -50,8 +50,8 @@ func main() { And its output : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 4 -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/listsize.fr.md b/subjects/listsize.fr.md index 77a057914..ab1696a96 100644 --- a/subjects/listsize.fr.md +++ b/subjects/listsize.fr.md @@ -50,8 +50,8 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 4 -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/listsort.en.md b/subjects/listsort.en.md index 5a3393b3b..e0e6730ce 100644 --- a/subjects/listsort.en.md +++ b/subjects/listsort.en.md @@ -71,8 +71,8 @@ func main() { And its output : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 1 -> 2 -> 3 -> 4 -> 5 -> -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/listsort.fr.md b/subjects/listsort.fr.md index a87bdc0ea..da1918bbf 100644 --- a/subjects/listsort.fr.md +++ b/subjects/listsort.fr.md @@ -71,8 +71,8 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 1 -> 2 -> 3 -> 4 -> 5 -> -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/makerange.en.md b/subjects/makerange.en.md index 0c96b3682..ce2f47708 100644 --- a/subjects/makerange.en.md +++ b/subjects/makerange.en.md @@ -39,9 +39,9 @@ func main() { And its output : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test [5 6 7 8 9] [] -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/makerange.fr.md b/subjects/makerange.fr.md index 3e12b377b..7be894121 100644 --- a/subjects/makerange.fr.md +++ b/subjects/makerange.fr.md @@ -38,9 +38,9 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test [5 6 7 8 9] [] -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/map.en.md b/subjects/map.en.md index 83fc61ad0..0d5ff3e54 100644 --- a/subjects/map.en.md +++ b/subjects/map.en.md @@ -33,8 +33,8 @@ func main() { And its output : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test [false true true false true false] -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/map.fr.md b/subjects/map.fr.md index 501ae029a..d9ffcaa13 100644 --- a/subjects/map.fr.md +++ b/subjects/map.fr.md @@ -33,8 +33,8 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test [false true true false true false] -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/max.en.md b/subjects/max.en.md index 5c8c44f0d..0b803dd76 100644 --- a/subjects/max.en.md +++ b/subjects/max.en.md @@ -34,8 +34,8 @@ func main() { And its output : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 123 -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/max.fr.md b/subjects/max.fr.md index a7b688a70..7c1ea7d5a 100644 --- a/subjects/max.fr.md +++ b/subjects/max.fr.md @@ -34,8 +34,8 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 123 -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/now-get-to-work.en.md b/subjects/now-get-to-work.en.md index 6ac5d5be3..9bbeab3c0 100644 --- a/subjects/now-get-to-work.en.md +++ b/subjects/now-get-to-work.en.md @@ -11,9 +11,9 @@ Submit your solution in the file `my_answer.sh` that will print it when executed ### Utilisation ```console -student@ubuntu:~/piscine/test$ ./my_answer.sh | cat -e +student@ubuntu:~/piscine-go/test$ ./my_answer.sh | cat -e John Doe$ -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` ### Hint diff --git a/subjects/now-get-to-work.fr.md b/subjects/now-get-to-work.fr.md index c42efb01f..6a5036bdb 100644 --- a/subjects/now-get-to-work.fr.md +++ b/subjects/now-get-to-work.fr.md @@ -11,9 +11,9 @@ Rendez votre solution dans un fichier `my_answer.sh` qui l'affichera quand exéc ### Usage ```console -student@ubuntu:~/piscine/test$ ./my_answer.sh | cat -e +student@ubuntu:~/piscine-go/test$ ./my_answer.sh | cat -e John Doe$ -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` ### Hint diff --git a/subjects/nrune.en.md b/subjects/nrune.en.md index 3cafbf166..665444c4b 100644 --- a/subjects/nrune.en.md +++ b/subjects/nrune.en.md @@ -35,8 +35,8 @@ func main() { And its output : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test la! -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/nrune.fr.md b/subjects/nrune.fr.md index 8e69dec24..1874e2b10 100644 --- a/subjects/nrune.fr.md +++ b/subjects/nrune.fr.md @@ -35,8 +35,8 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test la! -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/options.en.md b/subjects/options.en.md index 4e0930753..943dd86e1 100644 --- a/subjects/options.en.md +++ b/subjects/options.en.md @@ -19,16 +19,16 @@ Write a program that takes an undefined number of arguments which could be consi ## Usage ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test | cat -e +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test | cat -e options: abcdefghijklmnopqrstuvwxyz$ -student@ubuntu:~/piscine/test$ ./test -abc -ijk | cat -e +student@ubuntu:~/piscine-go/test$ ./test -abc -ijk | cat -e 00000000 00000000 00000111 00000111$ -student@ubuntu:~/piscine/test$ ./test -z | cat -e +student@ubuntu:~/piscine-go/test$ ./test -z | cat -e 00000010 00000000 00000000 00000000$ -student@ubuntu:~/piscine/test$ ./test -abc -hijk | cat -e +student@ubuntu:~/piscine-go/test$ ./test -abc -hijk | cat -e options: abcdefghijklmnopqrstuvwxyz$ -student@ubuntu:~/piscine/test$ ./test -% | cat -e +student@ubuntu:~/piscine-go/test$ ./test -% | cat -e Invalid Option$ -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/options.fr.md b/subjects/options.fr.md index dc49985f6..e4ae7902f 100644 --- a/subjects/options.fr.md +++ b/subjects/options.fr.md @@ -19,16 +19,16 @@ ## Utilisation ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test | cat -e +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test | cat -e options: abcdefghijklmnopqrstuvwxyz$ -student@ubuntu:~/piscine/test$ ./test -abc -ijk | cat -e +student@ubuntu:~/piscine-go/test$ ./test -abc -ijk | cat -e 00000000 00000000 00000111 00000111$ -student@ubuntu:~/piscine/test$ ./test -z | cat -e +student@ubuntu:~/piscine-go/test$ ./test -z | cat -e 00000010 00000000 00000000 00000000$ -student@ubuntu:~/piscine/test$ ./test -abc -hijk | cat -e +student@ubuntu:~/piscine-go/test$ ./test -abc -hijk | cat -e options: abcdefghijklmnopqrstuvwxyz$ -student@ubuntu:~/piscine/test$ ./test -% | cat -e +student@ubuntu:~/piscine-go/test$ ./test -% | cat -e Invalid Option$ -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/point.en.md b/subjects/point.en.md index f91b29bad..e5bd6a462 100644 --- a/subjects/point.en.md +++ b/subjects/point.en.md @@ -30,8 +30,8 @@ func main() { ### Expected output ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test x = 42, y = 21 -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/point.fr.md b/subjects/point.fr.md index 326af58ba..093c55c0e 100644 --- a/subjects/point.fr.md +++ b/subjects/point.fr.md @@ -31,8 +31,8 @@ func main() { ### Usage ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test x = 42, y = 21 -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/pointone.en.md b/subjects/pointone.en.md index 0329c3f44..13deaa74f 100644 --- a/subjects/pointone.en.md +++ b/subjects/pointone.en.md @@ -34,8 +34,8 @@ func main() { And its output : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 1 -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/pointone.fr.md b/subjects/pointone.fr.md index 1b02b7798..f562ae8e4 100644 --- a/subjects/pointone.fr.md +++ b/subjects/pointone.fr.md @@ -34,8 +34,8 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 1 -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/printalphabet.en.md b/subjects/printalphabet.en.md index bf9efc564..493703d84 100644 --- a/subjects/printalphabet.en.md +++ b/subjects/printalphabet.en.md @@ -9,8 +9,8 @@ A line is a sequence of characters preceding the [end of line](https://en.wikipe ### Usage ```console -student@ubuntu:~/piscine/printalphabet$ go build -student@ubuntu:~/piscine/printalphabet$ ./printalphabet +student@ubuntu:~/piscine-go/printalphabet$ go build +student@ubuntu:~/piscine-go/printalphabet$ ./printalphabet abcdefghijklmnopqrstuvwxyz -student@ubuntu:~/piscine/printalphabet$ +student@ubuntu:~/piscine-go/printalphabet$ ``` diff --git a/subjects/printalphabet.fr.md b/subjects/printalphabet.fr.md index 8275d9803..07a71671d 100644 --- a/subjects/printalphabet.fr.md +++ b/subjects/printalphabet.fr.md @@ -9,8 +9,8 @@ Une ligne est une suite de caractères précédant le caractère [fin de ligne]( ### Utilisation ```console -student@ubuntu:~/piscine/printalphabet$ go build -student@ubuntu:~/piscine/printalphabet$ ./printalphabet +student@ubuntu:~/piscine-go/printalphabet$ go build +student@ubuntu:~/piscine-go/printalphabet$ ./printalphabet abcdefghijklmnopqrstuvwxyz -student@ubuntu:~/piscine/printalphabet$ +student@ubuntu:~/piscine-go/printalphabet$ ``` diff --git a/subjects/printcomb.en.md b/subjects/printcomb.en.md index a836e1a92..1ccaea33e 100644 --- a/subjects/printcomb.en.md +++ b/subjects/printcomb.en.md @@ -31,10 +31,10 @@ func main() { This is the incomplete output : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 012, 013, 014, 015, 016, 017, 018, 019, 023, ..., 689, 789 -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` `000` or `999` are not valid combinations because the digits are not different. diff --git a/subjects/printcomb.fr.md b/subjects/printcomb.fr.md index f224897a0..20800a7ef 100644 --- a/subjects/printcomb.fr.md +++ b/subjects/printcomb.fr.md @@ -31,10 +31,10 @@ func main() { Voici la sortie tronquée : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 012, 013, 014, 015, 016, 017, 018, 019, 023, ..., 689, 789 -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` `000` et `999` ne sont pas des combinations valides parce que les chiffres ne sont pas différents. diff --git a/subjects/printcomb2.en.md b/subjects/printcomb2.en.md index 356253bfc..92c50bd32 100644 --- a/subjects/printcomb2.en.md +++ b/subjects/printcomb2.en.md @@ -31,8 +31,8 @@ func main() { This is the incomplete output : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 00 01, 00 02, 00 03, ..., 00 98, 00 99, 01 02, 01 03, ..., 97 98, 97 99, 98 99 -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/printcomb2.fr.md b/subjects/printcomb2.fr.md index fc32dabeb..f45343466 100644 --- a/subjects/printcomb2.fr.md +++ b/subjects/printcomb2.fr.md @@ -31,8 +31,8 @@ func main() { Voici la sortie tronquée : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 00 01, 00 02, 00 03, ..., 00 98, 00 99, 01 02, 01 03, ..., 97 98, 97 99, 98 99 -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/printcombn.en.md b/subjects/printcombn.en.md index 1b70a41a4..56fa83a10 100644 --- a/subjects/printcombn.en.md +++ b/subjects/printcombn.en.md @@ -32,17 +32,17 @@ import piscine ".." func main() { piscine.PrintCombN(1) piscine.PrintCombN(2) - piscine.PrintCombN(3) + piscine.PrintCombN(9) } ``` And its output : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 -01, 02, 03, 04, 05, 06, 07, 08, 09, 12, 13, 14, 15, 16, 17, 18, 19, 23, 24, 25, 26, 27, 28, 29, 34, 35, 36, 37, 38, 39, 45, 46, 47, 48, 49, 56, 57, 58, 59, 67, 68, 69, 78, 79, 89 -012, 013, 014, 015, 016, 017, 018, 019, 023, 024, 025, 026, 027, 028, 029, 034, 035, 036, 037, 038, 039, 045, 046, 047, 048, 049, 056, 057, 058, 059, 067, 068, 069, 078, 079, 089, 123, 124, 125, 126, 127, 128, 129, 134, 135, 136, 137, 138, 139, 145, 146, 147, 148, 149, 156, 157, 158, 159, 167, 168, 169, 178, 179, 189, 234, 235, 236, 237, 238, 239, 245, 246, 247, 248, 249, 256, 257, 258, 259, 267, 268, 269, 278, 279, 289, 345, 346, 347, 348, 349, 356, 357, 358, 359, 367, 368, 369, 378, 379, 389, 456, 457, 458, 459, 467, 468, 469, 478, 479, 489, 567, 568, 569, 578, 579, 589, 678, 679, 689, 789 -student@ubuntu:~/piscine/test$ +012, 013, 014, 015, 016, 017, 018, ... 679, 689, 789 +012345678, 012345679, ..., 123456789 +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/printdigits.en.md b/subjects/printdigits.en.md index 1824df87f..55a95a9d3 100644 --- a/subjects/printdigits.en.md +++ b/subjects/printdigits.en.md @@ -9,8 +9,8 @@ A line is a sequence of characters preceding the [end of line](https://en.wikipe ### Usage ```console -student@ubuntu:~/piscine/printdigits$ go build -student@ubuntu:~/piscine/printdigits$ ./printdigits +student@ubuntu:~/piscine-go/printdigits$ go build +student@ubuntu:~/piscine-go/printdigits$ ./printdigits 0123456789 -student@ubuntu:~/piscine/printdigits$ +student@ubuntu:~/piscine-go/printdigits$ ``` diff --git a/subjects/printdigits.fr.md b/subjects/printdigits.fr.md index b81d59ec5..a1a1b03f7 100644 --- a/subjects/printdigits.fr.md +++ b/subjects/printdigits.fr.md @@ -9,8 +9,8 @@ Une ligne est une suite de caractères précédant le caractère [fin de ligne]( ### Utilisation ```console -student@ubuntu:~/piscine/printdigits$ go build -student@ubuntu:~/piscine/printdigits$ ./printdigits +student@ubuntu:~/piscine-go/printdigits$ go build +student@ubuntu:~/piscine-go/printdigits$ ./printdigits 0123456789 -student@ubuntu:~/piscine/printdigits$ +student@ubuntu:~/piscine-go/printdigits$ ``` diff --git a/subjects/printhex.en.md b/subjects/printhex.en.md index b340b7faf..e589c680a 100644 --- a/subjects/printhex.en.md +++ b/subjects/printhex.en.md @@ -9,14 +9,14 @@ Write a program that takes a positive (or zero) number expressed in base 10, and ### Usage ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test "10" +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test "10" a -student@ubuntu:~/piscine/test$ ./test "255" +student@ubuntu:~/piscine-go/test$ ./test "255" ff -student@ubuntu:~/piscine/test$ ./test "5156454" +student@ubuntu:~/piscine-go/test$ ./test "5156454" 4eae66 -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ -student@ubuntu:~/piscine/ +student@ubuntu:~/piscine-go/ ``` diff --git a/subjects/printhex.fr.md b/subjects/printhex.fr.md index 46b08d432..3b31b9456 100644 --- a/subjects/printhex.fr.md +++ b/subjects/printhex.fr.md @@ -9,14 +9,14 @@ ### Utilisation ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test "10" +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test "10" a -student@ubuntu:~/piscine/test$ ./test "255" +student@ubuntu:~/piscine-go/test$ ./test "255" ff -student@ubuntu:~/piscine/test$ ./test "5156454" +student@ubuntu:~/piscine-go/test$ ./test "5156454" 4eae66 -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ -student@ubuntu:~/piscine/ +student@ubuntu:~/piscine-go/ ``` diff --git a/subjects/printmemory.en.md b/subjects/printmemory.en.md index 79631a414..25dfc758e 100644 --- a/subjects/printmemory.en.md +++ b/subjects/printmemory.en.md @@ -26,11 +26,11 @@ func main() { And its output : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test | cat -e +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test | cat -e 6800 0000 6500 0000 6c00 0000 6c00 0000 $ 6f00 0000 1000 0000 1500 0000 2a00 0000 $ 0000 0000 0000 0000 $ hello..*..$ -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/printmemory.fr.md b/subjects/printmemory.fr.md index 2187dd39d..55f05ad6f 100644 --- a/subjects/printmemory.fr.md +++ b/subjects/printmemory.fr.md @@ -26,11 +26,11 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test | cat -e +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test | cat -e 6800 0000 6500 0000 6c00 0000 6c00 0000 $ 6f00 0000 1000 0000 1500 0000 2a00 0000 $ 0000 0000 0000 0000 $ hello..*..$ -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/printnbr.en.md b/subjects/printnbr.en.md index aadc13e93..ec84a6cd7 100644 --- a/subjects/printnbr.en.md +++ b/subjects/printnbr.en.md @@ -33,8 +33,8 @@ func main() { And its output : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test -1230123 -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/printnbr.fr.md b/subjects/printnbr.fr.md index be46fa5d1..5737a70f3 100644 --- a/subjects/printnbr.fr.md +++ b/subjects/printnbr.fr.md @@ -33,8 +33,8 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test -1230123 -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/printnbrbase.en.md b/subjects/printnbrbase.en.md index 27ba70dcb..50fb008fa 100644 --- a/subjects/printnbrbase.en.md +++ b/subjects/printnbrbase.en.md @@ -52,12 +52,12 @@ func main() { And its output : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 125 -1111101 7D -uoi NV -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/printnbrbase.fr.md b/subjects/printnbrbase.fr.md index e334b8261..d724dfb15 100644 --- a/subjects/printnbrbase.fr.md +++ b/subjects/printnbrbase.fr.md @@ -52,12 +52,12 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 125 -1111101 7D -uoi NV -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/printparams.en.md b/subjects/printparams.en.md index 1697e284d..c521b866c 100644 --- a/subjects/printparams.en.md +++ b/subjects/printparams.en.md @@ -7,12 +7,12 @@ Write a **program** that prints the arguments received in the command line. Example of output : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./printparams choumi is the best cat +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./printparams choumi is the best cat choumi is the best cat -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/printparams.fr.md b/subjects/printparams.fr.md index 8cbc719f3..e2b50f961 100644 --- a/subjects/printparams.fr.md +++ b/subjects/printparams.fr.md @@ -7,12 +7,12 @@ Exemple de résultat : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./printparams choumi is the best cat +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./printparams choumi is the best cat choumi is the best cat -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/printprogramname.en.md b/subjects/printprogramname.en.md index cfcb59b97..8a94ddcb9 100644 --- a/subjects/printprogramname.en.md +++ b/subjects/printprogramname.en.md @@ -10,5 +10,5 @@ Example of output : student@ubuntu:~/piscine-go/printprogramname$ go build main.go student@ubuntu:~/piscine-go/printprogramname$ ./main ./main -student@ubuntu:~/piscine-g0/printprogramname$ +student@ubuntu:~/piscine-go/printprogramname$ ``` diff --git a/subjects/printreversealphabet.en.md b/subjects/printreversealphabet.en.md index cbaf35b69..ad2f61b01 100644 --- a/subjects/printreversealphabet.en.md +++ b/subjects/printreversealphabet.en.md @@ -9,8 +9,8 @@ A line is a sequence of characters preceding the [end of line](https://en.wikipe ### Usage ```console -student@ubuntu:~/piscine/printreversealphabet$ go build -student@ubuntu:~/piscine/printreversealphabet$ ./printreversealphabet +student@ubuntu:~/piscine-go/printreversealphabet$ go build +student@ubuntu:~/piscine-go/printreversealphabet$ ./printreversealphabet zyxwvutsrqponmlkjihgfedcba -student@ubuntu:~/piscine/printreversealphabet$ +student@ubuntu:~/piscine-go/printreversealphabet$ ``` diff --git a/subjects/printreversealphabet.fr.md b/subjects/printreversealphabet.fr.md index bce518205..ca1de593b 100644 --- a/subjects/printreversealphabet.fr.md +++ b/subjects/printreversealphabet.fr.md @@ -9,8 +9,8 @@ Une ligne est une suite de caractères précédant le caractère [fin de ligne]( ### Utilisation ```console -student@ubuntu:~/piscine/printreversealphabet$ go build -student@ubuntu:~/piscine/printreversealphabet$ ./printreversealphabet +student@ubuntu:~/piscine-go/printreversealphabet$ go build +student@ubuntu:~/piscine-go/printreversealphabet$ ./printreversealphabet zyxwvutsrqponmlkjihgfedcba -student@ubuntu:~/piscine/printreversealphabet$ +student@ubuntu:~/piscine-go/printreversealphabet$ ``` diff --git a/subjects/printstr.en.md b/subjects/printstr.en.md index 93896033b..2c59d3792 100644 --- a/subjects/printstr.en.md +++ b/subjects/printstr.en.md @@ -30,8 +30,8 @@ func main() { And its output : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test Hello World!% -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/printstr.fr.md b/subjects/printstr.fr.md index 2dbdd78bb..29ceb6311 100644 --- a/subjects/printstr.fr.md +++ b/subjects/printstr.fr.md @@ -30,8 +30,8 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test Hello World!% -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/printwordstables.en.md b/subjects/printwordstables.en.md index 248af8539..4d0093f52 100644 --- a/subjects/printwordstables.en.md +++ b/subjects/printwordstables.en.md @@ -34,11 +34,11 @@ func main() { And its output : ```console -student@ubuntu:~/piscine/test$ go build main.go -student@ubuntu:~/piscine/test$ ./main +student@ubuntu:~/piscine-go/test$ go build main.go +student@ubuntu:~/piscine-go/test$ ./main Hello how are you? -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/printwordstables.fr.md b/subjects/printwordstables.fr.md index b040b60a5..df60d08c6 100644 --- a/subjects/printwordstables.fr.md +++ b/subjects/printwordstables.fr.md @@ -35,11 +35,11 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine/test$ go build main.go -student@ubuntu:~/piscine/test$ ./main +student@ubuntu:~/piscine-go/test$ go build main.go +student@ubuntu:~/piscine-go/test$ ./main Hello how are you? -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/rectangle.en.md b/subjects/rectangle.en.md index 44b388083..7fb3197cd 100644 --- a/subjects/rectangle.en.md +++ b/subjects/rectangle.en.md @@ -48,8 +48,8 @@ func main() { ### Expected output ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test area of the rectangle: 6 -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/rectangle.fr.md b/subjects/rectangle.fr.md index 44b388083..7fb3197cd 100644 --- a/subjects/rectangle.fr.md +++ b/subjects/rectangle.fr.md @@ -48,8 +48,8 @@ func main() { ### Expected output ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test area of the rectangle: 6 -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/recursivefactorial.en.md b/subjects/recursivefactorial.en.md index fa267a35e..e910de9f0 100644 --- a/subjects/recursivefactorial.en.md +++ b/subjects/recursivefactorial.en.md @@ -1,6 +1,6 @@ ## recursivefactorial -### Intructions +### Instructions Write a **recursive** function that returns the factorial of the `int` passed as parameter. @@ -11,7 +11,7 @@ Errors (non possible values or overflows) will return `0`. ### Expected function ```go -func RecursiveFactorial(int nb) int { +func RecursiveFactorial(nb int) int { } ``` @@ -35,8 +35,8 @@ func main() { ``` ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 24 -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/recursivefactorial.fr.md b/subjects/recursivefactorial.fr.md index fba6dfaf1..1aba726cb 100644 --- a/subjects/recursivefactorial.fr.md +++ b/subjects/recursivefactorial.fr.md @@ -1,6 +1,6 @@ ## recursivefactorial -### Intructions +### Instructions Écrire une fonction **récursive** qui renvoie la factorielle d'un `int` passé en paramètre. @@ -11,7 +11,7 @@ Les erreurs (valeurs non possibles ou overflows) renverront `0`. ### Fonction attendue ```go -func RecursiveFactorial(int nb) int { +func RecursiveFactorial(nb int) int { } ``` @@ -37,8 +37,8 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 24 -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/recursivepower.en.md b/subjects/recursivepower.en.md index 90c58c67b..3d702cd20 100644 --- a/subjects/recursivepower.en.md +++ b/subjects/recursivepower.en.md @@ -1,6 +1,6 @@ ## recursivepower -### Intructions +### Instructions Write an **recursive** function that returns the power of the `int` passed as parameter. @@ -11,7 +11,7 @@ Negative powers will return `0`. Overflows do **not** have to be dealt with. ### Expected function ```go -func RecursivePower(int nb, int power) int { +func RecursivePower(nb int, power int) int { } ``` @@ -38,8 +38,8 @@ func main() { And its output : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 64 -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/recursivepower.fr.md b/subjects/recursivepower.fr.md index b47509c87..f71823441 100644 --- a/subjects/recursivepower.fr.md +++ b/subjects/recursivepower.fr.md @@ -1,6 +1,6 @@ ## recursivepower -### Intructions +### Instructions Écrire une fonction **récursive** qui renvoie la puissance de deux `int` passés en paramètre. @@ -11,7 +11,7 @@ Les puissances négatives renverront `0`. Les overflows **ne doivent pas** être ### Fonction attendue ```go -func RecursivePower(int nb, int power) int { +func RecursivePower(nb int, power int) int { } ``` diff --git a/subjects/revparams.en.md b/subjects/revparams.en.md index d387913a6..665ed820e 100644 --- a/subjects/revparams.en.md +++ b/subjects/revparams.en.md @@ -7,12 +7,12 @@ Write a **program** that prints the arguments received in the command line in a Example of output : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./revparams choumi is the best cat +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./revparams choumi is the best cat cat best the is choumi -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/revparams.fr.md b/subjects/revparams.fr.md index 7c775531c..33cd843e9 100644 --- a/subjects/revparams.fr.md +++ b/subjects/revparams.fr.md @@ -7,12 +7,12 @@ Exemple de résultat : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./revparams choumi is the best cat +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./revparams choumi is the best cat cat best the is choumi -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/revwstr.en.md b/subjects/revwstr.en.md index 5542e7429..3d842e98d 100644 --- a/subjects/revwstr.en.md +++ b/subjects/revwstr.en.md @@ -13,14 +13,14 @@ Write a program that takes a `string` as a parameter, and prints its words in re ### Usage ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test "the time of contempt precedes that of indifference" +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test "the time of contempt precedes that of indifference" indifference of that precedes contempt of time the -student@ubuntu:~/piscine/test$ ./test "abcdefghijklm" +student@ubuntu:~/piscine-go/test$ ./test "abcdefghijklm" abcdefghijklm -student@ubuntu:~/piscine/test$ ./test "he stared at the mountain" +student@ubuntu:~/piscine-go/test$ ./test "he stared at the mountain" mountain the at stared he -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ ./test -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/revwstr.fr.md b/subjects/revwstr.fr.md index 084dc334e..861151ce6 100644 --- a/subjects/revwstr.fr.md +++ b/subjects/revwstr.fr.md @@ -13,14 +13,14 @@ ### Utilisation ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test "the time of contempt precedes that of indifference" +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test "the time of contempt precedes that of indifference" indifference of that precedes contempt of time the -student@ubuntu:~/piscine/test$ ./test "abcdefghijklm" +student@ubuntu:~/piscine-go/test$ ./test "abcdefghijklm" abcdefghijklm -student@ubuntu:~/piscine/test$ ./test "he stared at the mountain" +student@ubuntu:~/piscine-go/test$ ./test "he stared at the mountain" mountain the at stared he -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ ./test -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/rostring.en.md b/subjects/rostring.en.md index 59f555b2c..bda419d39 100644 --- a/subjects/rostring.en.md +++ b/subjects/rostring.en.md @@ -16,14 +16,14 @@ If the number of arguments is different from 1, the program displays a newline. ### Usage ```console -student@ubuntu:~/piscine/rostring$ go build -student@ubuntu:~/piscine/rostring$ ./rostring "abc " | cat -e +student@ubuntu:~/piscine-go/rostring$ go build +student@ubuntu:~/piscine-go/rostring$ ./rostring "abc " | cat -e abc$ -student@ubuntu:~/piscine/rostring$ ./rostring "Let there be light" +student@ubuntu:~/piscine-go/rostring$ ./rostring "Let there be light" there be light Let -student@ubuntu:~/piscine/rostring$ ./rostring " AkjhZ zLKIJz , 23y" +student@ubuntu:~/piscine-go/rostring$ ./rostring " AkjhZ zLKIJz , 23y" zLKIJz , 23y AkjhZ -student@ubuntu:~/piscine/rostring$ ./rostring | cat -e +student@ubuntu:~/piscine-go/rostring$ ./rostring | cat -e $ -student@ubuntu:~/piscine/rostring$ +student@ubuntu:~/piscine-go/rostring$ ``` diff --git a/subjects/rostring.fr.md b/subjects/rostring.fr.md index d357c7c2e..fd32b66e4 100644 --- a/subjects/rostring.fr.md +++ b/subjects/rostring.fr.md @@ -15,14 +15,14 @@ Si le nombre d'arguments est différent de 1, le programme affiche un newline. ### Utilisation ```console -student@ubuntu:~/piscine/rostring$ go build -student@ubuntu:~/piscine/rostring$ ./rostring "abc " | cat -e +student@ubuntu:~/piscine-go/rostring$ go build +student@ubuntu:~/piscine-go/rostring$ ./rostring "abc " | cat -e abc$ -student@ubuntu:~/piscine/rostring$ ./rostring "Let there be light" +student@ubuntu:~/piscine-go/rostring$ ./rostring "Let there be light" there be light Let -student@ubuntu:~/piscine/rostring$ ./rostring " AkjhZ zLKIJz , 23y" +student@ubuntu:~/piscine-go/rostring$ ./rostring " AkjhZ zLKIJz , 23y" zLKIJz , 23y AkjhZ -student@ubuntu:~/piscine/rostring$ ./rostring | cat -e +student@ubuntu:~/piscine-go/rostring$ ./rostring | cat -e $ -student@ubuntu:~/piscine/rostring$ +student@ubuntu:~/piscine-go/rostring$ ``` diff --git a/subjects/rot13.en.md b/subjects/rot13.en.md index 489c37e68..095d76fd9 100644 --- a/subjects/rot13.en.md +++ b/subjects/rot13.en.md @@ -14,12 +14,12 @@ letters by the letter 13 spaces ahead in alphabetical order. ### Usage ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test "abc" +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test "abc" nop -student@ubuntu:~/piscine/test$ ./test "hello there" +student@ubuntu:~/piscine-go/test$ ./test "hello there" uryyb gurer -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ ./test -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/rot13.fr.md b/subjects/rot13.fr.md index 81b33b19f..e4c38bab4 100644 --- a/subjects/rot13.fr.md +++ b/subjects/rot13.fr.md @@ -13,12 +13,12 @@ ### Utilisation ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test "abc" +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test "abc" nop -student@ubuntu:~/piscine/test$ ./test "hello there" +student@ubuntu:~/piscine-go/test$ ./test "hello there" uryyb gurer -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ ./test -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/rot14.en.md b/subjects/rot14.en.md index ed7f9bc93..253030eeb 100644 --- a/subjects/rot14.en.md +++ b/subjects/rot14.en.md @@ -40,8 +40,8 @@ func main() { And its output : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test Vszzc Vck ofs Mci -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/rot14.fr.md b/subjects/rot14.fr.md index 64379313f..851f9a947 100644 --- a/subjects/rot14.fr.md +++ b/subjects/rot14.fr.md @@ -40,8 +40,8 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test Vszzc Vck ofs Mci -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/searchreplace.en.md b/subjects/searchreplace.en.md index 26e3696ef..c2122f82d 100644 --- a/subjects/searchreplace.en.md +++ b/subjects/searchreplace.en.md @@ -11,12 +11,12 @@ Write a program that takes 3 arguments, the first argument is a `string` in whic ### Usage ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test "hella there" "a" "o" +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test "hella there" "a" "o" hello there -student@ubuntu:~/piscine/test$ ./test "abcd" "z" "l" +student@ubuntu:~/piscine-go/test$ ./test "abcd" "z" "l" abcd -student@ubuntu:~/piscine/test$ ./test "something" "a" "o" "b" "c" +student@ubuntu:~/piscine-go/test$ ./test "something" "a" "o" "b" "c" -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/searchreplace.fr.md b/subjects/searchreplace.fr.md index 704ae2a68..4bd13dd6d 100644 --- a/subjects/searchreplace.fr.md +++ b/subjects/searchreplace.fr.md @@ -11,12 +11,12 @@ ### Utilisation ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test "hella there" "a" "o" +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test "hella there" "a" "o" hello there -student@ubuntu:~/piscine/test$ ./test "abcd" "z" "l" +student@ubuntu:~/piscine-go/test$ ./test "abcd" "z" "l" abcd -student@ubuntu:~/piscine/test$ ./test "something" "a" "o" "b" "c" +student@ubuntu:~/piscine-go/test$ ./test "something" "a" "o" "b" "c" -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/sortedlistmerge.en.md b/subjects/sortedlistmerge.en.md index d4721ae52..f98bac069 100644 --- a/subjects/sortedlistmerge.en.md +++ b/subjects/sortedlistmerge.en.md @@ -68,8 +68,8 @@ func main() { And its output : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test -2 -> 3 -> 5 -> 7 -> 9 -> -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/sortedlistmerge.fr.md b/subjects/sortedlistmerge.fr.md index d2aa50d56..3764633ae 100644 --- a/subjects/sortedlistmerge.fr.md +++ b/subjects/sortedlistmerge.fr.md @@ -68,8 +68,8 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test -2 -> 3 -> 5 -> 7 -> 9 -> -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/sortintegertable.en.md b/subjects/sortintegertable.en.md index ca2ff3010..2b5c24929 100644 --- a/subjects/sortintegertable.en.md +++ b/subjects/sortintegertable.en.md @@ -34,8 +34,8 @@ func main() { And its output : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test [0,1,2,3,4,5] -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/sortintegertable.fr.md b/subjects/sortintegertable.fr.md index 3c92b2f04..7913ab878 100644 --- a/subjects/sortintegertable.fr.md +++ b/subjects/sortintegertable.fr.md @@ -34,8 +34,8 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test [0,1,2,3,4,5] -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/sortlistinsert.en.md b/subjects/sortlistinsert.en.md index 5b24a6d66..5ce1e09ba 100644 --- a/subjects/sortlistinsert.en.md +++ b/subjects/sortlistinsert.en.md @@ -69,9 +69,9 @@ func main() { And its output : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 1 -> 4 -> 9 -> -2 -> 1 -> 2 -> 4 -> 9 -> -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/sortlistinsert.fr.md b/subjects/sortlistinsert.fr.md index 3d6da4138..30077e2a5 100644 --- a/subjects/sortlistinsert.fr.md +++ b/subjects/sortlistinsert.fr.md @@ -70,9 +70,9 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 1 -> 4 -> 9 -> -2 -> 1 -> 2 -> 4 -> 9 -> -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/sortparams.en.md b/subjects/sortparams.en.md index bd482d0aa..eb586885f 100644 --- a/subjects/sortparams.en.md +++ b/subjects/sortparams.en.md @@ -7,8 +7,8 @@ Write a **program** that prints the arguments received in the command line in AS Example of output : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./sortparams 1 a 2 A 3 b 4 C +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./sortparams 1 a 2 A 3 b 4 C 1 2 3 @@ -17,5 +17,5 @@ A C a b -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/sortparams.fr.md b/subjects/sortparams.fr.md index f5c6e5caf..53ecca722 100644 --- a/subjects/sortparams.fr.md +++ b/subjects/sortparams.fr.md @@ -7,8 +7,8 @@ Exemple de résultat : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./sortparams 1 a 2 A 3 b 4 C +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./sortparams 1 a 2 A 3 b 4 C 1 2 3 @@ -17,5 +17,5 @@ A C a b -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/sortwordarr.en.md b/subjects/sortwordarr.en.md index b40a60ed7..279b23654 100644 --- a/subjects/sortwordarr.en.md +++ b/subjects/sortwordarr.en.md @@ -35,8 +35,8 @@ func main() { And its output : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test [1 2 3 A B C a b c] -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/sortwordarr.fr.md b/subjects/sortwordarr.fr.md index 7e14d2dd2..ac8dc279e 100644 --- a/subjects/sortwordarr.fr.md +++ b/subjects/sortwordarr.fr.md @@ -35,8 +35,8 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test [1 2 3 A B C a b c] -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/split.en.md b/subjects/split.en.md index cc5f31baa..3ef02c340 100644 --- a/subjects/split.en.md +++ b/subjects/split.en.md @@ -33,8 +33,8 @@ func main() { And its output : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test [Hello how are you?] -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/split.fr.md b/subjects/split.fr.md index 641ca5fb1..32ea7586f 100644 --- a/subjects/split.fr.md +++ b/subjects/split.fr.md @@ -33,8 +33,8 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test [Hello how are you?] -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/splitwhitespaces.en.md b/subjects/splitwhitespaces.en.md index e358921e8..02253732c 100644 --- a/subjects/splitwhitespaces.en.md +++ b/subjects/splitwhitespaces.en.md @@ -33,8 +33,8 @@ func main() { And its output : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test [Hello how are you?] -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/splitwhitespaces.fr.md b/subjects/splitwhitespaces.fr.md index 0f9776e19..527b709a4 100644 --- a/subjects/splitwhitespaces.fr.md +++ b/subjects/splitwhitespaces.fr.md @@ -33,8 +33,8 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test [Hello how are you?] -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/sqrt.en.md b/subjects/sqrt.en.md index c6a5373cb..cf21ffec4 100644 --- a/subjects/sqrt.en.md +++ b/subjects/sqrt.en.md @@ -1,13 +1,13 @@ ## sqrt -### Intructions +### Instructions Write a function that returns the square root of the `int` passed as parameter if that square root is a whole number. Otherwise it returns `0`. ### Expected function ```go -func Sqrt(int nb) int { +func Sqrt(nb int) int { } ``` @@ -36,9 +36,9 @@ func main() { And its output : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 2 0 -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/sqrt.fr.md b/subjects/sqrt.fr.md index 076385ed6..39d66e81f 100644 --- a/subjects/sqrt.fr.md +++ b/subjects/sqrt.fr.md @@ -1,13 +1,13 @@ ## sqrt -### Intructions +### Instructions Écrire une fonction qui renvoie la racine carré d'un `int` passé en paramètre as parameter si cette racine carré est un nombre entier. Autrement elle renvoie `0`. ### Fonction attendue ```go -func Sqrt(int nb) int { +func Sqrt(nb int) int { } ``` @@ -36,9 +36,9 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 2 0 -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/strlen.en.md b/subjects/strlen.en.md index 50cd5036d..68618fc9f 100644 --- a/subjects/strlen.en.md +++ b/subjects/strlen.en.md @@ -34,8 +34,8 @@ func main() { And its output : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 12 -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/strlen.fr.md b/subjects/strlen.fr.md index 749cca62b..de4de21f4 100644 --- a/subjects/strlen.fr.md +++ b/subjects/strlen.fr.md @@ -34,8 +34,8 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 12 -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/strrev.en.md b/subjects/strrev.en.md index a5ee9cd88..7b1855d09 100644 --- a/subjects/strrev.en.md +++ b/subjects/strrev.en.md @@ -36,8 +36,8 @@ func main() { And its output : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test !dlroW olleH -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/strrev.fr.md b/subjects/strrev.fr.md index e8b34f357..8aabdf632 100644 --- a/subjects/strrev.fr.md +++ b/subjects/strrev.fr.md @@ -36,8 +36,8 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test !dlroW olleH -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/swap.en.md b/subjects/swap.en.md index 82d0d04f8..f443265f9 100644 --- a/subjects/swap.en.md +++ b/subjects/swap.en.md @@ -36,9 +36,9 @@ func main() { And its output : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 1 0 -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/swap.fr.md b/subjects/swap.fr.md index 42fdc85fc..54ae42fd2 100644 --- a/subjects/swap.fr.md +++ b/subjects/swap.fr.md @@ -36,9 +36,9 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 1 0 -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/switchcase.en.md b/subjects/switchcase.en.md index 405461640..e54388fe2 100644 --- a/subjects/switchcase.en.md +++ b/subjects/switchcase.en.md @@ -13,10 +13,10 @@ Write a program that takes a `string` and reverses the case of all its letters. ### Usage ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test "SometHingS iS WronG" +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test "SometHingS iS WronG" sOMEThINGs Is wRONg -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ ./test -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/switchcase.fr.md b/subjects/switchcase.fr.md index 9dfec1c22..c37499908 100644 --- a/subjects/switchcase.fr.md +++ b/subjects/switchcase.fr.md @@ -13,10 +13,10 @@ ### Utilisation ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test "SometHingS iS WronG" +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test "SometHingS iS WronG" sOMEThINGs Is wRONg -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ ./test -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/tabmult.en.md b/subjects/tabmult.en.md index fe78d999b..bc30ea34e 100644 --- a/subjects/tabmult.en.md +++ b/subjects/tabmult.en.md @@ -9,8 +9,8 @@ Write a program that displays a number's multiplication table. ### Usage ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test 9 +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 9 1 x 9 = 9 2 x 9 = 18 3 x 9 = 27 @@ -20,7 +20,7 @@ student@ubuntu:~/piscine/test$ ./test 9 7 x 9 = 63 8 x 9 = 72 9 x 9 = 81 -student@ubuntu:~/piscine/test$ ./test 19 +student@ubuntu:~/piscine-go/test$ ./test 19 1 x 19 = 19 2 x 19 = 38 3 x 19 = 57 @@ -30,7 +30,7 @@ student@ubuntu:~/piscine/test$ ./test 19 7 x 19 = 133 8 x 19 = 152 9 x 19 = 171 -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ -student@ubuntu:~/piscine/ +student@ubuntu:~/piscine-go/ ``` diff --git a/subjects/tabmult.fr.md b/subjects/tabmult.fr.md index 309f5d656..4fbc21887 100644 --- a/subjects/tabmult.fr.md +++ b/subjects/tabmult.fr.md @@ -9,8 +9,8 @@ ### Utilisation ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test 9 +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 9 1 x 9 = 9 2 x 9 = 18 3 x 9 = 27 @@ -20,7 +20,7 @@ student@ubuntu:~/piscine/test$ ./test 9 7 x 9 = 63 8 x 9 = 72 9 x 9 = 81 -student@ubuntu:~/piscine/test$ ./test 19 +student@ubuntu:~/piscine-go/test$ ./test 19 1 x 19 = 19 2 x 19 = 38 3 x 19 = 57 @@ -30,7 +30,7 @@ student@ubuntu:~/piscine/test$ ./test 19 7 x 19 = 133 8 x 19 = 152 9 x 19 = 171 -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ -student@ubuntu:~/piscine/ +student@ubuntu:~/piscine-go/ ``` diff --git a/subjects/tolower.en.md b/subjects/tolower.en.md index 0f366d8a9..408f00256 100644 --- a/subjects/tolower.en.md +++ b/subjects/tolower.en.md @@ -32,8 +32,8 @@ func main() { And its output : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test hello! how are you? -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/tolower.fr.md b/subjects/tolower.fr.md index b709621bb..9d8a19234 100644 --- a/subjects/tolower.fr.md +++ b/subjects/tolower.fr.md @@ -32,8 +32,8 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test hello! how are you? -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/toupper.en.md b/subjects/toupper.en.md index 62aad29ca..0858963a6 100644 --- a/subjects/toupper.en.md +++ b/subjects/toupper.en.md @@ -32,8 +32,8 @@ func main() { And its output : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test HELLO! HOW ARE YOU? -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/toupper.fr.md b/subjects/toupper.fr.md index 2750bf084..3c108b001 100644 --- a/subjects/toupper.fr.md +++ b/subjects/toupper.fr.md @@ -32,8 +32,8 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test HELLO! HOW ARE YOU? -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/ultimatedivmod.en.md b/subjects/ultimatedivmod.en.md index 0f07bd8c9..e1184d8e4 100644 --- a/subjects/ultimatedivmod.en.md +++ b/subjects/ultimatedivmod.en.md @@ -40,9 +40,9 @@ func main() { And its output : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 6 1 -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/ultimatedivmod.fr.md b/subjects/ultimatedivmod.fr.md index c4fe57c9e..d3e93e103 100644 --- a/subjects/ultimatedivmod.fr.md +++ b/subjects/ultimatedivmod.fr.md @@ -40,9 +40,9 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 6 1 -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/ultimatepointone.en.md b/subjects/ultimatepointone.en.md index acbdb7e20..fc54a6a97 100644 --- a/subjects/ultimatepointone.en.md +++ b/subjects/ultimatepointone.en.md @@ -36,8 +36,8 @@ func main() { And its output : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 1 -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/ultimatepointone.fr.md b/subjects/ultimatepointone.fr.md index 8b4bdaad2..58f08e1ce 100644 --- a/subjects/ultimatepointone.fr.md +++ b/subjects/ultimatepointone.fr.md @@ -36,8 +36,8 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 1 -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/unmatch.en.md b/subjects/unmatch.en.md index 3efd0bbf6..565dde47e 100644 --- a/subjects/unmatch.en.md +++ b/subjects/unmatch.en.md @@ -36,8 +36,8 @@ func main() { And its output : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 4 -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/unmatch.fr.md b/subjects/unmatch.fr.md index 9818a1b2a..3bc9b21f2 100644 --- a/subjects/unmatch.fr.md +++ b/subjects/unmatch.fr.md @@ -34,8 +34,8 @@ func main() { Et son résultat : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test 4 -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/wdmatch.en.md b/subjects/wdmatch.en.md index a9f272456..4b5359170 100644 --- a/subjects/wdmatch.en.md +++ b/subjects/wdmatch.en.md @@ -11,17 +11,17 @@ Write a program that takes two `strings` and checks whether it is possible to wr ### Usage ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test "faya" "fgvvfdxcacpolhyghbreda" +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test "faya" "fgvvfdxcacpolhyghbreda" faya -student@ubuntu:~/piscine/test$ ./test "faya" "fgvvfdxcacpolhyghbred" +student@ubuntu:~/piscine-go/test$ ./test "faya" "fgvvfdxcacpolhyghbred" -student@ubuntu:~/piscine/test$ ./test "error" rrerrrfiiljdfxjyuifrrvcoojh +student@ubuntu:~/piscine-go/test$ ./test "error" rrerrrfiiljdfxjyuifrrvcoojh -student@ubuntu:~/piscine/test$ ./test "quarante deux" "qfqfsudf arzgsayns tsregfdgs sjytdekuoixq " +student@ubuntu:~/piscine-go/test$ ./test "quarante deux" "qfqfsudf arzgsayns tsregfdgs sjytdekuoixq " quarante deux -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ ./test -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ``` diff --git a/subjects/wdmatch.fr.md b/subjects/wdmatch.fr.md index dec8346e6..66533e903 100644 --- a/subjects/wdmatch.fr.md +++ b/subjects/wdmatch.fr.md @@ -11,17 +11,17 @@ ### Utilisation ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test "faya" "fgvvfdxcacpolhyghbreda" +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test "faya" "fgvvfdxcacpolhyghbreda" faya -student@ubuntu:~/piscine/test$ ./test "faya" "fgvvfdxcacpolhyghbred" +student@ubuntu:~/piscine-go/test$ ./test "faya" "fgvvfdxcacpolhyghbred" -student@ubuntu:~/piscine/test$ ./test "error" rrerrrfiiljdfxjyuifrrvcoojh +student@ubuntu:~/piscine-go/test$ ./test "error" rrerrrfiiljdfxjyuifrrvcoojh -student@ubuntu:~/piscine/test$ ./test "quarante deux" "qfqfsudf arzgsayns tsregfdgs sjytdekuoixq " +student@ubuntu:~/piscine-go/test$ ./test "quarante deux" "qfqfsudf arzgsayns tsregfdgs sjytdekuoixq " quarante deux -student@ubuntu:~/piscine/test$ ./test +student@ubuntu:~/piscine-go/test$ ./test -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine-go/test$ ```