Skip to content

Instantly share code, notes, and snippets.

S. Ali Mihandoost AliMD

View GitHub Profile
@AliMD
AliMD / gist:3344523
Created August 13, 2012 22:28
All github Emoji (Smiles)

All github Emoji (Smiles)

ali.md/emoji

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

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

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

@AliMD
AliMD / gist:3759837
Created September 21, 2012 05:14
Node.js frameworks and laravel

Baram jalebe ke bedoonam @BrendanEich roozi fekr mikard zabanesh injoor mahboob beshe

har chand developer haye php say daran az mahboobiyate js vase framework haye jadideshoon estefade konan

mesel laravel

vali beshe ke dast az sare php bar darin

age kheyli ba laravel hal kardi bedoon node.js nemishnasi !

@AliMD
AliMD / gist:3759907
Created September 21, 2012 05:40
Code highlight test

Code highlight test

require 'redcarpet'
markdown = Redcarpet.new("Hello World!")
puts markdown.to_html
<?php
@AliMD
AliMD / gist:3759919
Created September 21, 2012 05:43
Placeholder style trick

Placeholder style trick

<!DOCTYPE HTML>
<html lang="en-US">
<head>
	<meta charset="UTF-8" />
	<title></title>
	<style type="text/css">
 input::-webkit-input-placeholder {
@AliMD
AliMD / CIW-Des.md
Created October 1, 2012 11:23
CIW Last sessions

CIW Des Idea for last sessions

  • Google Map
  • Base64
  • Custome Animations
  • SVG
  • Canvas
  • Adobe CS Pack
  • photoshop save4web
  • sizes
  • photoshop actions
@AliMD
AliMD / url2pic.md
Created October 3, 2012 17:14
Website Screenshot Online Services
@AliMD
AliMD / TransferDollar.md
Created October 4, 2012 12:52
Transfer Dollar for domain and host
@AliMD
AliMD / gist:3865955
Created October 10, 2012 14:24
Create A Somple Product Catalog width Wordpress.

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
@AliMD
AliMD / gist:3885209
Created October 13, 2012 16:21
Htaccess Password Protection

Password Protection

One of the many uses of the .htaccess is being able to reliably password protect directories on websites. Note: If you would like to use the cPanel tool to password protect your folders please see our article: Password Protect a folder on your website

The .htaccess File

Adding password protection to a directory using .htaccess takes two stages. The first part is to add the appropriate lines to your .htaccess file in the directory you would like to protect. Everything below this directory will be password protected:

AuthName "Secret Folder"
AuthType Basic