Skip to content

Instantly share code, notes, and snippets.

View Salah856's full-sized avatar
🎯
Focusing

Salah Elhossiny Salah856

🎯
Focusing
View GitHub Profile
@developerdza
developerdza / Controllers--Livewire--Chat.php
Last active July 22, 2024 11:22
Real Time Chat By Laravel And Livewire
<?php
namespace App\Http\Livewire\Forum;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\DB;
use Livewire\WithPagination;
use Livewire\Component;
use App\Message;
use App\User;
class Chat extends Component
@bradtraversy
bradtraversy / python_mysql.py
Last active August 5, 2023 12:47
Python & MySQL crash course for beginners
import mysql.connector
from mysql.connector import errorcode
config = {
'user': 'root',
'password': '',
'host': 'localhost',
'database': 'acme'
}
App.css
html, body, #root {
font: 0.9rem sans-serif;
background: #0a1f44;
color: #1e2432;
height: 100%;
margin: 0;
}
.main-container {

FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.


Effective Engineer - Notes

What's an Effective Engineer?