Skip to content

Instantly share code, notes, and snippets.

View alisalehi1380's full-sized avatar
😊
Always smile at problems

Ali Salehi alisalehi1380

😊
Always smile at problems
View GitHub Profile
@alisalehi1380
alisalehi1380 / clean_code.md
Last active June 12, 2024 21:33
نکات_کلیدی_کتاب_کلین_کد
کدی تمیز است که به راحتی توسط همه ی اعضای تیم قابل درک باشد. کد تمیز میتواند توسط توسعه دهنده ای به غیر از نویسنده ی آن، خوانده و توسعه داده شود. خوانایی، قابلیت نگهداری، تغییر و توسعه پذیری کد، تنها زمانی امکان پذیر است که شما درک درستی از نحوه ی کار کد پیدا کنید.

قوانین عمومی

@alisalehi1380
alisalehi1380 / changer.sh
Last active March 4, 2024 06:20
changer-files-name-shell-script
#!/bin/bash
# Check the number of arguments
if [ "$#" -ne 2 ]; then
echo "Usage: $0 <directory_path> <file_format>"
exit 1
fi
# Extract arguments
directory_path=$1
@alisalehi1380
alisalehi1380 / finder.go
Last active March 4, 2024 06:26
find-pair-numbers-golang
package main
import (
"bufio"
"fmt"
"os"
"strconv"
"strings"
)
@alisalehi1380
alisalehi1380 / http_response_code.php
Created March 4, 2024 12:57 — forked from ewwink/http_response_code.php
PHP Class for HTTP Response Status Codes
<?php
/**
* StatusCodes provides named constants for
* HTTP protocol status codes. Written for the
* Recess Framework (http://www.recessframework.com/)
*
* @author Kris Jordan
* @license MIT
* @package recess.http
*