Skip to content

Instantly share code, notes, and snippets.

View movahhedi's full-sized avatar
💻
Coding, probably.

Shahab Movahhedi movahhedi

💻
Coding, probably.
View GitHub Profile
@movahhedi
movahhedi / HelloWorld!.md
Last active May 15, 2023 06:31
Just a Hello World!

Hello, World!

سلام دنیا!

Just a Hello World:

<?php
echo "Hello, World!";
?>

چک لیست طراحی سایت

آنچه باید در انتهای پروژه و هنگام تحویل گرفتن سایت از شرکت طراح بررسی و چک کنید.

برگرفته از: https://www.dadevarzan.com/web-design Credit

چک لیست سایت

  • آیا سایت در اینترنت در دسترس است؟
  • آیا سایت از همه جا در دیگر شهرها و کشورها قابل رویت است؟
  • آیا منوی سایت به درستی کار می کند؟ ساختار آن و سلسله مراتبش گویاست؟
  • آیا جستجوی داخلی سایت بدرستی کار می‌کند؟ نمایش نتایج سرچ، گویا هست؟
@movahhedi
movahhedi / SmsIr.php
Last active June 7, 2023 13:11
SMS.IR Full PHP Class
<?php
/**
* @author Shahab Movahhedi <dev@shmovahhedi.com>
* @copyright © 2022 Shahab Movahhedi. All rights reserved.
* @link http://sms.ir/ Documentation of sms.ir RESTful API PHP sample.
* @version 1.2
*/
class SmsIr {
@movahhedi
movahhedi / new-gulpfile.mjs
Last active July 22, 2023 16:54
AdmoPro's old & new GulpFile - Transpile & Lint : Typescript, PHP, SCSS
/*
GulpFile Coded by Shahab Movahhedi
https://shmovahhedi.com
*/
import { src, dest } from "gulp";
import through from "through2";
import htmlmin from "gulp-html-minifier-terser";
import { execSync } from "child_process";
@movahhedi
movahhedi / webpack.config.js
Created May 9, 2023 06:07
AdmoPro's Old Webpack Configuration
import * as path from "path";
// import * as ForkTsCheckerWebpackPlugin from "fork-ts-checker-webpack-plugin";
import { fileURLToPath } from "url";
// Bring in the ability to create the `require()` method
import { createRequire } from "module";
// construct the require method
const require = createRequire(import.meta.url);
const ForkTsCheckerWebpackPlugin = require("fork-ts-checker-webpack-plugin");
@movahhedi
movahhedi / _config.scss
Last active June 6, 2023 10:42
AdmoPro's SCSS Reset & Config.
@use "sass:color" as color;
$Base-File-Url: "../";
$Base-Img-Url: "#{$Base-File-Url}images/";
$Responsive-Tablet-Max: 770px;
$Responsive-Mobile-Max: 700px;
$Responsive-MobileSmall-Max: 500px;
@mixin media-max($maxwidth) {
@movahhedi
movahhedi / article-content.scss
Created May 28, 2023 08:42
AdmoPro's default markdown article styles based on GitHub's dark mode styles.
@use "admin-panel/config" as *;
.Markdown-Content {
margin: 0;
font-size: 1rem;
font-family: $Font-Persian, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
line-height: 1.5;
word-wrap: break-word;
// color-scheme: dark;
-ms-text-size-adjust: 100%;
export type ContextMenuItem = {
content: string;
divider?: "top" | "bottom" | "top-bottom";
events?: {
[key in keyof HTMLElementEventMap]?:
(this: HTMLButtonElement, ev: HTMLElementEventMap[keyof HTMLElementEventMap]) => any
}
}
interface ContextMenuConstructor {
@movahhedi
movahhedi / image-resize.js
Created June 21, 2023 15:11 — forked from daviesesiro/image-resize.js
a minimal function to resize an image on the browser in JavaScript
/**
* Resizes an Image File and converts it to a dataurl string.
* @param imageFile the image file (probably from a file input)
* @param resize_width The width you want the image to be
* @param quality quality of the resize image 0 - 1
*/
const resizeImage = ({
resizeWidth = 400,
imageFile,
quality = 1,