Skip to content

Instantly share code, notes, and snippets.

@benaja-bendo
benaja-bendo / index.html
Created September 2, 2024 22:48
Skating bunny
<canvas class="webgl"></canvas>
<div id="instructions"> - Press to jump - </div>
<div id="credits">
<p><a href="https://codepen.io/Yakudoo/" target="blank">my other codepens</a> | <a href="http://epic.net" target="blank">epic.net</a></p>
</div>
<script type="x-shader/x-vertex" id="reflectorVertexShader">
uniform mat4 textureMatrix;
<?php
use Illuminate\Support\Str;
use Illuminate\Support\Facades\Hash;
// Générer un identifiant unique
$reservation_id = Str::uuid()->getHex();
// Hash l'identifiant unique avec SHA-256
$hash_str = Hash::make($reservation_id, [
'rounds' => 12
@benaja-bendo
benaja-bendo / helpers.php
Last active February 20, 2023 09:43
Laravel Save File To Storage Directory
<?php
use Illuminate\Http\Request;
/**
* @param Request $request
* @param string $key_name
* @param string $name_directory_storage
* @return string
*/
@benaja-bendo
benaja-bendo / Response.php
Created December 11, 2022 16:20 — forked from jeffochoa/Response.php
Laravel HTTP status code
<?php
// This can be found in the Symfony\Component\HttpFoundation\Response class
const HTTP_CONTINUE = 100;
const HTTP_SWITCHING_PROTOCOLS = 101;
const HTTP_PROCESSING = 102; // RFC2518
const HTTP_OK = 200;
const HTTP_CREATED = 201;
const HTTP_ACCEPTED = 202;