Skip to content

Instantly share code, notes, and snippets.

View DevDhaif's full-sized avatar
🇾🇪
yo

Dhaifallah DevDhaif

🇾🇪
yo
View GitHub Profile
@DevDhaif
DevDhaif / use case diagram.drawio
Last active February 11, 2022 23:38
test.drawio
<mxfile host="65bd71144e">
<diagram id="B-s54CXeZMHqbnamUVDq" name="Page-1">
<mxGraphModel dx="745" dy="648" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="850" pageHeight="1100" math="0" shadow="0">
<root>
<mxCell id="0"/>
<mxCell id="1" parent="0"/>
<object placeholders="1" c4Name="System name" c4Type="SystemScopeBoundary" c4Application="Software System" label="&lt;font style=&quot;font-size: 16px&quot;&gt;&lt;b&gt;&lt;div style=&quot;text-align: left&quot;&gt;%c4Name%&lt;/div&gt;&lt;/b&gt;&lt;/font&gt;&lt;div style=&quot;text-align: left&quot;&gt;[%c4Application%]&lt;/div&gt;" id="2">
<mxCell style="rounded=1;fontSize=11;whiteSpace=wrap;html=1;dashed=1;arcSize=20;fillColor=none;strokeColor=#666666;fontColor=#333333;labelBackgroundColor=none;align=left;verticalAlign=bottom;labelBorderColor=none;spacingTop=0;spacing=10;dashPattern=8 4;metaEdit=1;rotatab
@DevDhaif
DevDhaif / Geolocation leaflet,react
Created March 7, 2022 01:47
Get geolocation (lat,lan) with leaflet ,reactjs
import {MapContainer,Marker,Popup,TileLayer } from 'react-leaflet'
//Component
function CreateListing() {
//Default coordinates
const[formData,setFormData]=useState({
latitude:15.508457,
longitude:32.522854
@DevDhaif
DevDhaif / html
Created March 10, 2022 20:41
Component / Code
<script src="https://cdn.tailwindcss.com"></script>
<div class="min-h-screen bg-gray-800 py-6 px-8
flex flex-col justify-center relative overflow-hidden items-center sm:py-12
dark:bg-gray-700 ">
<!-- Component: -->
<div id="component" class="">
<p class="px-8 text-center py-2 bg-green-500 text-white
dark:bg-green-50 dark:text-green-900
font-medium text-lg rounded-md

How to install Laravel globally in Ubuntu

===================================================================

Open your terminal using Ctrl+Alt+T and type the following commands

Step 1: Install Laravel

composer global require "laravel/installer"