This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(っ▀¯▀)つ | |
## VScode ## | |
sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc | |
sudo sh -c 'echo -e "[code]\nname=Visual Studio Code\nbaseurl=https://packages.microsoft.com/yumrepos/vscode\nenabled=1\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" > /etc/yum.repos.d/vscode.repo' | |
sudo dnf check-update | |
sudo dnf install code | |
sudo dnf install snapd ## Insall Snapd ## | |
sudo snap install hugo ## Install HUGO (with Snap) ## |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import SwiftUI | |
struct TestNotion2SwiftUI: View { | |
var body: some View { | |
ZStack(alignment: .center) { // Début du ZStack | |
Rectangle() // <<-- Afficher un rectangle | |
.foregroundColor(Color.red) // <<-- changer couleur du rectangle | |
Rectangle() // <<-- Afficher un rectangle | |
.frame(width: 300.0, height: 180.0) // <<-- changer la taille du rectangle | |
.foregroundColor(Color.green) // <<-- changer couleur du rectangle |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import SwiftUI | |
struct TestNotion3SwiftUI: View { | |
var body: some View { | |
VStack() { // Début VStack | |
HStack() { // Début HStack (notes : il se trouve dans le VStack) | |
VStack(alignment: .leading) { // Début VStack Image | |
Image(systemName: "person.circle") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct TestNotion5SwiftUI: View { | |
@State private var resultLikes = 0 | |
var body: some View { | |
VStack { | |
HStack { | |
Text("Nombre de j'aime : \(Int(resultLikes))") | |
.font(.largeTitle).foregroundColor(Color.green) | |
} .background(Color.white).cornerRadius(10).foregroundColor(.black) // Fin du HStack 1 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import SwiftUI | |
struct TestNotion6SwiftUI: View { | |
var body: some View { | |
VStack { | |
HStack { | |
// Le bouton rouge // | |
Button { | |
// Action du bouton ici |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am sirchamallow on github. | |
* I am sirchamallow (https://keybase.io/sirchamallow) on keybase. | |
* I have a public key ASDIQftzVhuRrbqJMl6-5HkLMd3aja043Y3x8hxLgnfXuQo | |
To claim this, I am signing this object: |