Skip to content

Instantly share code, notes, and snippets.

View chrapati24's full-sized avatar
🏠
Working from home

Chrapati chrapati24

🏠
Working from home
View GitHub Profile
@chrapati24
chrapati24 / raylib_physics.cpp
Created November 18, 2024 15:44
Le code de mon projet (si vous avez des conseils à me donner et si vous souhaitez tester chez vous).
#include "raylib.h"
#include "bullet/btBulletDynamicsCommon.h"
#include <iostream>
#define WIN_MINSIZEX 1280
#define WIN_MINSIZEY 720
int main()
{
Camera3D maCamera = { 0 };
@chrapati24
chrapati24 / index.php
Created November 18, 2024 15:42
Le code du routeur (plus simple, tu meurs).
<?php
$page = $_GET['page'] ?? null;
switch($page) {
case 'accueil':
echo "<h1>Accueil</h1>";
exit();
case 'about' :
@chrapati24
chrapati24 / View.swift
Created September 11, 2024 21:41
Simple SwiftUI view with a counter (and conditioned Alert)
import SwiftUI
struct CounterView: View {
@State private var counter = 0
@State private var showAlert = false
var body: some View {
VStack {
Text("\(counter)")
Button("+") {
counter += 1