Skip to content

Instantly share code, notes, and snippets.

View sirchamallow's full-sized avatar
🇪🇺

Pierre LEMASSON sirchamallow

🇪🇺
View GitHub Profile
@sirchamallow
sirchamallow / fedora-setup-gist.txt
Last active February 15, 2023 09:15
Fedora Setup
(っ▀¯▀)つ
## 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) ##
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
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")
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
@sirchamallow
sirchamallow / gist:210fe43b0c82e833acd44f3a65c81948
Created May 6, 2022 08:58
SwiftUI Buttons (complex version)
import SwiftUI
struct TestNotion6SwiftUI: View {
var body: some View {
VStack {
HStack {
// Le bouton rouge 􀄩 //
Button {
// Action du bouton ici
### 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: