Skip to content

Instantly share code, notes, and snippets.

Avatar
☁️
Clouding Stuff ...

Ali Mihandoost AliMD

☁️
Clouding Stuff ...
View GitHub Profile
@AliMD
AliMD / cloudSettings
Last active Apr 11, 2021
Visual Studio Code Settings Sync Gist
View cloudSettings
{"lastUpload":"2021-04-11T09:23:19.545Z","extensionVersion":"v3.4.3"}
@AliMD
AliMD / Best-UI-Design-Tools.md
Last active Apr 1, 2021
Best UI Design Tools
View Best-UI-Design-Tools.md

Best UI Design Tools (AliMD)

Best Applications for UI Designers

1. Setch App

Sketch is a design toolkit built to help you create your best work — from your earliest ideas, through to final artwork

2. Invision

InVision is the digital product design platform used to make the world's best customer experiences.

3. Figma

@AliMD
AliMD / Useful Htaccess Tricks and Tips.md
Last active Mar 31, 2021
Useful Htaccess Tricks and Tips for your websites (better performance, speed up, stability and more) Optimized for wordpress Tested in 1devs server with apache (not nginx)
View Useful Htaccess Tricks and Tips.md

Useful Htaccess Tricks and Tips for your websites (better performance, speed up, stability and more)

Apache configuration file (.htaccess) .htaccess files are an overhead, this logic should be in your Apache config if possible: httpd.apache.org/docs/2.2/howto/htaccess.html

Techniques in here adapted from all over, including: html5boilerplate: html5boilerplate.com Kroc Camen: camendesign.com/.htaccesss perishablepress.com/press/2006/01/10/stupid-htaccess-tricks/ Useful htaccess tricks & tips: http://www.queness.com/post/5421/17-useful-htaccess-tricks-and-tips

@AliMD
AliMD / gist:3344523
Created Aug 13, 2012
All github Emoji (Smiles)
View gist:3344523

All github Emoji (Smiles)

ali.md/emoji

:bowtie: | 😄 | 😆 | 😊 | 😃 | ☺️ | 😏 | 😍 | 😘 | :kissing_face: | 😳 | 😌 | 😆 | 😁 | 😉 | :wink2: | 👅 | 😒 | 😅 | 😓

😩 | 😔 | 😞 | 😖 | 😨 | 😰 | 😣 | 😢 | 😭 | 😂 | 😲 | 😱 | :neckbeard: | 😫 | 😠 | 😡 | 😤 | 😪 | 😋 | 😷

😎 | 😵 | 👿 | 😈 | 😐 | 😶 | 😇 | 👽 | 💛 | 💙 | 💜 | ❤️ | 💚 | 💔 | 💓 | 💗 | 💕 | 💞 | 💘 |

@AliMD
AliMD / install.sh
Created Oct 14, 2019
Install VMware Horizon Client to Rasbpery Pi 3, 3+, 4
View install.sh
#!/bin/bash
# Install VMware Horizon Client to Rasbpery Pi 3, 3+, 4
apt-get update
apt-get install libudev1 libxss1
ln -s /lib/arm-linux-gnueabihf/libudev.so.1 /lib/arm-linux-gnueabihf/libudev.so.0
wget http://dl.armtc.net/packages/vmwh_LATEST.tar.gz -O /tmp/vmwh_LATEST.tar.gz
@AliMD
AliMD / fix-persian-number.js
Last active Feb 19, 2021
Convert/Fix persian and arabic numbers inside a string to english in javascript, AliMD Edition ;)
View fix-persian-number.js
(() => {
'use strict';
const
// Establish the root object, `window` (`self`) in the browser, `global`
// on the server, or `this` in some virtual machines. We use `self`
// instead of `window` for `WebWorker` support.
root = (() => {
if (typeof self == 'object' && self.self === self) return self;
else if (typeof global == 'object' && global.global === global) return global;
@AliMD
AliMD / install-doceker.md
Last active Dec 29, 2020
Install docker on linux as easy as possible
View install-doceker.md

Install Docker on linux

Any distribution of architecture as easy as possible.

# Install docker latest version from original website
curl -fsSL https://get.docker.com/ | sh

# Adding your user to the "docker" group
sudo usermod -aG docker $(whoami)
## you will have to log out and back in for this to take effect!
@AliMD
AliMD / AliMD-CSS-Layout-Debugger.md
Last active Dec 11, 2020
AliMD CSS Layout Debugger
View AliMD-CSS-Layout-Debugger.md

CSS Layout Debugger AliMD Edition ;)

Outlines every DOM element on your page a random (valid) CSS hex color.

[].forEach.call($$('*'),el=>{el.style.outline=`1px solid hsl(${~~(Math.random()*360)},99%,50%)`})

screen shot 2018-02-10 at 2 01 00 pm

@AliMD
AliMD / regular-expression-iranian-mobile.md
Last active Nov 18, 2020
Best Regular Expression for Detect Iranian Mobile Phone Numbers
View regular-expression-iranian-mobile.md

Best Regular Expression for Detect Iranian Mobile Phone Numbers

I'm sure its best regular expression for detect iranian mobile number.

(0|\+98)?([ ]|,|-|[()]){0,2}9[1|2|3|4]([ ]|,|-|[()]){0,2}(?:[0-9]([ ]|,|-|[()]){0,2}){8}


use in javascript

@AliMD
AliMD / gist:3865955
Created Oct 10, 2012
Create A Somple Product Catalog width Wordpress.
View gist:3865955

ali.md/pcwp

Step One: Create the custom post type

The following code goes into the functions.php file:

// Create A Somple Product Catalog width Wordpress. ali.md/pcwp
// Step One: Create the custom post type