Skip to content

Instantly share code, notes, and snippets.

@macdonst
macdonst / audio.html
Created May 18, 2011 19:48
PhoneGap Media Class Example
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>PhoneGap Back Button Example</title>
<script type="text/javascript" charset="utf-8" src="phonegap.0.9.5.js"></script>
<script type="text/javascript" charset="utf-8">
var myMedia = null;
@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 / 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 / TransferDollar.md
Created October 4, 2012 12:52
Transfer Dollar for domain and host
@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
@alimd
alimd / gist:3910476
Created October 18, 2012 08:34
Dark and white 60% background base64 for iEeeeeeee

dark_bg.png

<div style="background-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAA9JREFUeNpiYGBgmAkQYAAAngCaoMXLCwAAAABJRU5ErkJggg==');"></div>

light_bg.png

<div style="background-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAABBJREFUeNpi+P///0yAAAMACZUDl8+B/NgAAAAASUVORK5CYII=');"></div>
@alimd
alimd / gist:3918649
Created October 19, 2012 14:56
Invert Pages :D

Nazaretoon rajebe github e chappe chiye ? :trollface: :D
in matn ro too address bar browser copy konid

data:text/html;base64,TW92ZSB0aGlzIGxpbmsgPGEgaHJlZj0iamF2YXNjcmlwdDooZnVuY3Rpb24oKXtkb2N1bWVudC5ib2R5LnN0eWxlLndlYmtpdFRyYW5zaXRpb249J2FsbCAxcyc7c2V0VGltZW91dChmdW5jdGlvbigpe2RvY3VtZW50LmJvZHkuc3R5bGUud2Via2l0VHJhbnNmb3JtPSdzY2FsZVgoLTEpJzt9LDEwKTt9KSgpOyI+SW52ZXI8L2E+IHRvIHlvdXIgYm9va21hcmsgOyk=

hala too har pagi ke doost dashti roosh click konin ;)
baghiye khalaghiyat ha be ohdeye khodetoon

@alimd
alimd / gist:3918905
Created October 19, 2012 15:38
HAWX Cheat

At the Hangar

  • hold Shift and type xaxdqx to unlock the A-12 Avenger 2.
  • hold Shift and type aqaqax to unlock the F-18 HARV.
  • hold Shift and type dxdxdq to unlock the FB-22 Strike Raptor.
@alimd
alimd / gist:3923810
Created October 20, 2012 16:21
How To Create an IE-Only Stylesheet